From: Philip Damian-Grint (philip.damiangrint@nhs.uk)
Date: 05/08/06
From: "Philip Damian-Grint" <philip.damiangrint@nhs.uk> Subject: tcptrace-bugs compile errors in SUSE 9.0 Date: Mon, 8 May 2006 16:54:52 +0100 Message-ID: <002601c672b7$be3e1880$5a02a8c0@ealingpct.nhs.uk>
Hello buglist,
I'm trying to compile the latest stable release of tcptrace under SUSE 9 and
am getting errors in print.c. My output is below. libpcap version 0.8.1039.3
is already installed on the system. Am I missing something obvious? Is any
other information required?
dns01:/home/pdg/analysis/tcptrace-6.6.7 # ./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... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for bison... no
checking for byacc... no
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
dns01:/home/pdg/analysis/tcptrace-6.6.7 # make
gcc -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 -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 -I. -I/usr/local/include -I. -I../pcap
-I/usr/include/pcap -c -o avl.o avl.c
gcc -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 -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 -I. -I/usr/local/include -I. -I../pcap
-I/usr/include/pcap -c -o compress.o compress.c
gcc -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 -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 -I. -I/usr/local/include -I. -I../pcap
-I/usr/include/pcap -c -o erf.o erf.c
gcc -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 -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 -I. -I/usr/local/include -I. -I../pcap
-I/usr/include/pcap -c -o etherpeek.o etherpeek.c
gcc -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 -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 -I. -I/usr/local/include -I. -I../pcap
-I/usr/include/pcap -c -o gcache.o gcache.c
gcc -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 -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 -I. -I/usr/local/include -I. -I../pcap
-I/usr/include/pcap -c -o mfiles.o mfiles.c
gcc -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 -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 -I. -I/usr/local/include -I. -I../pcap
-I/usr/include/pcap -c -o names.o names.c
gcc -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 -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 -I. -I/usr/local/include -I. -I../pcap
-I/usr/include/pcap -c -o netm.o netm.c
gcc -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 -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 -I. -I/usr/local/include -I. -I../pcap
-I/usr/include/pcap -c -o output.o output.c
gcc -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 -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 -I. -I/usr/local/include -I. -I../pcap
-I/usr/include/pcap -c -o plotter.o plotter.c
gcc -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 -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 -DHLIGN=1
-DHAVE_INET_PTON=1 -DUSE_LLU=1 -I. -I/usr/local/include -I. -I../pcap
-I/usr/include/pcap -c -o print.o print.c
print.c: In function `printtcp_packet':
print.c:380: error: structure has no member named `th_off'
print.c:387: error: structure has no member named `th_sport'
print.c:388: error: structure has no member named `th_sport'
print.c:390: error: structure has no member named `th_dport'
print.c:391: error: structure has no member named `th_dport'
print.c:393: error: structure has no member named `th_flags'
print.c:394: error: structure has no member named `th_flags'
print.c:395: error: structure has no member named `th_flags'
print.c:395: error: `TH_URG' undeclared (first use in this function)
print.c:395: error: (Each undeclared identifier is reported only once
print.c:395: error: for each function it appears in.)
print.c:396: error: structure has no member named `th_flags'
print.c:396: error: `TH_ACK' undeclared (first use in this function)
print.c:397: error: structure has no member named `th_flags'
print.c:397: error: `TH_PUSH' undeclared (first use in this function)
print.c:398: error: structure has no member named `th_flags'
print.c:398: error: `TH_RST' undeclared (first use in this function)
print.c:399: error: structure has no member named `th_flags'
print.c:399: error: `TH_SYN' undeclared (first use in this function)
print.c:400: error: structure has no member named `th_flags'
print.c:400: error: `TH_FIN' undeclared (first use in this function)
print.c:401: error: structure has no member named `th_flags'
print.c:402: error: structure has no member named `th_seq'
print.c:403: error: structure has no member named `th_ack'
print.c:404: error: structure has no member named `th_win'
print.c:405: error: structure has no member named `th_off'
print.c:406: error: structure has no member named `th_off'
print.c:413: error: structure has no member named `th_x2'
print.c:415: error: structure has no member named `th_x2'
print.c:417: error: structure has no member named `th_sum'
print.c:418: error: structure has no member named `th_off'
print.c:439: error: structure has no member named `th_off'
print.c:443: error: structure has no member named `th_off'
print.c:444: error: structure has no member named `th_off'
print.c:503: error: structure has no member named `th_off'
print.c: In function `printudp_packet':
print.c:535: error: structure has no member named `uh_sport'
print.c:536: error: structure has no member named `uh_sport'
print.c:538: error: structure has no member named `uh_dport'
print.c:539: error: structure has no member named `uh_dport'
print.c:541: error: structure has no member named `uh_ulen'
print.c:543: error: structure has no member named `uh_sum'
print.c:552: error: structure has no member named `uh_ulen'
print.c:553: error: structure has no member named `uh_ulen'
print.c:556: error: structure has no member named `uh_ulen'
make: *** [print.o] Error 1
dns01:/home/pdg/analysis/tcptrace-6.6.7 #
Regards
Philip Damian-Grint
***************************************************************************
This e-mail is confidential and privileged. If you are not the intended
recipient please accept our apologies; please do not disclose, copy or
distribute information in this e-mail or take any action in reliance on its
contents: to do so is strictly prohibited and may be unlawful. Please
inform us that this message has gone astray before deleting it. Thank you
for your co-operation.
***************************************************************************
This archive was generated by hypermail 2.1.7 : 05/08/06 EDT