HewlettPackard / netperf

Netperf is a benchmark that can be used to measure the performance of many different types of networking. It provides tests for both unidirectional throughput, and end-to-end latency.
MIT License
859 stars 187 forks source link

netperf compile error with "--enable-intervals=yes" #59

Closed quanwenli closed 1 year ago

quanwenli commented 3 years ago

Netperf compile error with " --enable-intervals=yes"

/usr/bin/ld: nettest_omni.o:(.bss+0x0): multiple definition of interval_count'; nettest_bsd.o:(.bss+0x60): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x20): multiple definition ofsignal_set'; nettest_bsd.o:(.bss+0x80): first defined here

lele121314 commented 2 years ago

1、make clean

2、make CFLAGS=-fcommon (for gcc 10)

79rpm commented 1 year ago

I have a similar issue with Raspbian. Make sure you install textinfo so makeinfo is available; otherwise the make CLFAGS=-fcommon will also fail!

$ uname -a Linux raspberrypi 6.1.19-v8+ #1637 SMP PREEMPT Tue Mar 14 11:11:47 GMT 2023 aarch64 GNU/Linux

quanwenli commented 1 year ago

1、make clean

2、make CFLAGS=-fcommon (for gcc 10)

thanks for your information, it fixs the issue on my system.

quanwenli commented 1 year ago

I have a similar issue with Raspbian. Make sure you install textinfo so makeinfo is available; otherwise the make CLFAGS=-fcommon will also fail!

thanks for your information, on rhel, do not need textinfo.

$ uname -a Linux raspberrypi 6.1.19-v8+ #1637 SMP PREEMPT Tue Mar 14 11:11:47 GMT 2023 aarch64 GNU/Linux