KLIBCLD usr/kinit/nfsmount/static/nfsmount KLIBCCC usr/kinit/resume/resume.o KLIBCCC usr/kinit/ipconfig/dhcp_proto.o In file included from usr/klibc/../include/netinet/ip.h:10, from usr/kinit/ipconfig/packet.c:19: linux/include/linux/ip.h:101: error: expected specifier-qualifier-list before '__sum16' usr/kinit/ipconfig/packet.c:92: error: unknown field 'saddr' specified in initializer usr/kinit/ipconfig/packet.c:92: warning: excess elements in struct initializer usr/kinit/ipconfig/packet.c:92: warning: (near initialization for 'ipudp_hdrs.ip') usr/kinit/ipconfig/packet.c:93: error: unknown field 'daddr' specified in initializer usr/kinit/ipconfig/packet.c:93: warning: excess elements in struct initializer usr/kinit/ipconfig/packet.c:93: warning: (near initialization for 'ipudp_hdrs.ip') usr/kinit/ipconfig/packet.c: In function 'packet_send': usr/kinit/ipconfig/packet.c:158: error: 'struct iphdr' has no member named 'check' usr/kinit/ipconfig/packet.c:159: error: 'struct iphdr' has no member named 'check' make[3]: *** [usr/kinit/ipconfig/packet.o] Error 1 make[3]: *** Waiting for unfinished jobs.... KLIBCCC usr/kinit/do_mounts.o KLIBCLD usr/kinit/nfsmount/shared/nfsmount KLIBCCC usr/kinit/ramdisk_load.o KLIBCCC usr/kinit/resume/resumelib.o make[2]: *** [usr/kinit/ipconfig] Error 2 make[2]: *** Waiting for unfinished jobs.... KLIBCCC usr/kinit/resume/../getarg.o KLIBCCC usr/kinit/resume/../name_to_dev.o KLIBCCC usr/kinit/resume/../devname.o LD usr/kinit/resume/lib.a KLIBCLD usr/kinit/resume/static/resume KLIBCLD usr/kinit/resume/shared/resume make[1]: *** [all] Error 2 make: *** [klibc] Error 2 This is on 2.6.20-gentoo. Reproducible: Always This package it's needed for splashutils so its a small showstopper for some people.
I fixed it with this: MAKE_OPTS="-j1" emerge -v klibc Apparently it doesn't like -j2.
(In reply to comment #1) > I fixed it with this: > > MAKE_OPTS="-j1" emerge -v klibc > > Apparently it doesn't like -j2. > It doesn't help. From the error output it looks like a code-bug or pherhaps an include-bug
*sigh* Not a single release between 1.4.13 and 1.4.33 (which in fact has been released yesterday according to it's timestamp) compiles against 2.6.20. So I'll either have to wait for a new (working) release or for a fix from either upstream of someone skilled with C.
change the line 101 in /usr/src/linux/include/linux/ip.h from __sum16 check; to __u16 check; this fixes the compile error, please notify upstream. :)
Created attachment 109426 [details, diff] klibc-1.4.13-ip.patch Or without modifying the kernel... I don't know why they force linux/types.h out...
thx Alon Bar-Lev for the local fix,.. editing the kernel was not a permanent solution. just a quick fix. :)
*** Bug 166129 has been marked as a duplicate of this bug. ***
(In reply to comment #6) > thx Alon Bar-Lev for the local fix,.. editing the kernel was not a permanent > solution. just a quick fix. :) T (In reply to comment #5) > Created an attachment (id=109426) [edit] > klibc-1.4.13-ip.patch > > Or without modifying the kernel... > I don't know why they force linux/types.h out... Thanks to Alon, this is now in CVS.