Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel ERROR -> hardened-dev-sources
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ai
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 227
Location: Poland, Krk

PostPosted: Mon Mar 29, 2004 6:19 pm    Post subject: Genkernel ERROR -> hardened-dev-sources Reply with quote

I tried to compile hardened-dev-sources with genkernel and it breaks in, making bzImage. Here is a fragment of the genkernel.log :
Quote:

......

CC grsecurity/grsec_sysctl.o
CC fs/ext2/ialloc.o
CC grsecurity/grsec_time.o
CC grsecurity/grsec_tpe.o
CC grsecurity/grsec_ipc.o
CC fs/ext2/inode.o
CC grsecurity/grsec_link.o
CC grsecurity/grsec_disabled.o
CC fs/ext2/ioctl.o
grsecurity/grsec_disabled.c:19: error: `gr_pid_is_chrooted' undeclared here (not in a function)
grsecurity/grsec_disabled.c:19: error: initializer element is not constant
grsecurity/grsec_disabled.c:19: error: (near initialization for `__ksymtab_gr_pid_is_chrooted.value')
grsecurity/grsec_disabled.c:20: error: `gr_learn_resource' undeclared here (not in a function)
grsecurity/grsec_disabled.c:20: error: initializer element is not constant
grsecurity/grsec_disabled.c:20: error: (near initialization for `__ksymtab_gr_learn_resource.value')
grsecurity/grsec_disabled.c:21: error: `gr_set_kernel_label' undeclared here (not in a function)
grsecurity/grsec_disabled.c:21: error: initializer element is not constant
grsecurity/grsec_disabled.c:21: error: (near initialization for `__ksymtab_gr_set_kernel_label.value')
grsecurity/grsec_disabled.c:19: error: __ksymtab_gr_pid_is_chrooted causes a section type conflict
grsecurity/grsec_disabled.c:20: error: __ksymtab_gr_learn_resource causes a section type conflict
grsecurity/grsec_disabled.c:21: error: __ksymtab_gr_set_kernel_label causes a section type conflict
make[1]: *** [grsecurity/grsec_disabled.o] Error 1
make: *** [grsecurity] Error 2
CC fs/ext2/namei.o
make: *** Waiting for unfinished jobs....

.....

* gen_die(): compile of bzImage failed
* Please see /var/log/genkernel.log for more info on failures
*
* DO NOT REPORT KERNEL COMPILE FAILURES AS GENKERNEL BUGS!
*
* Report real genkernel bugs to bugs.gentoo.org



As you can see it's something with the gr-security patch. Even if i don't mark grsecurity this error appears...
Can somebody tell me what the heck is going on?
_________________
just nothing ;)
Back to top
View user's profile Send private message
ultim8
Tux's lil' helper
Tux's lil' helper


Joined: 19 Dec 2003
Posts: 98
Location: Burlington, VT

PostPosted: Mon Mar 29, 2004 9:16 pm    Post subject: Reply with quote

Looking at it quickly makes me think that grsecurity needs a module that you didn't include. Or the vice-verca, some module needs grsecurity. Try configuring your kernel without being really aggresive at first. Once you get one that compiles and boots. Then use that to trim out the stuff you don't need/want.
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Tue Mar 30, 2004 12:14 am    Post subject: Re: Genkernel ERROR -> hardened-dev-sources Reply with quote

ai wrote:

As you can see it's something with the gr-security patch. Even if i don't mark grsecurity this error appears...
Can somebody tell me what the heck is going on?


First of all: What version are you using? 2.6.4-r2 are borked, but
2.6.4-r1 and 2.6.4-r3 work fine for me. The error you get likely is
a problem with your kernel configuration. You could post the flags
of the relevant section in .config so people can have a look.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum