tcptrace-bugs Problem compiling TCPTrace 6.6.1

From: wilsonb (wilsonb@cs.wits.ac.za)
Date: 09/20/04


From: "wilsonb" <wilsonb@cs.wits.ac.za>
Subject: tcptrace-bugs Problem compiling TCPTrace 6.6.1
Date: Mon, 20 Sep 2004 15:11:12 +0200
Message-Id: <20040920130453.M89840@cs.wits.ac.za>


Hello,

I am trying to install tcptrace on my system.
The system ha the Mandrake 10.0 installed on it and tcp dump is installed as well.

I downloaded the tcptrace-6.6.1.tar.gz file from tcptrace.org and when I run
the config and make files I get the following output:

./CONFIGURE:
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking gcc version... 3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether make sets ${MAKE}... yes
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for main in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unsigned long long int... yes
checking size of unsigned long long int... 8
checking for unsigned long int... yes
checking size of unsigned long int... 4
checking for unsigned int... yes
checking size of unsigned int... 4
checking for unsigned short... yes
checking size of unsigned short... 2
checking for gethostbyname... yes
checking for socket... yes
checking for putmsg in -lstr... no
checking for fpurge... no
checking for mkstemp... yes
checking for valloc... yes
checking for memalign... yes
checking for inet_pton... yes
checking how to print unsigned long long... %llu
configure: creating ./config.status
config.status: creating Makefile

MAKE:
gcc -L/usr/local/lib -Llib -Lpcap -L../pcap -L./cygwin-libs -O2
-DGUNZIP="\"gunzip\"" -DBUNZIP2="\"bunzip2\"" -DLOAD_MODULE_HTTP -DHTTP_SAFE
-DHTTP_DUMP_TIMES -DLOAD_MODULE_TRAFFIC -DLOAD_MODULE_SLICE
-DLOAD_MODULE_RTTGRAPH -DLOAD_MODULE_COLLIE -DLOAD_MODULE_REALTIME
-DGROK_SNOOP -DGROK_TCPDUMP -DGROK_NETM -DGROK_ETHERPEEK -DGROK_NS
-DGROK_NETSCOUT -DGROK_ERF -DYYTEXT_POINTER=1 -DHAVE_LIBM=1 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSIZEOF_UNSIGNED_LONG_LONG_INT=8
-DSIZEOF_UNSIGNED_LONG_INT=4 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_SHORT=2
-DHAVE_MKSTEMP=1 -DHAVE_VALLOC=1 -DHAVE_MEMALIGN=1 -DHAVE_INET_PTON=1
-DUSE_LLU=1 -D_BSD_SOURCE -I. -I/usr/local/include -I. -I../pcap
-I/usr/include/pcap avl.o compress.o erf.o etherpeek.o gcache.o mfiles.o
names.o netm.o output.o plotter.o print.o rexmit.o snoop.o nlanr.o tcpdump.o
tcptrace.o thruput.o trace.o ipv6.o filt_scanner.o filt_parser.o filter.o
udp.o ns.o netscout.o version.o pool.o poolaccess.o dstring.o mod_http.o
mod_traffic.o mod_rttgraph.o mod_tcplib.o mod_collie.o mod_slice.o
mod_realtime.o dyncounter.o -o tcptrace -lm -lpcap
/usr/local/lib/libpcap.a(pcap.o)(.text+0x14b): In function `pcap_perror':
: undefined reference to `__sF'
/usr/local/lib/libpcap.a(savefile.o)(.text+0x16e): In function
`pcap_open_offline':
: undefined reference to `__sF'
/usr/local/lib/libpcap.a(savefile.o)(.text+0x189): In function
`pcap_open_offline':
: undefined reference to `__error'
/usr/local/lib/libpcap.a(savefile.o)(.text+0x1c3): In function
`pcap_open_offline':
: undefined reference to `__error'
/usr/local/lib/libpcap.a(savefile.o)(.text+0x584): In function
`pcap_dump_open':: undefined reference to `__sF'
/usr/local/lib/libpcap.a(savefile.o)(.text+0x5a1): In function
`pcap_dump_open':: undefined reference to `__error'
/usr/local/lib/libpcap.a(pcap-bpf.o)(.text+0x35): In function `pcap_stats':
: undefined reference to `__error'
/usr/local/lib/libpcap.a(pcap-bpf.o)(.text+0x8b): In function `pcap_read':
: undefined reference to `__error'
/usr/local/lib/libpcap.a(pcap-bpf.o)(.text+0xa5): In function `pcap_read':
: undefined reference to `__error'
/usr/local/lib/libpcap.a(pcap-bpf.o)(.text+0x15e): In function
`pcap_open_live':: undefined reference to `__error'
/usr/local/lib/libpcap.a(pcap-bpf.o)(.text+0x1b3): more undefined references
to `__error' follow
collect2: ld returned 1 exit status
make: *** [tcptrace] Error 1

After this tcptarce does not work (obviously).

Could you please tell me if I am doing something wrong and what I can do to
get this working properly.

Thank you

Brian Wilson



This archive was generated by hypermail 2.1.7 : 09/20/04 EDT