Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#17323 closed defect (fixed)

can't build tcpdump on 10.5.5

Reported by: dimik@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: tcpdump

Description (last modified by mf2k (Frank Schima))

Macintosh:/ dimik$ sudo port -dRs install tcpdump
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/net/tcpdump
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/net/tcpdump
DEBUG: Requested variant darwin is not provided by port tcpdump.
DEBUG: Requested variant i386 is not provided by port tcpdump.
DEBUG: Requested variant macosx is not provided by port tcpdump.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/net/libpcap
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/net/libpcap
DEBUG: Requested variant darwin is not provided by port libpcap.
DEBUG: Requested variant i386 is not provided by port libpcap.
DEBUG: Requested variant macosx is not provided by port libpcap.
DEBUG: Searching for dependency: libpcap
DEBUG: Found Dependency: receipt exists for libpcap
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/openssl
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/openssl
DEBUG: Requested variant i386 is not provided by port openssl.
DEBUG: Requested variant macosx is not provided by port openssl.
DEBUG: Executing variant darwin provides darwin
DEBUG: Searching for dependency: openssl
DEBUG: Found Dependency: receipt exists for openssl
DEBUG: Skipping completed org.macports.main (tcpdump)
DEBUG: Skipping completed org.macports.fetch (tcpdump)
DEBUG: Skipping completed org.macports.checksum (tcpdump)
DEBUG: Skipping completed org.macports.extract (tcpdump)
DEBUG: Skipping completed org.macports.patch (tcpdump)
DEBUG: Skipping completed org.macports.configure (tcpdump)
--->  Building tcpdump with target all
DEBUG: Executing org.macports.build (tcpdump)
DEBUG: Environment: 
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_tcpdump/work/tcpdump-4.0.0" && make all'
/usr/bin/gcc-4.0 -O2 -O2 -DHAVE_CONFIG_H   -I/usr/include -I./missing  -D_U_="__attribute__((unused))" -I.  -I/usr/include -I./missing -c ./tcpdump.c
./tcpdump.c: In function 'main':
./tcpdump.c:957: warning: assignment makes pointer from integer without a cast
./tcpdump.c:990: error: 'PCAP_ERROR' undeclared (first use in this function)
./tcpdump.c:990: error: (Each undeclared identifier is reported only once
./tcpdump.c:990: error: for each function it appears in.)
./tcpdump.c:992: error: 'PCAP_ERROR_NO_SUCH_DEVICE' undeclared (first use in this function)
./tcpdump.c:993: error: 'PCAP_ERROR_PERM_DENIED' undeclared (first use in this function)
./tcpdump.c:1006: error: 'PCAP_WARNING' undeclared (first use in this function)
./tcpdump.c:1008: error: 'PCAP_WARNING_PROMISC_NOTSUP' undeclared (first use in this function)
make: *** [tcpdump.o] Error 1
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_tcpdump/work/tcpdump-4.0.0" && make all " returned error 2
Command output: /usr/bin/gcc-4.0 -O2 -O2 -DHAVE_CONFIG_H   -I/usr/include -I./missing  -D_U_="__attribute__((unused))" -I.  -I/usr/include -I./missing -c ./tcpdump.c
./tcpdump.c: In function 'main':
./tcpdump.c:957: warning: assignment makes pointer from integer without a cast
./tcpdump.c:990: error: 'PCAP_ERROR' undeclared (first use in this function)
./tcpdump.c:990: error: (Each undeclared identifier is reported only once
./tcpdump.c:990: error: for each function it appears in.)
./tcpdump.c:992: error: 'PCAP_ERROR_NO_SUCH_DEVICE' undeclared (first use in this function)
./tcpdump.c:993: error: 'PCAP_ERROR_PERM_DENIED' undeclared (first use in this function)
./tcpdump.c:1006: error: 'PCAP_WARNING' undeclared (first use in this function)
./tcpdump.c:1008: error: 'PCAP_WARNING_PROMISC_NOTSUP' undeclared (first use in this function)
make: *** [tcpdump.o] Error 1

Warning: the following items did not execute (for tcpdump): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Change History (7)

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…
Port: tcpdump added

Assigning to maintainer.

comment:2 Changed 16 years ago by mww@…

Status: newassigned

which version of libpcap do you have installed?

comment:3 Changed 16 years ago by dimik@…

dimik$ sudo port info libpcap Password: libpcap 1.0.0, net/libpcap http://www.tcpdump.org/

The Packet Capture library provides a high level interface to packet capture systems. All packets on the network, even those destined for other hosts, are accessible through this mechanism.

Platforms: darwin Maintainers: opendarwin.org@…

comment:4 Changed 16 years ago by mww@…

sudo port installed libpcap returns the actually installed version;

comment:5 Changed 16 years ago by dimik@…

dimik$ sudo port installed libpcap Password: The following ports are currently installed:

libpcap @0.9.5_1 libpcap @0.9.8_0 libpcap @1.0.0_0 (active)

comment:6 Changed 16 years ago by mww@…

Resolution: fixed
Status: assignedclosed

Revision 1 should have this fixed: tpcdump tries hard to not use the MacPorts openssl and libpcap (looks like an error in the ./configure process);

If the problem persists though, please re-open with a new trace!

comment:7 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.