Problems encountered in porting iperf3

Version: iperf-3.0.11

Operating machine: armv7

1. There is a compilation problem and error: undefined reference to'__gnu_mcount_nc'

main.c:62: error: undefined reference to '__gnu_mcount_nc'
main.c:124: error: undefined reference to '__gnu_mcount_nc'
main.c:131: error: undefined reference to '__gnu_mcount_nc'
cjson.c:50: error: undefined reference to '__gnu_mcount_nc'

Through searching, it is found that it is caused by the feature of compiling iperf3_profile. For most of our users, this function can be used as a reference (https://github.com/esnet/iperf/issues/335; https://github.com/esnet/ iperf/issues/410) So we can modify the makefile and remove this feature to avoid compilation problems.

The specific modifications are as follows:
modify src/Makefile.am 

modify src/Makefile.in


2. The execution time reported that the libiperf.so.0 library could not be loaded 

It is because the compiled library is not copied to the running environment. The
compiled libraries are all in src/.libs
iperf3: can't load library'libiperf.so.0'

Guess you like

Origin blog.csdn.net/qq_36413391/article/details/112622795