[grsec] patch 2.1.14-2.6.31.1-200909251752 doesn't build

Carlos Carvalho carlos at fisica.ufpr.br
Sat Sep 26 22:18:04 EDT 2009


There are lots of warnings like

In file included from include/linux/grsecurity.h:6,
                 from include/linux/security.h:37,
                 from include/net/sock.h:53,
                 from include/net/inet_sock.h:26,
                 from include/net/icmp.h:23,
                 from net/ipv4/proc.c:36:
include/linux/gracl.h: In function ‘nhash’:  CC      drivers/rtc/rtc-proc.o

include/linux/gracl.h:271: warning: pointer targets in passing argument 1 of ‘full_name_hash’ differ in signedness

But there are also fatal errors. The last lines of
2.6.31.1-grsec/arch/x86/Makefile are

define OLD_LD

*** ${VERSION}.${PATCHLEVEL} PaX kernels no longer build correctly with old versions of binutils.
*** Please upgrade your binutils to 2.18 or newer
endef

archprepare: 
     $(if $(LDFLAGS_BUILD_ID),,$(error $(OLD_LD)))

And it complains about this. However,

% ld -v
GNU ld (GNU Binutils for Debian) 2.19.91.20090923

I commented out the archprepare target and got this:

.../2.6.31.1-grsec/scripts/mkcompile_h: line 77: .tmpcompile: Permission denied
.../2.6.31.1-grsec/scripts/mkcompile_h: line 89: .tmpver.1: Permission denied

Without the grsec patch the kernel compiles fine.


More information about the grsecurity mailing list