Building netperf failed in setting up local machine:
I was trying Setup local machine and all worked fine except that I got one Error: $ sudo apt install python-scapy wireshark tcptrace autoconf texinfo git build-essential rsync
python3-scapy
E: Package 'python-scapy' has no installation candidate
After that I got the the build failed.
rohit@rohit:~/netperf$ sudo make install Making install in src make[1]: Entering directory '/home/rohit/netperf/src' Making install in missing make[2]: Entering directory '/home/rohit/netperf/src/missing' Making install in m4 make[3]: Entering directory '/home/rohit/netperf/src/missing/m4' make[4]: Entering directory '/home/rohit/netperf/src/missing/m4' make[4]: Nothing to be done for 'install-exec-am'. make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/home/rohit/netperf/src/missing/m4' make[3]: Leaving directory '/home/rohit/netperf/src/missing/m4' make[3]: Entering directory '/home/rohit/netperf/src/missing' make[4]: Entering directory '/home/rohit/netperf/src/missing' make[4]: Nothing to be done for 'install-exec-am'. make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/home/rohit/netperf/src/missing' make[3]: Leaving directory '/home/rohit/netperf/src/missing' make[2]: Leaving directory '/home/rohit/netperf/src/missing' make[2]: Entering directory '/home/rohit/netperf/src' gcc -DHAVE_CONFIG_H -I. -I.. -MT netlib.o -MD -MP -MF .deps/netlib.Tpo -c -o netlib.o netlib.c netlib.c: In function ‘netperf_sendfile’: netlib.c:806:11: warning: implicit declaration of function ‘sendfile’ [-Wimplicit-function-declaration] 806 | len=sendfile(send_socket, | ^~~~~~~~ netlib.c: In function ‘bind_to_specific_processor’: netlib.c:2344:9: warning: implicit declaration of function ‘sched_setaffinity’; did you mean ‘SYS_sched_setaffinity’? [-Wimplicit-function-declaration] 2344 | if (sched_setaffinity(getpid(), len, &netperf_cpu_set)) { | ^~~~~~~~~~~~~~~~~ | SYS_sched_setaffinity netlib.c: In function ‘get_id’: netlib.c:3457:10: warning: ‘%-15s’ directive output may be truncated writing between 15 and 64 bytes into a region of size between 16 and 65 [-Wformat-truncation=] 3457 | "%-15s%-15s%-15s%-15s%-15s", | ^~~~~ 3458 | system_name.sysname, 3459 | system_name.nodename, | ~~~~~~~~~~~~~~~~~~~~ netlib.c:3447:2: note: ‘snprintf’ output between 76 and 321 bytes into a destination of size 80 3447 | snprintf(id_string, sizeof(id_string), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3448 | #ifdef WIN32 | ~~~~~~~~~~~~ 3449 | "%-15s%-15s%d.%d%d", | ~~~~~~~~~~~~~~~~~~~~ 3450 | "Windows NT", | ~~~~~~~~~~~~~ 3451 | system_name , | ~~~~~~~~~~~~~ 3452 | GetVersion() & 0xFF , | ~~~~~~~~~~~~~~~~~~~~~ 3453 | GetVersion() & 0xFF00 , | ~~~~~~~~~~~~~~~~~~~~~~~ 3454 | SystemInfo.dwProcessorType | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 3455 | |
3456 | #else | ~~~~~ 3457 | "%-15s%-15s%-15s%-15s%-15s", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3458 | system_name.sysname, | ~~~~~~~~~~~~~~~~~~~~ 3459 | system_name.nodename, | ~~~~~~~~~~~~~~~~~~~~~ 3460 | system_name.release, | ~~~~~~~~~~~~~~~~~~~~ 3461 | system_name.version, | ~~~~~~~~~~~~~~~~~~~~ 3462 | system_name.machine | ~~~~~~~~~~~~~~~~~~~ 3463 | #endif /* WIN32 */ | ~~~~~~~~~~~~~~~~~~ 3464 | ); | ~ mv -f .deps/netlib.Tpo .deps/netlib.Po gcc -DHAVE_CONFIG_H -I. -I.. -MT netsh.o -MD -MP -MF .deps/netsh.Tpo -c -o netsh.o netsh.c mv -f .deps/netsh.Tpo .deps/netsh.Po gcc -o netperf netperf.o netlib.o netsh.o nettest_bsd.o nettest_dlpi.o nettest_unix.o nettest_xti.o nettest_sctp.o nettest_sdp.o nettest_omni.o net_uuid.o dscp.o netcpu_procstat.o -lm /usr/bin/ld: nettest_omni.o:(.bss+0x0): multiple definition ofinterval_count'; nettest_bsd.o:(.bss+0x4c): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x20): multiple definition ofsignal_set'; nettest_bsd.o:(.bss+0x60): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x2a8): multiple definition ofloc_nodelay'; nettest_bsd.o:(.bss+0x20): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x2ac): multiple definition ofrem_nodelay'; nettest_bsd.o:(.bss+0x24): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x2b0): multiple definition ofloc_sndavoid'; nettest_bsd.o:(.bss+0x30): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x2b4): multiple definition ofloc_rcvavoid'; nettest_bsd.o:(.bss+0x34): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x2b8): multiple definition ofrem_sndavoid'; nettest_bsd.o:(.bss+0x38): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x2bc): multiple definition ofrem_rcvavoid'; nettest_bsd.o:(.bss+0x3c): first defined here collect2: error: ld returned 1 exit status make[2]: *** [Makefile:420: netperf] Error 1 make[2]: Leaving directory '/home/rohit/netperf/src' make[1]: *** [Makefile:474: install-recursive] Error 1 make[1]: Leaving directory '/home/rohit/netperf/src' make: *** [Makefile:375: install-recursive] Error 1