appneta / tcpreplay

Pcap editing and replay tools for *NIX and Windows - Users please download source from
http://tcpreplay.appneta.com/wiki/installation.html#downloads
1.15k stars 268 forks source link

[Bug] Installation 'sudo make test' failed #778

Closed jason19970210-senao closed 1 year ago

jason19970210-senao commented 1 year ago

Hello team, It might be function normal after $ ./configure && make && sudo make install, but there are some errors for $ sudo make test

Info:

Operating System  : Ubuntu 22.04.2 LTS
Software Version  : tcpreplay version: 4.4.3 (build git:v4.4.3)

GNU Make 4.3
Built for x86_64-pc-linux-gnu

here is the log for the CLI output:

user@user:~/Downloads/tcpreplay-4.4.3$ ./configure 
checking whether to enable maintainer-specific portions of Makefiles... yes
checking if malloc debugging is wanted... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-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... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
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 dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) 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
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 whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
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 ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking for gawk... (cached) mawk
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking whether make sets $(MAKE)... (cached) yes
checking for printf... /usr/bin/printf
checking for echo... /usr/bin/echo
checking for cut... /usr/bin/cut
checking for autogen... no
checking for groff... /usr/bin/groff
checking for depmod... /usr/sbin/depmod
checking for insmod... /usr/sbin/insmod
checking for rmmod... /usr/sbin/rmmod
configure: Using included libopts tearoff
checking for egrep... (cached) /usr/bin/grep -E
checking whether sys/types.h defines makedev... no
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int8_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for sys/param.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... (cached) inline
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
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... yes
checking for gcc -Wno-variadic-macros support... yes
checking for gcc -Wfatal-errors support... yes
checking for gcc -Wno-format-contains-nul support... yes
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 for sys/time.h... (cached) 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 for stdint.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 netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.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 for sys/param.h... (cached) yes
checking for inttypes.h... (cached) yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking sys/io.h usability... yes
checking sys/io.h presence... yes
checking for sys/io.h... yes
checking architecture/i386/pio.h usability... no
checking architecture/i386/pio.h presence... no
checking for architecture/i386/pio.h... no
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking fts.h usability... yes
checking fts.h presence... yes
checking for fts.h... yes
checking for stdbool.h that conforms to C99... (cached) yes
checking for _Bool... (cached) yes
checking for sys/sysctl.h... no
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 vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether lstat correctly handles trailing slash... yes
checking for working memcmp... yes
checking for vprintf... yes
checking for _doprnt... no
checking whether time.h and sys/time.h may both be included... yes
checking for alarm... yes
checking for working mktime... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for struct timeval.tv_sec... yes
checking for alarm... (cached) yes
checking for atexit... yes
checking for bzero... yes
checking for dup2... yes
checking for gethostbyname... yes
checking for getpagesize... (cached) yes
checking for gettimeofday... yes
checking for ctime... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for memset... yes
checking for munmap... yes
checking for pow... no
checking for putenv... yes
checking for realpath... yes
checking for regcomp... yes
checking for strdup... yes
checking for select... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... (cached) 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 strsignal... yes
checking for strpbrk... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
checking for strtoul... yes
checking for ioperm... yes
checking for strlcpy... no
checking whether byte ordering is bigendian... no
configure: Bypassing libpcap discovery via pcap_config
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 linux/if_tun.h usability... yes
checking linux/if_tun.h presence... yes
checking for linux/if_tun.h... yes
checking for libpcap... /usr
checking for library containing nl_handle_alloc... no
checking for nl_cache_alloc in -lnl... no
checking for genl_connect in -lnl-genl-3... no
checking for nl_cache_alloc in -lnl-3... no
checking for dbus_malloc in -ldbus-1... yes
checking for numa_available in -lnuma... no
checking for pthread_create in -lpthread... yes
checking for library containing pcap_get_pfring_id... no
checking for library containing pcap_close... none required
checking libpcap version... 1.10.1
checking for valid libpcap version... yes
checking for pcap_setnonblock... yes
checking for pcap_datalink_val_to_description... yes
checking for pcap_get_selectable_fd... yes
checking for pcap_dump_fopen... yes
checking for pcap_inject sending support... yes
checking for pcap_sendpacket sending support... yes
checking for pcap_breakloop... no
checking for pcap_version... yes
checking for pcap_snapshot... yes
configure: Building tcpbridge
configure: Building tcpliveplay
checking for netmap socket sending support... no
checking for PF_PACKET socket sending support... yes
checking for TX_RING socket sending support... no
checking net/bpf.h usability... no
checking net/bpf.h presence... no
checking for net/bpf.h... no
checking for libdnet... no
configure: WARNING: libdnet not found, disabling fragroute feature
checking for DLT_LINUX_SLL in libpcap... yes
checking for DLT_C_HDLC in libpcap... yes
checking for /usr/include/pcap-bpf.h... no
checking for libpcap bpf header... no
checking for netmap libpcap... no
checking for pcapnav-config... no 
checking for requires strict byte alignment... no
checking for tcpdump... /usr/bin/tcpdump
checking for 'make test' profile... yes
checking for OS version... 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
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
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... no
checking sys/stropts.h presence... no
checking for sys/stropts.h... no
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 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 libintl.h... (cached) 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 for stdbool.h... (cached) yes
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.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 inttypes.h... (cached) yes
checking for working stdnoreturn.h... yes
checking for runetype.h... no
checking for wchar.h... yes
checking for wchar_t... yes
checking for wint_t... 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 uintptr_t... yes
checking for uint_t... no
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for ptrdiff_t... yes
checking size of char *... 8
checking size of int... 4
checking size of long... 8
checking size of short... 2
checking for pathfind in -lgen... no
checking for gettext in -lintl... no
checking for vprintf... (cached) yes
checking for _doprnt... (cached) no
checking for vfork.h... (cached) no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
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... (cached) yes
checking for strsignal... (cached) yes
checking for fchmod... yes
checking for fstat... yes
checking for chmod... yes
checking for a sed that does not truncate output... (cached) /usr/bin/sed
configure: Using supplied libopts tearoff
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 Feb 14 08:50 /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
checking that generated files are newer than configure... done
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/tcpedit/Makefile
config.status: creating src/fragroute/Makefile
config.status: creating src/common/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 src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

