There are duplicate variable definitions in nettest_bsd.c and nettest_omni.c files, which cause a build to fail with clang 11.0.0 and GCC 10.0 due to '-fno-common' option set by default. A fix awaits to be merged upstream: https://github.com/HewlettPackard/netperf/pull/48. Until then can it be applied in the port or can the '-fcommon' option be added to the compilation flags?
A commit references this bug:
Date: Tue Sep 15 15:55:43 UTC 2020
New revision: 548735
benchmarks/netperf: Fix build with clang 11 and gcc 10
Tested using poudriere on 11.3, 12.1, 13.0
Reported by: Krzysztof Galazka
Approved by: build fix (blanket)
Sponsored by: Intel
Small build fix, approval not needed. Thank you, Krzysiek, for the heads up.