the-tcpdump-group / tcpdump

the TCPdump network dissector
https://www.tcpdump.org/
Other
2.72k stars 849 forks source link

tcpdump-2004.09.28 won't compile #61

Closed guyharris closed 11 years ago

guyharris commented 11 years ago

Converted from SourceForge issue 1036332, submitted by kevinz

This error occured when I tried to compile tcpdump-2004.09.28 on my Debian woody, kernel 2.4.18-bf2.4 system:

gcc -O2 -DHAVE_CONFIG_H  -I./missing  -D_U_="__attribute__((unused))" -I. -I./../libpcap-2004.09.28  -I./missing  -o tcpdump addrtoname.o cpack.o gmpls.o oui.o gmt2local.o ipproto.o l2vpn.o machdep.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-eap.o print-eigrp.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-lmp.o print-lspping.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-sip.o print-sl.o print-sll.o print-snmp.o print-stp.o print-sunatm.o print-sunrpc.o print-symantec.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 datalinks.o dlnames.o ./../libpcap-2004.09.28/libpcap.a
./../libpcap-2004.09.28/libpcap.a(pcap.o): In function `pcap_list_datalinks':
pcap.o(.text+0x1b4): multiple definition of `pcap_list_datalinks'
datalinks.o(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `pcap_list_datalinks' changed from 63 to 166 in ./../libpcap-2004.09.28/libpcap.a(pcap.o)
./../libpcap-2004.09.28/libpcap.a(pcap.o): In function `pcap_datalink_val_to_name':
pcap.o(.text+0x3f0): multiple definition of `pcap_datalink_val_to_name'
dlnames.o(.text+0x5c): first defined here
/usr/bin/ld: Warning: size of symbol `pcap_datalink_val_to_name' changed from 70 to 66 in ./../libpcap-2004.09.28/libpcap.a(pcap.o)
./../libpcap-2004.09.28/libpcap.a(pcap.o): In function `pcap_datalink_name_to_val':
pcap.o(.text+0x398): multiple definition of `pcap_datalink_name_to_val'
dlnames.o(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `pcap_datalink_name_to_val' changed from 89 to 85 in ./../libpcap-2004.09.28/libpcap.a(pcap.o)
./../libpcap-2004.09.28/libpcap.a(pcap.o): In function `pcap_datalink_val_to_description':
pcap.o(.text+0x434): multiple definition of `pcap_datalink_val_to_description'
dlnames.o(.text+0xa4): first defined here
./../libpcap-2004.09.28/libpcap.a(grammar.o): In function `pcap_parse':
grammar.o(.text+0x1cb): undefined reference to `pcap_lex'
collect2: ld returned 1 exit status
make: *** [tcpdump] Error 1

kevinz@www:~/tcpdump-2004.09.28$

I had just previously successfully compiled and installed libpcap-2004.09.28.

Please let me know if there's any other information I can provide.

-Kevin Zembower

guyharris commented 11 years ago

Submitted by kevinz

Logged In: YES user_id=358418

Nevermind.

The directions I received said to unpack libpcap and tcpdump in subdirectories of the same directory. I did this, but left the directories named 'libpcap-2004.09.28' and 'tcpdump- 2004.09.28'. This led to the error I reported.

When I changed the directory names to 'libpcap' and 'tcpdump', tcpdump compiled just fine.

I consider this bug report closed.

-Kevin

guyharris commented 11 years ago

Submitted by guy_harris

Logged In: YES user_id=541179

Hmm. It looks, from the compiler output, as if the tcpdump configure script did figure out that it should check in ../libpcap-2004.09.28 for libpcap header files and libraries. Perhaps the configure script doesn't look there when testing what files are available in libpcap? If so, that's arguably a bug.

infrastation commented 11 years ago

This is no more relevant unless reproduces.