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.
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.
Vanilla iproute compiles well for me with 2.4.23 kernel headers (on hppa).
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 ?
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?
*** This bug has been marked as a duplicate of 40510 ***