[rsbac] rsbac-kernel-2.6.7-r6 cant compile with GCC-3.4.2
kang at insecure.ws
Tue Oct 26 00:11:54 CEST 2004
On 25 oct. 04, at 16:30, Amon Ott wrote:
> On Montag, 25. Oktober 2004 16:02, Rumen Yotov wrote:
>> i'm using gentoo - ~x86, hardened.
>> Compiled kernels - 2.6.7-r2,r3 with GCC-3.3.4 all OK.
>> But with GCC-3.4.2-r2 can't compile the kernel-2.6.7-r6.
>> Sorry for crossposting but also filed a bug on bugs.gentoo.org -
> don't have the number now, sorry, here it is: BUG-68745.
>> There are the logs - shortly it gives an error while compiling ADF.
>> The same kernel compiles OK even w/ PaX and w/o any RSBAC.
>> Not very sure if the culpit is GCC but seems so. i'll try later with
> GCC-3.3.4 again but have first to emerge it.
> Seems like the kproc_hide REG sample includes an RSBAC header before
> linux/file.h gets included, so the redefinition check fails.
> You can the attached patch, it should fix the problem. Or simply
> disable the "Compile REG sample modules" RSBAC kernel option.
> http://www.rsbac.org - GnuPG: 2048g/5DEAAA30 2002-10-22
> rsbac mailing list
> rsbac at rsbac.org
2.6.9 + GCC 3.4 + your patch:
rsbac/adf/adf_main.c: In function `rsbac_adf_request_int':
include/rsbac/aci.h:42: sorry, unimplemented: inlining failed in call
to 'rsbac_is_initialized': function body not
availablersbac/adf/adf_main.c:221: sorry, unimplemented: called from
heremake: *** [rsbac/adf/adf_main.o] Error 1make: *** [rsbac/adf]
Error 2make: *** [rsbac] Error 2
Changing the function at line 42 or aci.h to non-inline let rsbac
compile to the end with gcc3.4
kang AT insecure d0t ws
More information about the rsbac