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

Bug 65862

Summary: iputils fails to compile with new glibc
Product: Gentoo Linux Reporter: Travis Tilley (RETIRED) <lv>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: use linux headers if on linux

Description Travis Tilley (RETIRED) gentoo-dev 2004-09-29 17:53:06 UTC
a recent glibc header change broke iputils:

gcc -D_GNU_SOURCE -O2 -march=k8 -pipe -g3 -Wstrict-prototypes -Wall -g -Iinclude-glibc -include include-glibc/glibc-bugs.h -I//usr/include -I../include       traceroute6.c  -lresolv -o traceroute6
In file included from traceroute6.c:247:
/usr/include/netinet/udp.h:68: error: parse error before "uint16_t"
/usr/include/netinet/udp.h:70: error: parse error before "len"
/usr/include/netinet/udp.h:71: error: parse error before "check"
gcc -D_GNU_SOURCE -O2 -march=k8 -pipe -g3 -Wstrict-prototypes -Wall -g -Iinclude-glibc -include include-glibc/glibc-bugs.h -I//usr/include -I../include      -c -o ping6.o ping6.c
traceroute6.c: In function `packet_ok':
traceroute6.c:751: error: increment of pointer to unknown structure
traceroute6.c:751: error: arithmetic on pointer to an incomplete type
traceroute6.c:757: error: invalid use of undefined type `struct udphdr'
make: *** [traceroute6] Error 1
make: *** Waiting for unfinished jobs....

i have a patch for it, but it pretty much just makes iputils use linux/udp.h instead of netinet/udp.h so i dont know if i want to commit that. input appreciated.
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2004-09-29 17:53:45 UTC
Created attachment 40740 [details, diff]
use linux headers if on linux
Comment 2 Travis Tilley (RETIRED) gentoo-dev 2004-09-29 17:54:14 UTC
re-assigning to base-system. input?
Comment 3 SpanKY gentoo-dev 2004-09-29 20:00:39 UTC

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