freebsd7安装ASTERISK,编译出错,求助
FREEBSD7R,内核级IPFW,准备做NAT,
用ports(已经更新到最新)安装asterisk 1.4.18
只选了ogg支持。没有安装APACHE,MYSQL,PHP,ZEND。
编译到下面步骤出错,不知道是有没有经历过这种状况并解决了的高人(COPY别人的出错信息,他的情况和我一样)
astobj2.o(.text+0x98b):/usr/ports/net/asterisk/work/asterisk-1.4.13/include/asterisk/lock.h:869: undefined reference to `__sync_fetch_and_add_4'
channel.o(.text+0x2e79):/usr/ports/net/asterisk/work/asterisk-1.4.13/include/asterisk/lock.h:869: more undefined references to `__sync_fetch_and_add_4' follow
manager.o(.text+0x177): In function `process_events':
/usr/ports/net/asterisk/work/asterisk-1.4.13/include/asterisk/lock.h:915: undefined reference to `__sync_sub_and_fetch_4'
manager.o(.text+0x179e): In function `free_session':
/usr/ports/net/asterisk/work/asterisk-1.4.13/include/asterisk/lock.h:915: undefined reference to `__sync_sub_and_fetch_4'
manager.o(.text+0x1a91): In function `accept_thread':
/usr/ports/net/asterisk/work/asterisk-1.4.13/include/asterisk/lock.h:869: undefined reference to `__sync_fetch_and_add_4'
manager.o(.text+0x495: In function `action_waitevent':
/usr/ports/net/asterisk/work/asterisk-1.4.13/include/asterisk/lock.h:915: undefined reference to `__sync_sub_and_fetch_4'
manager.o(.text+0x5dee): In function `generic_http_callback':
/usr/ports/net/asterisk/work/asterisk-1.4.13/include/asterisk/lock.h:869: undefined reference to `__sync_fetch_and_add_4'
manager.o(.text+0x5dfc):/usr/ports/net/asterisk/work/asterisk-1.4.13/include/asterisk/lock.h:869: undefined reference to `__sync_fetch_and_add_4'
utils.o(.text+0xdd0): In function `ast_atomic_dec_and_test':
/usr/ports/net/asterisk/work/asterisk-1.4.13/include/asterisk/lock.h:915: undefined reference to `__sync_sub_and_fetch_4'
utils.o(.text+0xde9): In function `ast_atomic_fetchadd_int':
/usr/ports/net/asterisk/work/asterisk-1.4.13/include/asterisk/lock.h:869: undefined reference to `__sync_fetch_and_add_4'
gmake[1]: *** [asterisk] ´íÎó 1
gmake: *** [main] ´íÎó 2
*** Error code 2
Stop in /usr/ports/net/asterisk.
*** Error code 1
Stop in /usr/ports/net/asterisk
失败后make clean再安装失败,甚至将asterisk相关联的软件全部pkg_delete后再安装也遇到同样错误信息。
看别人提示说:
这个是需要编译器支持的。
use atomic operations provided by the compiler if they are available (yay for gcc 4.1 users!)
估计是源代码有问题,可以下最新的试试。1.4.16.2
但我已用的是最新的1.4.18,不知道那里需要修改的?
[ 本帖最后由 george_young 于 2008-5-5 21:05 编辑 ]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
受教了,不错的学习经验
改用rhel,一次搞定
please check it from :http://bbs.chinaunix.net/thread-1064395-1-2.html. it maybe be help.
Regards!
zhulizhong