##########################################################################
             TCPREPLAY Suite Configuration Results (4.4.3)
##########################################################################
libpcap:                    /usr (1.10.1)
PF_RING libpcap             no   
libdnet:                    no   
autogen:                     (unknown - man pages will not be built)
Use libopts tearoff:        yes
64bit counter support:      yes
tcpdump binary path:        /usr/bin/tcpdump
fragroute support:          no
tcpbridge support:          yes
tcpliveplay support:        yes

Supported Packet Injection Methods (*):
Linux TX_RING:              no
Linux PF_PACKET:            yes
BSD BPF:                    no
libdnet:                    no
pcap_inject:                yes
pcap_sendpacket:            yes **
pcap_netmap                 no
Linux/BSD netmap:           no
Tuntap device support:      yes

* In order of preference; see configure --help to override
** Required for tcpbridge
user@user:~/Downloads/tcpreplay-4.4.3$ make
Making all in scripts
make[1]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/scripts'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/scripts'
Making all in lib
make[1]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/lib'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/lib'
Making all in libopts
make[1]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/libopts'
make  all-am
make[2]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/libopts'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/libopts'
make[1]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/libopts'
Making all in src
make[1]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src'
make  all-recursive
make[2]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src'
Making all in common
make[3]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src/common'
make  all-am
make[4]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src/common'
  CC       cidr.o
  CC       err.o
  CC       list.o
  CC       cache.o
  CC       services.o
  CC       get.o
  CC       fakepcap.o
  CC       fakepcapnav.o
  CC       fakepoll.o
  CC       xX.o
  CC       utils.o
  CC       timer.o
  CC       sendpacket.o
  CC       mac.o
  CC       interface.o
  CC       flows.o
  CC       tcpdump.o
  AR       libcommon.a
ar: `u' modifier ignored since `D' is the default (see `U')
make[4]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src/common'
make[3]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src/common'
Making all in tcpedit
make[3]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src/tcpedit'
make  all-am
make[4]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src/tcpedit'
  CC       tcpedit.o
  CC       parse_args.o
  CC       edit_packet.o
  CC       portmap.o
  CC       dlt.o
  CC       checksum.o
  CC       incremental_checksum.o
  CC       tcpedit_api.o
  CC       fuzzing.o
  CC       rewrite_sequence.o
  CC       plugins/dlt_plugins.o
  CC       plugins/ethernet.o
  CC       plugins/dlt_utils.o
  CC       plugins/dlt_en10mb/en10mb.o
  CC       plugins/dlt_en10mb/en10mb_api.o
  CC       plugins/dlt_hdlc/hdlc.o
  CC       plugins/dlt_hdlc/hdlc_api.o
  CC       plugins/dlt_user/user.o
  CC       plugins/dlt_user/user_api.o
  CC       plugins/dlt_raw/raw.o
  CC       plugins/dlt_null/null.o
  CC       plugins/dlt_loop/loop.o
  CC       plugins/dlt_linuxsll/linuxsll.o
  CC       plugins/dlt_ieee80211/ieee80211.o
  CC       plugins/dlt_ieee80211/ieee80211_hdr.o
  CC       plugins/dlt_radiotap/radiotap.o
  CC       plugins/dlt_jnpr_ether/jnpr_ether.o
  CC       plugins/dlt_pppserial/pppserial.o
  AR       libtcpedit.a
