[MacPorts] #28039: libnet11 @1.1.5 build failure

MacPorts noreply at macports.org
Tue Jan 18 15:41:50 PST 2011


#28039: libnet11 @1.1.5 build failure
-----------------------------------------+----------------------------------
 Reporter:  spammedonline@…              |       Owner:  macports-tickets@…                   
     Type:  defect                       |      Status:  new                                  
 Priority:  Normal                       |   Milestone:                                       
Component:  ports                        |     Version:  1.9.2                                
 Keywords:  libnet11 yersinia            |        Port:  libnet11                             
-----------------------------------------+----------------------------------
 Fresh install of MacPorts on a Mac Pro running Snow Leopard 10.6.6 with
 Developer Tools 3.2 installed.

 Running "sudo port install libnet11" produces the following error:

 {{{
 <snip>
 --->  Configuring libnet11
 --->  Building libnet11
 Error: Target org.macports.build returned: shell command failed (see log
 for details)
 Log for libnet11 is at:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libnet11/main.log
 Error: Status 1 encountered during processing.
 <snip>
 }}}

 main.log contains the following:

 {{{
 <snip>
 :info:build libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.
 -I../include -I../include -I/opt/local/include -pipe -O2 -arch x86_64 -c
 libnet_write.c  -fno-common -DPIC -o .libs/libnet_write.o
 :info:build libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.
 -I../include -I../include -I/opt/local/include -pipe -O2 -arch x86_64 -c
 libnet_link_bpf.c  -fno-common -DPIC -o .libs/libnet_link_bpf.o
 :info:build libnet_link_bpf.c: In function 'libnet_open_link':
 :info:build libnet_link_bpf.c:127: error: 'BIOCVERSION' undeclared (first
 use in this function)
 :info:build libnet_link_bpf.c:127: error: (Each undeclared identifier is
 reported only once
 :info:build libnet_link_bpf.c:127: error: for each function it appears
 in.)
 :info:build libnet_link_bpf.c:147: error: 'BIOCSETIF' undeclared (first
 use in this function)
 :info:build libnet_link_bpf.c:157: error: 'BIOCGDLT' undeclared (first use
 in this function)
 :info:build make[1]: *** [libnet_link_bpf.lo] Error 1
 :info:build make[1]: *** Waiting for unfinished jobs....
 :info:build libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.
 -I../include -I../include -I/opt/local/include -pipe -O2 -arch x86_64 -c
 libnet_resolve.c -o libnet_resolve.o >/dev/null 2>&1
 :info:build libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.
 -I../include -I../include -I/opt/local/include -pipe -O2 -arch x86_64 -c
 libnet_write.c -o libnet_write.o >/dev/null 2>&1
 :info:build make: *** [all-recursive] Error 1
 :info:build shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libnet11/work/libnet-1.1.5"
 && /usr/bin/make -j8 all " returned error 2
 :error:build Target org.macports.build returned: shell command failed (see
 log for details)
 <snip>
 }}}

 If I cd to the work directory for libnet-1.1.5 (not libnet11...curious)
 and run make from there, I get

 {{{
 <snip>
 Making all in src
 /bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2
 -DHAVE_CONFIG_H -I. -I../include -I../include  -I/opt/local/include  -pipe
 -O2 -arch x86_64 -c -o libnet_link_bpf.lo libnet_link_bpf.c
 libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I../include
 -I../include -I/opt/local/include -pipe -O2 -arch x86_64 -c
 libnet_link_bpf.c  -fno-common -DPIC -o .libs/libnet_link_bpf.o
 libnet_link_bpf.c: In function 'libnet_open_link':
 libnet_link_bpf.c:127: error: 'BIOCVERSION' undeclared (first use in this
 function)
 libnet_link_bpf.c:127: error: (Each undeclared identifier is reported only
 once
 libnet_link_bpf.c:127: error: for each function it appears in.)
 libnet_link_bpf.c:147: error: 'BIOCSETIF' undeclared (first use in this
 function)
 libnet_link_bpf.c:157: error: 'BIOCGDLT' undeclared (first use in this
 function)
 {standard input}:unknown:FATAL:can't create output file:
 .libs/libnet_link_bpf.o
 make[1]: *** [libnet_link_bpf.lo] Error 1
 make: *** [all-recursive] Error 1
 <snip>
 }}}

 The .libs directory does exist, and contains several other .o files.

 The following other ports are currently installed (as reported by "port
 installed"):
 {{{
   autoconf @2.68_1 (active)
   automake @1.11.1_0 (active)
   expat @2.0.1_1 (active)
   gettext @0.18.1.1_2 (active)
   gperf @3.0.4_0 (active)
   help2man @1.38.4_0 (active)
   libiconv @1.13.1_0 (active)
   libtool @2.4_0 (active)
   m4 @1.4.15_2 (active)
   ncurses @5.7_1 (active)
   ncursesw @5.7_1 (active)
   p5-locale-gettext @1.05_3 (active)
   perl5 @5.8.9_0 (active)
   perl5.8 @5.8.9_3 (active)
 }}}

 These were installed as part of the installation process for yersinia. The
 install process failed at libnet11.

-- 
Ticket URL: <https://trac.macports.org/ticket/28039>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list