移植iperf3遇到的问题

版本:iperf-3.0.11

运行机器:armv7

1.出现编译问题报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'

通过搜索发现是因为编译iperf3_profile特性引起,对于我们大多数的用户该功能是可以不用的参考(https://github.com/esnet/iperf/issues/335;https://github.com/esnet/iperf/issues/410)所以我们可以修改makefile,将该特性去掉来避免编译问题。

具体修改如下:
修改 src/Makefile.am 

修改 src/Makefile.in


2.执行时候报不能加载libiperf.so.0库 

是因为没有将编译生成的库拷贝至运行的环境
编译生成的库都在src/.libs
iperf3: can't load library 'libiperf.so.0'

猜你喜欢

转载自blog.csdn.net/qq_36413391/article/details/112622795