Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28982 - paketto-1.10 will not compile with libnet-1.1.0-r3 installed
Summary: paketto-1.10 will not compile with libnet-1.1.0-r3 installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on: 28979
Blocks:
  Show dependency tree
 
Reported: 2003-09-17 07:28 UTC by Brandy Westcott (RETIRED)
Modified: 2003-09-18 23:02 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brandy Westcott (RETIRED) gentoo-dev 2003-09-17 07:28:46 UTC
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"
Comment 1 SpanKY gentoo-dev 2003-09-18 23:02:06 UTC
fixed in cvs