tcpdump mailing list archives

Problem compiling tcpdump-3.8.3


From: Gerard Beekmans <gerard () linuxfromscratch org>
Date: Wed, 20 Oct 2004 13:41:12 -0600

Hi guys,

I have a problem compiling tcpdump-3.8.3.

libpcap-0.8.3 is compiled and installed as follows:
        ./configure --prefix=/usr
        make
        make install

tcpdump is attempted to be installed using the same commands. I've tried
both keeping the compiled libpcap directory available and I have removed
it. In both cases, the following compile error shows up:

gcc -O2 -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -I.
-I./../libpcap-0.8.3  -I./missing -I/usr//include -L/usr//lib  -o
tcpdump addrtoname.o gmpls.o gmt2local.o machdep.o oui.o parsenfsfh.o
print-802_11.o print-ap1394.o print-ah.o print-arcnet.o print-aodv.o
print-arp.o print-ascii.o print-atalk.o print-atm.o print-beep.o
print-bfd.o print-bgp.o print-bootp.o print-cdp.o print-chdlc.o
print-cip.o print-cnfp.o print-decnet.o print-domain.o print-dvmrp.o
print-enc.o print-egp.o print-esp.o print-ether.o print-fddi.o
print-fr.o print-gre.o print-hsrp.o print-icmp.o print-igmp.o
print-igrp.o print-ip.o print-ipcomp.o print-ipfc.o print-ipx.o
print-isakmp.o print-isoclns.o print-krb.o print-l2tp.o print-lane.o
print-ldp.o print-llc.o print-lwres.o print-mobile.o print-mpls.o
print-msdp.o print-nfs.o print-ntp.o print-null.o print-ospf.o
print-pflog.o print-pim.o print-ppp.o print-pppoe.o print-pptp.o
print-radius.o print-raw.o print-rip.o print-rsvp.o print-rx.o
print-sctp.o print-sl.o print-sll.o print-snmp.o print-stp.o
print-sunatm.o print-sunrpc.o print-tcp.o print-telnet.o print-tftp.o
print-timed.o print-token.o print-udp.o print-vjc.o print-vrrp.o
print-wb.o print-zephyr.o setsignal.o tcpdump.o util.o version.o
print-smb.o smbutil.o  strlcat.o strlcpy.o ./../libpcap-0.8.3/libpcap.a

tcpdump.o(.text+0x947): In function `main':
: undefined reference to `pcap_debug'
collect2: ld returned 1 exit status

The last line in the output would read -lpcap when I don't keep the
libpcap directory around. The error is the same at any rate.

Configure did check for, and found, pcap_debug:

checking whether pcap_debug is defined by libpcap... yes

Versions of software used:
GCC-3.4.1
Glibc-2.3.4 (20040701 snapshot since Glibc doesn't release releases
anymore)
Kernel 2.6.8.1
Binutils-2.15.91.0.2
Flex-2.5.31
Bison-1.875a

Any suggestions as to how to get tcpdump to link properly?

Thanks,

-- 
Gerard Beekmans

/* If Linux doesn't have the solution, you have the wrong problem */

-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.


Current thread: