Page 1 of 1

Error [kernel 2.6.24.4 & 2.6.24.5]

PostPosted: Sun May 25, 2008 2:34 pm
by breaks
Hi,
When I run make-kpkg (fakeroot make-kpkg --revision=c.1.0 kernel_image), I got this error:

grsecurity/built-in.o: In function `__chk_obj_label':
gracl.c:(.text+0x1ffb): undefined reference to `sock_mnt'
grsecurity/built-in.o: In function `gr_search_connectbind':
gracl_ip.c:(.text+0x5fd6): undefined reference to `dev_get_by_name'
gracl_ip.c:(.text+0x6131): undefined reference to `in_dev_finish_destroy'
gracl_ip.c:(.text+0x633b): undefined reference to `in_dev_finish_destroy'
gracl_ip.c:(.text+0x6344): undefined reference to `in_dev_finish_destroy'
make[1]: *** [.tmp_vmlinux1] Error 1
make[1]: Leaving directory `/usr/src/linux-2.6.24.4'
make: *** [debian/stamp-build-kernel] Error 2

I don't know why, maybe you have some suggestion ?

I use this article (http://www.howtoforge.com/howto_linux_kernel_2.6_compile_debian)


Thanks in advance.

Re: Error [kernel 2.6.24.4 & 2.6.24.5]

PostPosted: Sun May 25, 2008 7:59 pm
by cormander
I'm getting this on the 2.6.25.4 kernel under one configuration but not another... and I don't have this problem for the 2.6.24 patches

I've been trying to narrow it down but thus far haven't come up with anything.

2.6.25.4 working config:

http://www.ravencore.com/downloads/config-2.6.25.4-good

2.6.25.4 not working config:

http://www.ravencore.com/downloads/config-2.6.25.4-bad

The working config is basically the 2.6.24.7 one I have, the only changes are what the kernel automatically does ... the one that isn't working is from the fedora core 9 kernel (2.6.25) with the grsecurity options added. So it must be a certain configuration option that's doing it, though haven't figured out what.

Re: Error [kernel 2.6.24.4 & 2.6.24.5]

PostPosted: Mon May 26, 2008 3:17 am
by cormander
Yep, it's a .config issue. I realized when CONFIG_NET wasn't even set in my "bad" config that I head really f***d up my configuration on my last merge.

I redid the merge with the fc9 kernel config ... and here it is:

http://www.ravencore.com/downloads/conf ... 25.4-final

It compiles just fine for me now. I haven't the skill at this point to narrow this down any further without spending gobs of time on it... Brad, care to take a look?

Re: Error [kernel 2.6.24.4 & 2.6.24.5]

PostPosted: Tue May 27, 2008 3:05 pm
by breaks
Hi,

I used this .config .config and kernel 2.6.24.5 and all works ;)


Code: Select all
root@debian:~$ uname -a
Linux debian 2.6.24.5-grsec #1 SMP Tue May 27 19:03:03 CEST 2008 i686 GNU/Linux


Thanks :)