sip测试工具sipsak交叉编译及使用
2010-03-01 14:00
337 查看
这又是一个autoconf发布的包,有上次移植pjsip的经验,这次就轻松很多了。虽然还是小有点问题
用下面一句进行configure,产生Makefile:
CC=armv5l-linux-gcc ./configure --host=armv5l-linux --target=armv5l-linux --build=i386-redhat-linux
OK!make。。。
sipsak.o: In function `main':
/home/voip_prj/sipsak/sipsak/sipsak.c:542: undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[1]: *** [sipsak] 错误1
make[1]: Leaving directory `/home/voip_prj/sipsak/sipsak'
make: *** [all] 错误 2
额,放狗去找错误undefined reference to `rpl_malloc'。
结果:1、configure的时候加上--with-gnu-ld这个参数 2、或者在config.h里加上#undef rpl_malloc
在configure的时候假如参数--with-gnu-ld,没有成功;在config.h里加入#undef rpl_malloc也没成功。。。不过看到一句
#define malloc rpl_malloc 为什么一定要把malloc给用rpl_malloc替换?so,立马注释掉!
make,成功!file sipsak:
sipsak: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped
下载到板子运行正常。
又搜了下,发现一哥们是这么解决的:
当前目录查找了rpl_malloc,发现configure里有#define malloc rpl_malloc一行。分析configure 脚本相关的代码,原来是ac_cv_func_malloc_0_nonnull引起的,OK我们不让它检查了,产生一个cache文件arm-linux.cache,欺骗configure:
[root@linux tslib]# echo "ac_cv_func_malloc_0_nonnull=yes" >$ ARCH -linux.cache
[root@linux tslib]# ./configure --prefix=$(ROOTFS_DIR)/usr --host=$ ARCH -linux --cache-file=$ ARCH -linux.cache
据说也可以,没有尝试。
用下面一句进行configure,产生Makefile:
CC=armv5l-linux-gcc ./configure --host=armv5l-linux --target=armv5l-linux --build=i386-redhat-linux
OK!make。。。
sipsak.o: In function `main':
/home/voip_prj/sipsak/sipsak/sipsak.c:542: undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[1]: *** [sipsak] 错误1
make[1]: Leaving directory `/home/voip_prj/sipsak/sipsak'
make: *** [all] 错误 2
额,放狗去找错误undefined reference to `rpl_malloc'。
结果:1、configure的时候加上--with-gnu-ld这个参数 2、或者在config.h里加上#undef rpl_malloc
在configure的时候假如参数--with-gnu-ld,没有成功;在config.h里加入#undef rpl_malloc也没成功。。。不过看到一句
#define malloc rpl_malloc 为什么一定要把malloc给用rpl_malloc替换?so,立马注释掉!
make,成功!file sipsak:
sipsak: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped
下载到板子运行正常。
又搜了下,发现一哥们是这么解决的:
当前目录查找了rpl_malloc,发现configure里有#define malloc rpl_malloc一行。分析configure 脚本相关的代码,原来是ac_cv_func_malloc_0_nonnull引起的,OK我们不让它检查了,产生一个cache文件arm-linux.cache,欺骗configure:
[root@linux tslib]# echo "ac_cv_func_malloc_0_nonnull=yes" >$ ARCH -linux.cache
[root@linux tslib]# ./configure --prefix=$(ROOTFS_DIR)/usr --host=$ ARCH -linux --cache-file=$ ARCH -linux.cache
据说也可以,没有尝试。
相关文章推荐
- SIP压力测试最好的工具,SIPp的安装与使用 (第一章)
- SIP网关压力测试工具SIPp的安装及使用详解
- SIP压力测试最好的工具,SIPp的安装与使用 (第三章)
- 嵌入式 linux以及arm平台上网络设备测试工具iperf交叉编译以及使用
- SIP压力测试最好的工具,SIPp的安装与使用 (第二章)
- 测试工具的选择和使用
- sysbench压力测试工具使用
- 如何评估使用Web应用程序安全测试工具?
- python的web压力测试工具-pylot安装使用
- 接口测试工具SoapUI Pro5.1.2基本使用20150920
- Web网站压力及性能测试工具WebBench使用指南
- 安全性测试AppScan工具使用实战20150920
- Web服务器压力测试工具http_load、webbench、ab、Siege、autobench使用教程
- 使用SIPP来进行SIP压力测试(一)
- 接口测试工具SoapUI Pro5.1.2基本使用20150920
- ONVIF协议测试工具的简单使用(一)
- java junit (单元测试)测试工具如何使用?
- 功能测试工具QTP & 性能测试工具LoadRunner使用总结
- 一步一步使用自动化测试工具selenium
- 使用Apache的ab工具测试网站压力