Hi,

i tried to compile tcpreplay-3.0-beta12 on a system that doesn't have tcpdump 
installed. During configure i got

checking for tcpdump... no
configure: WARNING: Unable to find tcpdump.  Please specify --with-tcpdump.
                 Disabling verbose reporting.

but configure succeeds.
I then tried to compile the source and got the error message seen below:

[...]
gcc -DHAVE_CONFIG_H -I. -I../../src    -I.. -I../..  -g -O2 -Wall -O2 
-funroll-loops -std=gnu99 -MT 
tcpdump.o -MD -MP -MF .deps/tcpdump.Tpo -c -o tcpdump.o tcpdump.c
In file included from ../../src/defines.h:5,
                 from tcpdump.c:48:
../../src/tcpr.h:1716:7: warning: no newline at end of file
tcpdump.c: In function ‘tcpdump_init’:
tcpdump.c:165: error: ‘TCPDUMP_BINARY’ undeclared (first use in this function)
tcpdump.c:165: error: (Each undeclared identifier is reported only once
tcpdump.c:165: error: for each function it appears in.)
tcpdump.c: In function ‘tcpdump_open’:
tcpdump.c:288: error: ‘TCPDUMP_BINARY’ undeclared (first use in this function)
tcpdump.c: In function ‘tcpdump_fill_in_options’:
tcpdump.c:355: error: ‘TCPDUMP_BINARY’ undeclared (first use in this function)
make[4]: *** [tcpdump.o] Error 1
make[4]: Leaving directory `/home/lothar/tcpreplay-3.0.beta12/src/common'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/lothar/tcpreplay-3.0.beta12/src/common'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/lothar/tcpreplay-3.0.beta12/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/lothar/tcpreplay-3.0.beta12/src'

I'd either expect configure to abort or tcpreplay to compile properly when 
tcpdump is missing on a system. Can this one be fixed before RC1?

Best regards,
  Lothar

-- 
There are only two kinds of languages: the 
ones nobody uses and the ones everybody bitches
about"
 - B. Stroustroup

Blog: http://const-cast.blogspot.com

Attachment: pgpwO05tdFUtH.pgp
Description: PGP signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcpreplay-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users

Reply via email to