移植:
(1)下载源码:http://sourceforge.net/projects/iperf/
(2)在iperf根目录中运行“./configure --host=mips-linux-uclibc”, 或者其他的交叉编译器
(3)在其根目录中运行“make”, 在src/下生成iperf程序(arm平台的)
编译过程可能报错“ undefined reference to `rpl_malloc'”,解决的方法只要将iperf根目录下config.h中的“#define malloc rpl_malloc”注释掉即可
mips-linux-uclibc-g++ bug fix
/gcc-4.3.3/build_mips/staging_dir/usr/include/bits/socket.h:271: error: expected initializer before 'throw'
gcc version: 4.3.3
bug fix information:
Index: libc/sysdeps/linux/mips/bits/socket.h
===============================