Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165472 - dev-libs/klibc-1.4.13 fails to compile
Summary: dev-libs/klibc-1.4.13 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Christian Heim (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
: 166129 (view as bug list)
Depends on:
Blocks: kernel-2.6.20
  Show dependency tree
 
Reported: 2007-02-05 18:39 UTC by Christian Axelsson
Modified: 2007-02-09 22:32 UTC (History)
5 users (show)

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


Attachments
klibc-1.4.13-ip.patch (klibc-1.4.13-ip.patch,460 bytes, patch)
2007-02-07 13:23 UTC, Alon Bar-Lev (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Axelsson 2007-02-05 18:39:40 UTC
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.
Comment 1 Michael Herold 2007-02-06 00:49:31 UTC
I fixed it with this:

MAKE_OPTS="-j1" emerge -v klibc

Apparently it doesn't like -j2.
Comment 2 Christian Axelsson 2007-02-06 09:32:58 UTC
(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
Comment 3 Christian Heim (RETIRED) gentoo-dev 2007-02-06 18:17:35 UTC
*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.
Comment 4 Fernando (likewhoa) 2007-02-07 12:19:48 UTC
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. :)

Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2007-02-07 13:23:21 UTC
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...
Comment 6 Fernando (likewhoa) 2007-02-07 16:18:49 UTC
thx Alon Bar-Lev for the local fix,.. editing the kernel was not a permanent solution. just a quick fix. :)
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-02-09 21:39:24 UTC
*** Bug 166129 has been marked as a duplicate of this bug. ***
Comment 8 Christian Heim (RETIRED) gentoo-dev 2007-02-09 22:32:00 UTC
(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.