View previous topic :: View next topic |
Author |
Message |
ai Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 21 Mar 2004 Posts: 227 Location: Poland, Krk
|
Posted: Mon Mar 29, 2004 6:19 pm Post subject: Genkernel ERROR -> hardened-dev-sources |
|
|
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 ![Wink ;)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ultim8 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/14280093483fe35abe6fc4c.gif)
Joined: 19 Dec 2003 Posts: 98 Location: Burlington, VT
|
Posted: Mon Mar 29, 2004 9:16 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
didl Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/4452360004369420cc9666.jpg)
Joined: 09 Sep 2003 Posts: 1106 Location: Pittsburgh, PA
|
Posted: Tue Mar 30, 2004 12:14 am Post subject: Re: Genkernel ERROR -> hardened-dev-sources |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|