libpcap failing to build

Noah admin2 at enabled.com
Thu Jan 17 19:31:10 PST 2008


Hi there,

I am just starting out using darwinports.  I am wondering if there is 
any advice that could be provided to figuring out why libpcap is not 
being build?


--->  Building libpcap with target all
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libpcap/work/libpcap-0.9.8" 

&& make all " returned error 2
Command output: rm -f libpcap.dylib
/usr/bin/gcc-4.0 -dynamiclib -o libpcap.`cat VERSION`.dylib \
         -install_name /opt/local/lib/libpcap.0.dylib \
         -compatibility_version 1.0.0 -current_version `cat VERSION` \
         pcap-bpf.o fad-getad.o pcap.o inet.o gencode.o optimize.o
nametoaddr.o etherent.o savefile.o bpf_filter.o bpf_image.o bpf_dump.o
scanner.o grammar.o version.o
ld: Undefined symbols:
_lex_cleanup
_lex_init
_pcap_lex
/usr/bin/libtool: internal link edit command failed
make: *** [libpcap.dylib] Error 1

Error: Unable to upgrade port: 1
--->  Building libpcap with target all
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libpcap/work/libpcap-0.9.8" 

&& make all " returned error 2
Command output: rm -f libpcap.dylib
/usr/bin/gcc-4.0 -dynamiclib -o libpcap.`cat VERSION`.dylib \
         -install_name /opt/local/lib/libpcap.0.dylib \
         -compatibility_version 1.0.0 -current_version `cat VERSION` \
         pcap-bpf.o fad-getad.o pcap.o inet.o gencode.o optimize.o
nametoaddr.o etherent.o savefile.o bpf_filter.o bpf_image.o bpf_dump.o
scanner.o grammar.o version.o
ld: Undefined symbols:
_lex_cleanup
_lex_init
_pcap_lex
/usr/bin/libtool: internal link edit command failed
make: *** [libpcap.dylib] Error 1

Cheers,

Noah



More information about the macports-users mailing list