[MacPorts] #13802: libpcap 0.9.5 fails to compile

MacPorts trac at macosforge.org
Sun Jan 6 04:52:20 PST 2008


#13802: libpcap 0.9.5 fails to compile
---------------------------------+------------------------------------------
  Reporter:  albatros at icemx.net  |       Owner:  ricci at macports.org
      Type:  defect              |      Status:  reopened          
  Priority:  Normal              |   Milestone:  Port Bugs         
 Component:  ports               |     Version:  1.6.0             
Resolution:                      |    Keywords:                    
---------------------------------+------------------------------------------
Changes (by albatros at icemx.net):

  * status:  closed => reopened
  * resolution:  worksforme =>

Comment:

 Did the "port selfupdate", but 0.9.8 still fails:

 colin at tigger:/opt/macports-1.6.0/var/macports> sudo port install libpcap
 --->  Fetching libpcap
 --->  Verifying checksum(s) for libpcap
 --->  Extracting libpcap
 --->  Applying patches to libpcap
 --->  Configuring libpcap
 --->  Building libpcap with target all
 Error: Target org.macports.build returned: shell command " cd
 "/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_net_libpcap/work/libpcap-0.9.8"
 && make all " returned error 2
 Command output: scanner.l:89: unknown error processing section 1
 scanner.l:89: bad character: 2
 scanner.l:89: bad character: 0
 scanner.l:89: bad character: 0
 scanner.l:89: bad character: 0
 bison -y -p pcap_ -d grammar.y
 mv y.tab.c grammar.c
 mv y.tab.h tokdefs.h
 /usr/bin/gcc-4.0 -O2 -fno-common -O2 -I. -dynamic -fno-common
 -DHAVE_CONFIG_H -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c
 scanner.c
 /usr/bin/gcc-4.0 -O2 -fno-common -O2 -I. -dynamic -fno-common
 -DHAVE_CONFIG_H -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))"
 -Dyylval=pcap_lval -c grammar.c
 sed -e 's/.*/char pcap_version[] = "&";/' ./VERSION > version.c
 /usr/bin/gcc-4.0 -O2 -fno-common -O2 -I. -dynamic -fno-common
 -DHAVE_CONFIG_H -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c
 version.c
 ar rc libpcap.a 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
 ranlib libpcap.a
 rm -f libpcap.dylib
 /usr/bin/gcc-4.0 -dynamiclib -o libpcap.`cat VERSION`.dylib \
                 -install_name /opt/macports-1.6.0/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
 Undefined symbols:
   "_lex_init", referenced from:
       _pcap_compile in gencode.o
   "_lex_cleanup", referenced from:
       _pcap_compile in gencode.o
       _pcap_compile in gencode.o
   "_pcap_lex", referenced from:
       _pcap_parse in grammar.o
 ld: symbol(s) not found
 collect2: ld returned 1 exit status
 make: *** [libpcap.dylib] Error 1

 Error: Status 1 encountered during processing.

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13802#comment:4>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list