With libnet-1.1.0-r3 installed the following error is encountered when emerging paketto: if gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10/src -I. -march=pentium4 -O2 -pipe -fomit-frame-pointer -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10/libpcap-0.7.1 -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10/libpcap-0.7.1/bpf -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10 -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10/libpcap-0.7.1 -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10/libpcap-0.7.1/bpf -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10/Libnet-1.0.2a/include -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10/libtomcrypt -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10/libtomcrypt -march=pentium4 -O2 -pipe -fomit-frame-pointer -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10/libpcap-0.7.1 -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10/libpcap-0.7.1/bpf -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10 -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10/libpcap-0.7.1 -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10/libpcap-0.7.1/bpf -I/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10 -MT minewt.o -MD -MP -MF ".deps/minewt.Tpo" \ -c -o minewt.o `test -f 'minewt.c' || echo '/var/tmp/portage/paketto-1.10-r1/work/paketto-1.10/src/'`minewt.c; \ then mv ".deps/minewt.Tpo" ".deps/minewt.Po"; \ else rm -f ".deps/minewt.Tpo"; exit 1; \ fi In file included from paketto.h:7, from minewt.c:1: /var/tmp/portage/paketto-1.10-r1/work/paketto-1.10/Libnet-1.0.2a/ include/libnet.h:87:2: #error "byte order has not been specified, you'll need to #define either LIBNET_LIL_ENDIAN or LIBNET_BIG_ENDIAN. See the documentation regarding the libnet-config script." minewt.c: In function `main': minewt.c:438: error: structure has no member named `ip_hl' minewt.c:448: error: structure has no member named `ip_hl' minewt.c:452: error: structure has no member named `ip_hl' minewt.c:461: error: structure has no member named `ip_hl' minewt.c:462: error: structure has no member named `ip_hl' minewt.c:532: error: structure has no member named `ip_hl' minewt.c:601: error: structure has no member named `ip_hl' make[2]: *** [minewt.o] Error 1 make: *** [all-recursive] Error 1 !!! ERROR: net-analyzer/paketto-1.10-r1 failed. !!! Function src_compile, Line 27, Exitcode 2 !!! (no error message) The member 'ip_hl' is declared only if the LIBNET_LIL_ENDIAN macro is set: #if (LIBNET_LIL_ENDIAN) u_char ip_hl:4, /* header length */ ip_v:4; /* version */ #endif paketto uses it's own builtin version of libnet, and the configure script does successfully test the "endianess" of the machine compiled on. The offending line of code is in the paketto configure script: DXP_LIBNET_FLAGS="`libnet-config --defines` -I$srcdir/Libnet-1.0.2a/include" Forcing the configure script to run the builtin version of libnet-config can be achieved by changing this line to: DXP_LIBNET_FLAGS="`$srcdir/Libnet-1.0.2a/libnet-config --defines` -I$srcdir/Libnet-1.0.2a/include"
fixed in cvs