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

Bug 34377

Summary: iproute -r4 fail to compile with 2.4.22 headers
Product: Gentoo Linux Reporter: Guy Martin (RETIRED) <gmsoft>
Component: [OLD] Core systemAssignee: Daniel Ahlberg (RETIRED) <aliz>
Status: RESOLVED DUPLICATE    
Severity: normal CC: russell, vapier
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: iproute diff for 2.4.22 headers against iproute -r4

Description Guy Martin (RETIRED) gentoo-dev 2003-11-25 17:01:58 UTC
There is many bugs about iproute not compiling with 2.4.22 kernels but it's the same for 2.4.22 kernel-headers.

I've been able to compile it using some sed and other magics on the source.

I'll add the diff just after. Btw I'm not sure my changes are 100% corrects and I'm sure it needs some review/testing by more experimented C coders than me :)

I'd really like to see this diff in portage because I need 2.4.22 headers on hppa for the new toolchain and glibc.
Comment 1 Guy Martin (RETIRED) gentoo-dev 2003-11-25 17:05:37 UTC
Created attachment 21295 [details, diff]
iproute diff for 2.4.22 headers against iproute -r4

This diff is quite huge but it contains many little change like __u32 ->
uint32_t to avoid some problems in #included files.
Comment 2 Guy Martin (RETIRED) gentoo-dev 2003-12-10 07:02:33 UTC
Vanilla iproute compiles well for me with 2.4.23 kernel headers (on hppa).
Comment 3 valli 2004-02-03 14:34:52 UTC
I get the following messages (with kernel headers 2.4.22):

e-glibc/glibc-bugs.h -I/usr/include -DRESOLVE_HOSTNAMES   -c -o libnetlink.o libnetlink.c
In file included from ../include-glibc/netinet/in.h:7,
                 from ll_map.c:19:
/usr/include/linux/in.h:140: error: field `gr_group' has incomplete typeIn file included from ../include-glibc/netinet/in.h:7,
                 from libnetlink.c:20:
/usr/include/linux/in.h:140: error: field `gr_group' has incomplete type
/usr/include/linux/in.h:146: error: field `gsr_group' has incomplete type
/usr/include/linux/in.h:147: error: field `gsr_source' has incomplete type
/usr/include/linux/in.h:153: error: field `gf_group' has incomplete type
/usr/include/linux/in.h:156: error: field `gf_slist' has incomplete type

/usr/include/linux/in.h:146: error: field `gsr_group' has incomplete type
/usr/include/linux/in.h:147: error: field `gsr_source' has incomplete type
/usr/include/linux/in.h:153: error: field `gf_group' has incomplete type
/usr/include/linux/in.h:156: error: field `gf_slist' has incomplete type
make[1]: *** [ll_map.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [libnetlink.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/iproute-20010824-r4/work/iproute2/lib'
make: *** [all] Error 2

Is there a workaround ?
Comment 4 Russell Cloran 2004-02-15 11:54:42 UTC
I have managed to install sys-apps/iproute-20010824-r4 with sys-kernel/linux-headers-2.6.1 (after coming across the same problem as you when I had sys-kernel/linux-headers-2.4.x)

Is this an IPv6 issue?

Are my comments pointless?
Comment 5 SpanKY gentoo-dev 2004-02-21 03:08:44 UTC

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