Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34377 - iproute -r4 fail to compile with 2.4.22 headers
Summary: iproute -r4 fail to compile with 2.4.22 headers
Status: RESOLVED DUPLICATE of bug 40510
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-25 17:01 UTC by Guy Martin (RETIRED)
Modified: 2005-07-17 13:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
iproute diff for 2.4.22 headers against iproute -r4 (iproute2_2.4.22.diff,61.64 KB, patch)
2003-11-25 17:05 UTC, Guy Martin (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***