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

Bug 18549

Summary: sys-kernel/gentoo-sources-2.4.20-r2 fails to compile with netfilter ipv4 as a module
Product: Gentoo Linux Reporter: adam morley <axm135>
Component: [OLD] Core systemAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: morelli
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description adam morley 2003-03-31 14:50:57 UTC
run make dep clean bzImage modules modules_install, get:

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-r2/net/ipv4/netfilter'
make[1]: *** [_modsubdir_ipv4/netfilter] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r2/net'
make: *** [_mod_net] Error 2

I noticed that /usr/include/linux was a directory, so I moved it to linux.old
and symlinked it to ../src/linux/include/linux

and i still get the error.  oddly:

ipt_realm.h:
#ifndef _IPT_REALM_H
#define _IPT_REALM_H

struct ipt_realm_info {
    unsigned long id, mask;
    u_int8_t invert;
};
#endif /*_IPT_REALM_H*/

ipt_realm.c:
    struct dst_entry *dst;
    u32 id;
    const struct ipt_realm_info *info = matchinfo;

    if((dst = skb->dst) == NULL)
         return 0;
    id = dst->tclassid;

    return (info->id == (id & info->mask)) ^ info->invert;


what's weird is that I don't have some of the include files listed in
ipt_realm.c. . .I would think I need to update sys-kernel/linux-headers, but
2.4.19 is the default for emerge:

# emerge -p linux-headers

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R  ] sys-kernel/linux-headers-2.4.19  

# emerge -pu linux-headers-2.4.20

These are the packages that I would merge, in order:

Calculating dependencies   
emerge: there are no masked or unmasked ebuilds to satisfy "linux-headers-2.4.20".

!!! Error calculating dependancies. Please correct.
bash-2.05b# emerge -p linux-headers-2.4.20

These are the packages that I would merge, in order:

Calculating dependencies   
emerge: there are no masked or unmasked ebuilds to satisfy "linux-headers-2.4.20".

!!! Error calculating dependancies. Please correct.


Shoudln't the kernel at least try to build itself using its own kernel headers
instead of the system ones?  Or shouldn't the linux-headers get updated when the
sources get updated too?

Note that I have all netfilter options compiling as a module save for ipfwadm
(2.0-style) support

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Travis Morgan 2003-03-31 22:26:21 UTC
This bug was present in r1 as well
Comment 2 Jay Pfeifer (RETIRED) gentoo-dev 2003-04-15 19:43:39 UTC

*** This bug has been marked as a duplicate of 17870 ***
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-05-08 14:56:00 UTC
*** Bug 20638 has been marked as a duplicate of this bug. ***