Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building netperf failed in setting up local machine: #5

Open
rohitnitk opened this issue Feb 18, 2021 · 0 comments
Open

Building netperf failed in setting up local machine: #5

rohitnitk opened this issue Feb 18, 2021 · 0 comments

Comments

@rohitnitk
Copy link

rohitnitk commented Feb 18, 2021

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 of interval_count'; nettest_bsd.o:(.bss+0x4c): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x20): multiple definition of signal_set'; nettest_bsd.o:(.bss+0x60): first defined here
/usr/bin/ld: nettest_omni.o:(.bss+0x2a8): multiple definition of loc_nodelay'; nettest_bsd.o:(.bss+0x20): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x2ac): multiple definition of rem_nodelay'; nettest_bsd.o:(.bss+0x24): first defined here
/usr/bin/ld: nettest_omni.o:(.bss+0x2b0): multiple definition of loc_sndavoid'; nettest_bsd.o:(.bss+0x30): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x2b4): multiple definition of loc_rcvavoid'; nettest_bsd.o:(.bss+0x34): first defined here
/usr/bin/ld: nettest_omni.o:(.bss+0x2b8): multiple definition of rem_sndavoid'; nettest_bsd.o:(.bss+0x38): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x2bc): multiple definition of rem_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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant