Hi All,
I tried to compile Tcpxtract on OpenBSD 3.8.
http://tcpxtract.sourceforge.net/
I do nnot get it to work.
Under Fedora Core 3 or FreeBSD 6.0 was it no problem.
It compiles there without any problem.
Maybe someone can please help me?
I made a $./configure -> OK.
After make I got
$make
if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"tcpxtract\" -DVERSION=\"1.0.1\"
-DYYTEXT_POINTER=1 -DHAVE_LIBFL=1
-DHAVE_LIBPCAP=1 -DSTDC_HEADERS=1 -I. -I. -D_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -g -O2 -MT tcpxtract.o -MD -MP -MF "
.deps/tcpxtract.Tpo" -c -o tcpxtract.o tcpxtract.c; then mv -f
".deps/tcpxtract.Tpo" ".deps/tcpxtract.Po";
else rm -f ".deps/tcpxtract.Tpo"; exit 1; fi
tcpxtract.c:71: error: syntax error before "num_packets"
tcpxtract.c:71: warning: data definition has no type or storage class
*** Error code 1
Here the lines from the tcpxtract.c
58 * remember, statically declared variables are
59 * implicitly initialized to zero.
60 */
61
62 static char *progname; /* the name of this program; */
63
64 static void got_packet(u_char *, const struct pcap_pkthdr *, const
u_char *);
65
66 pcap_t *handle; /* Sniff handler */
67 void quit_signal(int);
68
69 slist_t *sessions;
70
71 static uintmax_t num_packets; /* the running total of packets */
72
73 enum protos {
74 TCP_PROTO = 6,
75 UDP_PROTO = 17
76 /* anything else that sits on top of ip (like icmp) will be dumped
in full */
77 };
CU
Stefan