linux-grsec fails to build with custom kconfig
There appears to be a bug in 4.4.26 which was not present in 4.4.20. This appears to be a grsec issue, as vanilla compiles fine with the same kconfig.
When compiling with the attached kconfig, the following error occurs:
/home/ed/aports/main/linux-grseced/src/linux-4.4/net/ipv4/ip_vti.c:404:30: error: vti_ipcomp4_protocol causes a section type conflict with vti_notifier_block
static struct xfrm4_protocol vti_ipcomp4_protocol __read_mostly = {
^
/home/ed/aports/main/linux-grseced/src/linux-4.4/net/ipv4/ip_vti.c:566:30: note: 'vti_notifier_block' was declared here
static struct notifier_block vti_notifier_block __read_mostly = {
^
/home/ed/aports/main/linux-grseced/src/linux-4.4/scripts/Makefile.build:258: recipe for target 'net/ipv4/ip_vti.o' failed
make[4]: *** [net/ipv4/ip_vti.o] Error 1
/home/ed/aports/main/linux-grseced/src/linux-4.4/scripts/Makefile.build:403: recipe for target 'net/ipv4' failed
make[3]: *** [net/ipv4] Error 2
make[3]: *** Waiting for unfinished jobs....
When replacing ip_vti.c
with the one from 4.4.20 the build succeeds.
(from redmine: issue id 6379, created on 2016-10-24)
- Uploads:
- ip_vti-4.4.20.c old version, works
- config-grseced.x86_64 custom kconfig which triggers the error
- ip_vti-4.4.26.c new version, errors