tcpdump mailing list archives
Trouble compiling tcpdump-3.9.8 (Reformatted)
From: Eric <epretorious () yahoo com>
Date: Wed, 13 Feb 2008 17:19:00 -0800 (PST)
Sorry for the duplication - I just saw that the message that I sent yesterday got munged...
1.
gcc-4.2.2
is
already
installed.
2.
I've
downloaded/compiled
flex-2.5.34,
bison-2.3,
and
libpcap-0.9.8
in
/usr/local.
3.
When
attempting
to
compile
tcpdump-3.9.8
I
get
the
following
error:
==============
/usr/local/lib/libpcap.a(pcap.o):
In
function
`pcap_datalink_name_to_val':
pcap.c:(.text+0x1b0):
multiple
definition
of
`pcap_datalink_name_to_val'
dlnames.o:dlnames.c:(.text+0xa0):
first
defined
here
/usr/bin/ld:
Warning:
size
of
symbol
`pcap_datalink_name_to_val'
changed
from
98
in
dlnames.o
to
114
in
/usr/local/lib/libpcap.a(pcap.o)
/usr/local/lib/libpcap.a(pcap.o):
In
function
`pcap_datalink_val_to_name':
pcap.c:(.text+0x230):
multiple
definition
of
`pcap_datalink_val_to_name'
dlnames.o:dlnames.c:(.text+0x0):
first
defined
here
/usr/bin/ld:
Warning:
size
of
symbol
`pcap_datalink_val_to_name'
changed
from
66
in
dlnames.o
to
78
in
/usr/local/lib/libpcap.a(pcap.o)
/usr/local/lib/libpcap.a(pcap.o):
In
function
`pcap_datalink_val_to_description':
pcap.c:(.text+0x280):
multiple
definition
of
`pcap_datalink_val_to_description'
dlnames.o:dlnames.c:(.text+0x50):
first
defined
here
/usr/bin/ld:
Warning:
size
of
symbol
`pcap_datalink_val_to_description'
changed
from
76
in
dlnames.o
to
93
in
/usr/local/lib/libpcap.a(pcap.o)
/usr/local/lib/libpcap.a(pcap.o):
In
function
`pcap_list_datalinks':
pcap.c:(.text+0x920):
multiple
definition
of
`pcap_list_datalinks'
datalinks.o:datalinks.c:(.text+0x0):
first
defined
here
/usr/bin/ld:
Warning:
size
of
symbol
`pcap_list_datalinks'
changed
from
59
in
datalinks.o
to
209
in
/usr/local/lib/libpcap.a(pcap.o)
/usr/local/lib/libpcap.a(savefile.o):
In
function
`pcap_dump_ftell':
savefile.c:(.text+0xe0):
multiple
definition
of
`pcap_dump_ftell'
pcap_dump_ftell.o:pcap_dump_ftell.c:(.text+0x0):
first
defined
here
/usr/bin/ld:
Warning:
size
of
symbol
`pcap_dump_ftell'
changed
from
9
in
pcap_dump_ftell.o
to
35
in
/usr/local/lib/libpcap.a(savefile.o)
/usr/local/lib/libpcap.a(gencode.o):
In
function
`pcap_compile':
gencode.c:(.text+0x6bf):
undefined
reference
to
`lex_init'
/usr/local/lib/libpcap.a(gencode.o):
In
function
`.L161':
gencode.c:(.text+0x827):
undefined
reference
to
`lex_cleanup'
/usr/local/lib/libpcap.a(gencode.o):
In
function
`.L146':
gencode.c:(.text+0xe04):
undefined
reference
to
`lex_cleanup'
/usr/local/lib/libpcap.a(grammar.o):
In
function
`.L42':
grammar.c:(.text+0x4e6):
undefined
reference
to
`pcap_lex'
collect2:
ld
returned
1
exit
status
make:
***
[tcpdump]
Error
1
==============
What
am
I
overlooking?
Makefile and config.log available OoB (i.e., on request).
Eric
P.
Sunnyvale,
CA
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Trouble compiling tcpdump-3.9.8 (Reformatted) Eric (Feb 13)
