I installed tcpreplay-2.3.5 successfully but it seems that scapy (packet
crafter in python) needs tcpreplay-3.2.0 and I get an error when
executing "make" in this version:
[EMAIL PROTECTED] tcpreplay-3.2.0]# make
Making all in scripts
make[1]: Entering directory `/root/Piotr/tcpreplay-3.2.0/scripts'
gcc -DHAVE_CONFIG_H -I. -I../src -D_U_="__attribute__((unused))"
-Wall -O3 -std=gnu99 -I/usr/local/include -MT man2html.o -MD -MP -MF
.deps/man2html.Tpo -c -o man2html.o man2html.c
mv -f .deps/man2html.Tpo .deps/man2html.Po
/bin/sh ../libtool --tag=CC --mode=link gcc
-D_U_="__attribute__((unused))" -Wall -O3 -std=gnu99
-I/usr/local/include -o man2html man2html.o -lrt -lnsl
mkdir .libs
gcc "-D_U_=__attribute__((unused))" -Wall -O3 -std=gnu99
-I/usr/local/include -o man2html man2html.o -lrt -lnsl
make[1]: Leaving directory `/root/Piotr/tcpreplay-3.2.0/scripts'
Making all in lib
make[1]: Entering directory `/root/Piotr/tcpreplay-3.2.0/lib'
gcc -DHAVE_CONFIG_H -I. -I../src -D_U_="__attribute__((unused))"
-Wall -O3 -std=gnu99 -I/usr/local/include -MT strlcat.o -MD -MP -MF
.deps/strlcat.Tpo -c -o strlcat.o strlcat.c
mv -f .deps/strlcat.Tpo .deps/strlcat.Po
gcc -DHAVE_CONFIG_H -I. -I../src -D_U_="__attribute__((unused))"
-Wall -O3 -std=gnu99 -I/usr/local/include -MT strlcpy.o -MD -MP -MF
.deps/strlcpy.Tpo -c -o strlcpy.o strlcpy.c
mv -f .deps/strlcpy.Tpo .deps/strlcpy.Po
rm -f libstrl.a
ar cru libstrl.a strlcat.o strlcpy.o
ranlib libstrl.a
make[1]: Leaving directory `/root/Piotr/tcpreplay-3.2.0/lib'
Making all in libopts
make[1]: Entering directory `/root/Piotr/tcpreplay-3.2.0/libopts'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../src -I.. -D_U_="__attribute__((unused))" -Wall -O3 -std=gnu99
-I/usr/local/include -MT libopts_la-libopts.lo -MD -MP -MF
.deps/libopts_la-libopts.Tpo -c -o libopts_la-libopts.lo `test -f
'libopts.c' || echo './'`libopts.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I../src -I.. "-D_U_=__attribute__((unused))"
-Wall -O3 -std=gnu99 -I/usr/local/include -MT libopts_la-libopts.lo -MD
-MP -MF .deps/libopts_la-libopts.Tpo -c libopts.c -fPIC -DPIC -o
.libs/libopts_la-libopts.o
gcc -DHAVE_CONFIG_H -I. -I../src -I.. "-D_U_=__attribute__((unused))"
-Wall -O3 -std=gnu99 -I/usr/local/include -MT libopts_la-libopts.lo -MD
-MP -MF .deps/libopts_la-libopts.Tpo -c libopts.c -o
libopts_la-libopts.o >/dev/null 2>&1
mv -f .deps/libopts_la-libopts.Tpo .deps/libopts_la-libopts.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc
-D_U_="__attribute__((unused))" -Wall -O3 -std=gnu99
-I/usr/local/include -version-info 30:0:5 -o libopts.la
libopts_la-libopts.lo -lrt -lnsl
libtool: link: warning: `-version-info/-version-number' is ignored for
convenience libraries
ar cru .libs/libopts.a .libs/libopts_la-libopts.o
ranlib .libs/libopts.a
creating libopts.la
(cd .libs && rm -f libopts.la && ln -s ../libopts.la libopts.la)
make[1]: Leaving directory `/root/Piotr/tcpreplay-3.2.0/libopts'
Making all in src
make[1]: Entering directory `/root/Piotr/tcpreplay-3.2.0/src'
make all-recursive
make[2]: Entering directory `/root/Piotr/tcpreplay-3.2.0/src'
Making all in common
make[3]: Entering directory `/root/Piotr/tcpreplay-3.2.0/src/common'
make all-am
make[4]: Entering directory `/root/Piotr/tcpreplay-3.2.0/src/common'
gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -I../..
-D_U_="__attribute__((unused))" -Wall -O3 -std=gnu99
-I/usr/local/include -MT cidr.o -MD -MP -MF .deps/cidr.Tpo -c -o cidr.o
cidr.c
mv -f .deps/cidr.Tpo .deps/cidr.Po
gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -I../..
-D_U_="__attribute__((unused))" -Wall -O3 -std=gnu99
-I/usr/local/include -MT err.o -MD -MP -MF .deps/err.Tpo -c -o err.o
err.c
mv -f .deps/err.Tpo .deps/err.Po
gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -I../..
-D_U_="__attribute__((unused))" -Wall -O3 -std=gnu99
-I/usr/local/include -MT list.o -MD -MP -MF .deps/list.Tpo -c -o list.o
list.c
mv -f .deps/list.Tpo .deps/list.Po
gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -I../..
-D_U_="__attribute__((unused))" -Wall -O3 -std=gnu99
-I/usr/local/include -MT cache.o -MD -MP -MF .deps/cache.Tpo -c -o
cache.o cache.c
cache.c:326:1: directives may not be used inside a macro argument
cache.c:320:55: unterminated argument list invoking macro "dbgx"
cache.c: In function `add_cache':
cache.c:329: `dbgx' undeclared (first use in this function)
cache.c:329: (Each undeclared identifier is reported only once
cache.c:329: for each function it appears in.)
cache.c:329: parse error before string constant
make[4]: *** [cache.o] Error 1
make[4]: Leaving directory `/root/Piotr/tcpreplay-3.2.0/src/common'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/root/Piotr/tcpreplay-3.2.0/src/common'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/Piotr/tcpreplay-3.2.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/Piotr/tcpreplay-3.2.0/src'
make: *** [all-recursive] Error 1
before that, I made: ./configure which gave such output:
[EMAIL PROTECTED] tcpreplay-3.2.0]# ./configure
checking whether to enable maintainer-specific portions of Makefiles...
no
checking if malloc debugging is wanted... no
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 cygwin development environment... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc option to accept ISO C99... none needed
checking for gcc option to accept ISO Standard C... (cached) none needed
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking for ranlib... (cached) ranlib
checking for gawk... (cached) gawk
checking for a sed that does not truncate output... /bin/sed
checking whether make sets $(MAKE)... (cached) yes
checking for printf... /usr/bin/printf
checking for autogen... no
configure: WARNING: Please install autogen >= 5.9 if you are building
from SVN
checking for ANSI C header files... (cached) yes
checking whether sys/types.h defines makedev... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for u_int64_t... yes
checking for gcc -Wextra support... no
checking for gcc -Wno-variadic-macros support... no
checking for gcc -Wfatal-errors support... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/sysctl.h... yes
checking for net/route.h... yes
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for nanosleep in -lrt... yes
checking for resolv in -lresolv... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for struct timeval.tv_sec... yes
checking for gettimeofday... yes
checking for ctime... yes
checking for memset... yes
checking for regcomp... yes
checking for strdup... yes
checking for strchr... yes
checking for strerror... yes
checking for strtol... yes
checking for strncpy... yes
checking for strtoull... yes
checking for poll... yes
checking for ntohll... no
checking for mmap... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for strlcpy... no
checking whether byte ordering is bigendian... no
configure: Using u_int64_t for packet counters
checking for inet_aton... yes
checking for inet_pton... yes
checking for inet_ntop... yes
checking for inet_addr... yes
checking for libpcap... /usr/local
checking for libpcap version... >= 0.8.0
checking for pcap_datalink_val_to_description... yes
checking for pcap_dump_fopen... yes
checking for pcap_inject sending support... yes
checking for pcap_version... yes
checking for pcap_sendpacket sending support... yes
checking for PF_PACKET socket sending support... yes
checking for BPF device sending support... no
checking for DLT_LINUX_SLL in libpcap... yes
checking for DLT_C_HDLC in libpcap... yes
checking for /usr/local/include/pcap-bpf.h... yes
checking for libpcap bpf header... /usr/local/include/pcap/bpf.h
checking for pcapnav-config... no
checking for requires strict byte alignment... no
checking for tcpdump... /usr/sbin/tcpdump
checking for 'make test' profile... Linux
configure: Using eth0 for 1st test network interface card
configure: Using eth0 for 2nd test network interface card
checking if it's ok to use pcap_findalldevs()... yes
configure: Using supplied libopts tearoff
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for dlfcn.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for fcntl.h... (cached) yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking for memory.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/param.h... (cached) yes
checking for sys/poll.h... (cached) yes
checking sys/procset.h usability... no
checking sys/procset.h presence... no
checking for sys/procset.h... no
checking for sys/select.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking sys/stropts.h usability... yes
checking sys/stropts.h presence... yes
checking for sys/stropts.h... yes
checking for sys/time.h... (cached) yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for string.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdint.h... (cached) yes
checking for int8_t... yes
checking for uint8_t... yes
checking for int16_t... yes
checking for uint16_t... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for intptr_t... yes
checking for uint_t... no
checking for uintptr_t... yes
checking for char*... yes
checking size of char*... 4
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for short... yes
checking size of short... 2
checking for pathfind in -lgen... no
checking for vprintf... (cached) yes
checking for _doprnt... (cached) no
checking for mmap... (cached) yes
checking for canonicalize_file_name... yes
checking for snprintf... (cached) yes
checking for strdup... (cached) yes
checking for strchr... (cached) yes
checking for strrchr... yes
checking whether a reg expr header is specified... no
checking whether with-libregex was specified... no
checking whether with-libregex-cflags was specified... no
checking whether with-libregex-libs was specified... no
checking whether libregex functions properly... yes
checking whether pathfind(3) works... no
checking whether /dev/zero is readable device... crw-rw-rw- 1 root root
1, 5 Jan 30 2003 /dev/zero
checking whether we have a functional realpath(3C)... yes
checking whether strftime() works... yes
checking whether fopen accepts "b" mode... yes
checking whether fopen accepts "t" mode... yes
checking whether not wanting optional option args... yes
configure: creating ./config.status
config.status: creating libopts/Makefile
config.status: creating Makefile
config.status: creating doxygen.cfg
config.status: creating lib/Makefile
config.status: creating docs/Makefile
config.status: creating src/Makefile
config.status: creating src/common/Makefile
config.status: creating src/tcpedit/Makefile
config.status: creating src/flow/Makefile
config.status: creating src/defines.h
config.status: creating test/Makefile
config.status: creating test/config
config.status: creating scripts/Makefile
config.status: creating tcpreplay.spec
config.status: creating src/config.h
config.status: executing depfiles commands
########################################################################
##
TCPREPLAY Suite Configuration Results (3.2.0)
########################################################################
##
libpcap: /usr/local (>= 0.9.6)
libnet: no
autogen:
64bit counter support: yes
tcpdump binary path: /usr/sbin/tcpdump
tcpreplay edit support: no
tcpbridge support: yes
Supported Packet Injection Methods (*):
Linux PF_PACKET: yes
BSD BPF: no
libnet: no
pcap_inject: yes
pcap_sendpacket: yes
* In order of preference; see configure --help to override
What may be the problem? The operating system is:
Linux version 2.4.20-6 (gcc version 3.2.2 20030222 (Red Hat Linux
3.2.2-5))
Thank you for help,
Piotr
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Tcpreplay-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users