Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 27350

Summary: Kernel compilation fails.
Product: Gentoo Linux Reporter: Krist van Besien <krist>
Component: [OLD] Core systemAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Krist van Besien 2003-08-26 04:59:05 UTC
Building a kernel with genkernel fails. The logfils shows a sysntax error in a
netfilter module.



Reproducible: Always
Steps to Reproduce:
1.emerge gentoo-sources  (emerges 2.4.20-r6)
2.genkernel --config
  add all possible netfilter modules.
3.let it compile...



Actual Results:  
genkernel finishes with an "abort":

Gentoo Linux genkernel, version 1.4
 Copyright 2003 Gentoo Technologies, Inc., Bob Johnson, Daniel Robbins
 Distributed under the GNU General Public License version 2

Settings:
 compile optimization: 1 processor(s)
 source tree: /usr/src/linux-2.4.20-gentoo-r6
 config: gentoo (customized)
 config loc: /etc/kernels/config-2.4.20-gentoo-r6
 initrd config: (default) /etc/kernels/settings

 * Running "make oldconfig"...                                                 
    [ ok ]
 * Logging to /var/log/genkernel.log...                                        
    [ ok ]
 * Starting 2.4.20-gentoo-r6 build...                                          
    [ ok ]
 * Running "make dep"...                                                       
    [ ok ]
 * Running "make bzImage"...                                                   
    [ ok ]
 * Running "make modules"...
: aborting.

In the logfile I found the following:

ipt_realm.c: In function `match':
ipt_realm.c:29: structure has no member named `tclassid'
make[2]: *** [ipt_realm.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r6/net/ipv4/netfilter'
make[1]: *** [_modsubdir_ipv4/netfilter] Error 2
make[1]: *** Waiting for unfinished jobs....



Expected Results:  
A kernel and its modules should have compiled...

I had exactly the same problem with the gentoo kernel 2.4.20-r5. 

doing a "make modules" in the linux sourcedir produces the same error.

I assume this error is due to either:
- A patch gentoo applies 
- the config genkernel generates...
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2003-08-26 05:09:42 UTC
Could you try emerging "yacc" and regenkernel?
Comment 2 Krist van Besien 2003-08-28 03:57:38 UTC
Emerged yacc. This made no difference...
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2003-08-28 10:14:06 UTC
Does this happen if you manually compile the kernel? And can you please attach the .config genkernel made and the one you made [if there is one]
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2003-09-11 15:35:11 UTC
Can you please tweak your /usr/src/linux/linux-2.4.20-gentoo-r6/.config file with a text editor and add "CONFIG_CLS_NET_ROUTE=y" and see if that helps. Make sure you recompile after doing that.
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2003-10-01 14:54:30 UTC

*** This bug has been marked as a duplicate of 30031 ***