Summary: | /usr/include/sys/sysmacros.h causing compile failures | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | James Cloos <cloos> |
Component: | [OLD] Core system | Assignee: | Please assign to toolchain <gcc-porting> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 1.4 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 31307 |
Description
James Cloos
2003-11-02 05:05:08 UTC
ngrep works here with those. Please attach your test.c, and output of 'make info'. Err, scratch that. Did gcc-3.3.1-r* work fine with this ? The test is wrong, and should look as follows: -- #line 1765 "configure" #include "confdefs.h" #ifndef __FAVOR_BSD #define __FAVOR_BSD #endif #ifndef _BSD_SOURCE #define _BSD_SOURCE 1 #endif #include <netinet/udp.h> int main() { struct udphdr foo; unsigned short bar = foo.uh_sport; ; return 0; } -- (note the #include, etc OUTSIDE main() ). Fixed in CVS. Good catch; i must get blind shortly before crashing for the night ... (day?) ngrep's configure.in says: AC_TRY_COMPILE(, #ifndef __FAVOR_BSD #define __FAVOR_BSD #endif #ifndef _BSD_SOURCE #define _BSD_SOURCE 1 #endif #include <netinet/udp.h> struct udphdr foo; unsigned short bar = foo.uh_sport; , echo nope, echo yep dumb; AC_DEFINE(HAVE_DUMB_UDPHDR)) nb the comma on the line w/ AC_TRY_COMPILE. That is the bug. remove that comma and the configure works. diff is: ============================================================== --- a/configure.in 2003-11-02 17:41:32.780242175 -0500 +++ b/configure.in 2003-11-02 17:41:45.266929980 -0500 @@ -179,7 +179,7 @@ AC_DEFINE(LINUX) AC_MSG_CHECKING(for a dumb udphdr declaration) - AC_TRY_COMPILE(, + AC_TRY_COMPILE( #ifndef __FAVOR_BSD #define __FAVOR_BSD #endif =========================================================== but the autoconf must be re-run... Mind passing it on to the ngrep guys ? Done; it is at: http://sourceforge.net/tracker/index.php?func=detail&aid=834791&group_id=10752&atid=110752 Closing |