ar: `u' modifier ignored since `D' is the default (see `U')
make[4]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src/tcpedit'
make[3]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src/tcpedit'
make[3]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src'
  CC       tcpreplay-tcpreplay_opts.o
  CC       tcpreplay-send_packets.o
  CC       tcpreplay-signal_handler.o
  CC       tcpreplay-tcpreplay.o
  CC       tcpreplay-tcpreplay_api.o
  CC       tcpreplay-sleep.o
  CC       tcpreplay-replay.o
  CCLD     tcpreplay
  CC       tcpprep-tcpprep_opts.o
  CC       tcpprep-tcpprep.o
  CC       tcpprep-tree.o
  CC       tcpprep-tcpprep_api.o
  CCLD     tcpprep
  CC       tcprewrite-tcprewrite_opts.o
  CC       tcprewrite-tcprewrite.o
  CCLD     tcprewrite
  CC       tcpreplay_edit-tcpreplay_edit_opts.o
  CC       tcpreplay_edit-send_packets.o
  CC       tcpreplay_edit-signal_handler.o
  CC       tcpreplay_edit-tcpreplay.o
  CC       tcpreplay_edit-tcpreplay_api.o
  CC       tcpreplay_edit-sleep.o
  CC       tcpreplay_edit-replay.o
  CCLD     tcpreplay-edit
  CC       tcpcapinfo-tcpcapinfo_opts.o
  CC       tcpcapinfo-tcpcapinfo.o
  CCLD     tcpcapinfo
  CC       tcpbridge-tcpbridge_opts.o
  CC       tcpbridge-tcpbridge.o
  CC       tcpbridge-bridge.o
  CCLD     tcpbridge
  CC       tcpliveplay-tcpliveplay_opts.o
  CC       tcpliveplay-tcpliveplay.o
  CCLD     tcpliveplay
make[3]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src'
make[2]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src'
make[1]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src'
make[1]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3'
user@user:~/Downloads/tcpreplay-4.4.3$ sudo make install && sudo make test
Making install in scripts
make[1]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/scripts'
make[2]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/scripts'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/scripts'
make[1]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/scripts'
Making install in lib
make[1]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/lib'
make[2]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/lib'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/lib'
make[1]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/lib'
Making install in libopts
make[1]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/libopts'
make  install-am
make[2]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/libopts'
make[3]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/libopts'
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/libopts'
make[2]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/libopts'
make[1]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/libopts'
Making install in src
make[1]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src'
make  install-recursive
make[2]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src'
Making install in common
make[3]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src/common'
make  install-am
make[4]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src/common'
make[5]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src/common'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src/common'
make[4]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src/common'
make[3]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src/common'
Making install in tcpedit
make[3]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src/tcpedit'
make  install-am
make[4]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src/tcpedit'
make[5]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src/tcpedit'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src/tcpedit'
make[4]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src/tcpedit'
make[3]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src/tcpedit'
make[3]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src'
make[4]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/src'
 /usr/bin/mkdir -p '/usr/local/bin'
  /bin/bash ../libtool   --mode=install /usr/bin/install -c tcpreplay tcpprep tcprewrite tcpreplay-edit tcpcapinfo tcpbridge tcpliveplay '/usr/local/bin'
libtool: install: /usr/bin/install -c tcpreplay /usr/local/bin/tcpreplay
libtool: install: /usr/bin/install -c tcpprep /usr/local/bin/tcpprep
libtool: install: /usr/bin/install -c tcprewrite /usr/local/bin/tcprewrite
libtool: install: /usr/bin/install -c tcpreplay-edit /usr/local/bin/tcpreplay-edit
libtool: install: /usr/bin/install -c tcpcapinfo /usr/local/bin/tcpcapinfo
libtool: install: /usr/bin/install -c tcpbridge /usr/local/bin/tcpbridge
libtool: install: /usr/bin/install -c tcpliveplay /usr/local/bin/tcpliveplay
 /usr/bin/mkdir -p '/usr/local/share/man/man1'
 /usr/bin/install -c -m 644 tcpreplay.1 tcpprep.1 tcprewrite.1 tcpreplay-edit.1 tcpcapinfo.1 tcpbridge.1 tcpliveplay.1 '/usr/local/share/man/man1'
