Page 1 of 1

KERN_GRSECURITY undeclared

PostPosted: Wed Aug 28, 2002 1:48 am
by basit
make[2]: Entering directory `/usr/src/usagi/kernel/linux24/kernel'
gcc -D__KERNEL__ -I/usr/src/usagi/kernel/linux24/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -nostdinc -I /usr/lib/gcc-lib/i386-linux/2.95.4/include -DKBUILD_BASENAME=sysctl -c -o sysctl.o sysctl.c
sysctl.c:266: `KERN_GRSECURITY' undeclared here (not in a function)
sysctl.c:266: initializer element is not constant
sysctl.c:266: (near initialization for `kern_table[29].ctl_name')
make[2]: *** [sysctl.o] Error 1
make[2]: Leaving directory `/usr/src/usagi/kernel/linux24/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/usagi/kernel/linux24/kernel'
make: *** [_dir_kernel] Error 2

PostPosted: Wed Aug 28, 2002 12:38 pm
by spender
It's impossible for that to happen unless you tried to patch in something else into a grsecurity kernel and didn't re-merge (or incorrectly merged) the failed hunks.

KERN_GRSECURITY undeclared

PostPosted: Thu Aug 29, 2002 1:12 am
by basit
Well what i did was , i simply downloaded linux 2.4.19 kernel provided
by USAGI ipv6 project with their latest snap {19 Aug}.. and tried
to patch it .. it says some hunks failed. in compiling the kernel , it gives error what should i do in order to use both USAGI and GRSEC ?

KERN_GRSECURITY

PostPosted: Thu Aug 29, 2002 3:43 am
by basit
well i basically declared that variable in sysctl.h , made its value 48
now its not complaining but at linking time , it gives
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
drivers/parport/driver.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/sound/sounddrivers.o drivers/pci/driver.o drivers/net/wireless/wireless_net.o drivers/pnp/pnp.o drivers/video/video.o drivers/md/mddev.o arch/i386/math-emu/math.o \
net/network.o \
crypto/crypto.o \
/usr/src/usagi/kernel/linux24/arch/i386/lib/lib.a /usr/src/usagi/kernel/linux24/lib/lib.a /usr/src/usagi/kernel/linux24/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
init/main.o: In function `init':
init/main.o(.text+0x40): undefined reference to `grsecurity_init'
init/main.o: In function `gr_setup':
init/main.o(.text.init+0x2c3): undefined reference to `gr_disable'
arch/i386/kernel/kernel.o: In function `do_vm86_irq_handling':
arch/i386/kernel/kernel.o(.text+0x4e70): undefined reference to `gr_is_capable'
arch/i386/kernel/kernel.o(.text+0x4ee7): undefined reference to `captab_log'
arch/i386/kernel/kernel.o: In function `gr_find_proc_file':
arch/i386/kernel/kernel.o(.text+0x519f): undefined reference to `gr_acl_is_enabled'
arch/i386/kernel/kernel.o: In function `sys_ptrace':
arch/i386/kernel/kernel.o(.text+0x52b1): undefined reference to `gr_pid_is_chrooted'
arch/i386/kernel/kernel.o(.text+0x5331): undefined reference to `gr_search_file'
arch/i386/kernel/kernel.o: In function `sys_ioperm':