make[4]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src'
make[3]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src'
make[2]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src'
make[1]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/src'
make[1]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3'
make[2]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3'
make[1]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3'
echo Making test in ./test
Making test in ./test
cd ./test && make test
make[1]: Entering directory '/home/user/Downloads/tcpreplay-4.4.3/test'
NOTICE: Tests must be run as root
Sending traffic on 'eth0' and 'eth0'
[tcpprep] Auto/Router mode test:                OK
[tcpprep] Auto/Bridge mode test:                OK
[tcpprep] Auto/Client mode test:                OK
[tcpprep] Auto/Server mode test:                OK
[tcpprep] Auto/First mode test:                 OK
[tcpprep] CIDR mode test:                       OK
[tcpprep] Regex mode test:                      OK
[tcpprep] Port mode test:                       OK
[tcpprep] MAC mode test:                        OK
[tcpprep] Comment mode test:                    OK
[tcpprep] Print info mode test:                 OK
[tcpprep] Print comment mode test:              OK
[tcpprep] Config mode test:                     OK
[tcpprep] MAC reverse mode test:                OK
[tcpprep] CIDR reverse mode test:               OK
[tcpprep] Regex reverse mode test:              OK
[tcpprep] exclude packets test:                 OK
[tcpprep] include packets test:                 OK
[tcpprep] include source test:                  OK
[tcpprep] include destination test:             OK
[tcpreplay] Basic test: make[1]: *** [Makefile:814: replay_basic] Error 255
[tcpreplay] Cache test: make[1]: *** [Makefile:820: replay_cache] Error 255
[tcpreplay] Packets/sec test: make[1]: *** [Makefile:1095: replay_pps] Error 255
[tcpreplay] Mbps test: make[1]: *** [Makefile:1101: replay_rate] Error 255
[tcpreplay] Topspeed test: make[1]: *** [Makefile:1119: replay_top] Error 255
[tcpreplay] Config file/VLAN add test: make[1]: *** [Makefile:1137: replay_config] Error 255
[tcpreplay] Multiplier test: make[1]: *** [Makefile:1107: replay_multi] Error 255
[tcpreplay] Packets/sec Multiplier test: make[1]: *** [Makefile:1113: replay_pps_multi] Error 255
[tcpreplay] Precache test: make[1]: *** [Makefile:1125: replay_precache] Error 255
[tcpreplay] Statistics test: make[1]: *** [Makefile:832: replay_stats] Error 255
[tcpreplay] Dual file test: make[1]: *** [Makefile:1143: replay_dualfile] Error 255
[tcpreplay] Maximum sleep test: make[1]: *** [Makefile:1149: replay_maxsleep] Error 255
[tcprewrite] Portmap test:                      OK
[tcprewrite] Portmap range test:                OK
[tcprewrite] Endpoint test:                     OK
[tcprewrite] Pseudo NAT test:                   OK
[tcprewrite] Truncate test:                     OK
[tcprewrite] Pad test:                          OK
[tcprewrite] Seed IP test:                      OK
[tcprewrite] Src/Dst MAC test:                  OK
[tcprewrite] Layer2 test:                       OK
[tcprewrite] Config/VLAN Add test:              OK
[tcprewrite] Skip bcast test:                   OK
[tcprewrite] DLT User test:                     OK
[tcprewrite] DLT Cisco HDLC test:               OK
[tcprewrite] VLAN 802.1ad test:                 OK
[tcprewrite] VLAN Delete test:                  OK
[tcprewrite] Remove EFCS:                       OK
[tcprewrite] Force TTL:                         OK
[tcprewrite] Increase TTL:                      OK
[tcprewrite] Reduce TTL:                        OK
[tcprewrite] TOS test:                          OK
[tcprewrite] MTU Truncate test:                 OK
[tcprewrite] Substitute Src/Dst MAC test:       OK
[tcprewrite] Seeded MAC test:                   OK
[tcprewrite] Seeded Keep MAC test:              OK
[tcprewrite] L7 fuzzing test:                   OK
[tcprewrite] TCP sequence test:                 OK
[tcprewrite] Fix checksum test:                 OK
[tcprewrite] Fix length and pad test:           OK
[tcprewrite] Fix length and truncate test:      OK
[tcprewrite] Fix length and delete test:        OK
make[1]: Target 'test' not remade because of errors.
make[1]: Leaving directory '/home/user/Downloads/tcpreplay-4.4.3/test'
make: *** [Makefile:890: test] Error 2
fklassen commented 1 year ago

Most likely this is because you don't have the default test interface eth0 on your Linux. You must specify a valid interface name to run tests, e.g.

./configure --with-testnic=enp0s5