mailing.freebsd.current

来自 Building asterisk - undefined reference to `__sync_fetch_and_add_4' 讨论的消息

Path: g2news2.google.com!news2.google.com!newshub.sdsu.edu!ctu-peer!news.nctu.edu.tw!netnews.chu.edu.tw!FreeBSD.csie.NCTU.edu.tw!not-for-mail
From: i...@clue.co.za (Ian FREISLICH)
Newsgroups: mailing.freebsd.current
Subject: Building asterisk - undefined reference to `__sync_fetch_and_add_4'
Date: Mon, 10 Sep 2007 18:12:11 +0800 (CST)
Organization: NCTU CSIE FreeBSD Server
Lines: 92
Sender: nob...@FreeBSD.csie.nctu.edu.tw
Message-ID: <fc359r$2d9g$1@FreeBSD.csie.nctu.edu.tw>
NNTP-Posting-Host: freebsd.csie.nctu.edu.tw
X-Trace: FreeBSD.csie.nctu.edu.tw 1189419131 36310 140.113.17.209 (10 Sep 2007 10:12:11 GMT)
X-Complaints-To: usenet@FreeBSD.csie.nctu.edu.tw
NNTP-Posting-Date: Mon, 10 Sep 2007 10:12:11 +0000 (UTC)

Hi

I was wondering if anyone else is having this problem building
asterisk on -CURRENT.  The problem may not be with FreeBSD - it
looks like gnu configure is incorrectly detecting the CPU as "i386"
when it's actually a pentium3:

configure: Package configured for: 
configure: OS type  : freebsd7.0
configure: Host CPU : i386
===>  Building for asterisk-1.4.11

The i386 doesn't have any atomic primatives or something like that
(maybe just according to gcc-4.2).  If I frob the configured sources
and change the i386 to pentium3, then the build works, but I don't
have enough asterisk foo at this point to verify that it actually
works.

 ast_expr2f.o asterisk.o astmm.o autoservice.o callerid.o cdr.o channel.o chanv
ars.o cli.o config.o cryptostub.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o
 enum.o file.o fixedjitterbuf.o frame.o fskmodem.o http.o image.o indications.o 
io.o jitterbuf.o loader.o logger.o manager.o md5.o netsock.o pbx.o plc.o privacy
.o rtp.o say.o sched.o sha1.o slinfactory.o srv.o stdtime/localtime.o strcompat.
o tdd.o term.o threadstorage.o translate.o udptl.o ulaw.o utils.o editline/libed
it.a -> asterisk
channel.o(.text+0x2b52): In function `ast_channel_alloc':
/usr/ports/net/asterisk/work/asterisk-1.4.11/include/asterisk/lock.h:775: undefi
ned reference to `__sync_fetch_and_add_4'
channel.o(.text+0x2ec1):/usr/ports/net/asterisk/work/asterisk-1.4.11/include/ast
erisk/lock.h:775: undefined reference to `__sync_fetch_and_add_4'
cli.o(.text+0x3a4a): In function `ast_cli_command':
/usr/ports/net/asterisk/work/asterisk-1.4.11/include/asterisk/lock.h:775: undefi
ned reference to `__sync_fetch_and_add_4'
dial.o(.text+0x3da): In function `ast_dial_append':
/usr/ports/net/asterisk/work/asterisk-1.4.11/include/asterisk/lock.h:775: undefi
ned reference to `__sync_fetch_and_add_4'
loader.o(.text+0xe3c): In function `__ast_module_user_add':
/usr/ports/net/asterisk/work/asterisk-1.4.11/include/asterisk/lock.h:775: undefi
ned reference to `__sync_fetch_and_add_4'
loader.o(.text+0xec9):/usr/ports/net/asterisk/work/asterisk-1.4.11/include/aster
isk/lock.h:775: more undefined references to `__sync_fetch_and_add_4' follow
manager.o(.text+0x197): In function `process_events':
/usr/ports/net/asterisk/work/asterisk-1.4.11/include/asterisk/lock.h:809: undefi
ned reference to `__sync_sub_and_fetch_4'
manager.o(.text+0x173e): In function `free_session':
/usr/ports/net/asterisk/work/asterisk-1.4.11/include/asterisk/lock.h:809: undefi
ned reference to `__sync_sub_and_fetch_4'
manager.o(.text+0x18ab): In function `accept_thread':
/usr/ports/net/asterisk/work/asterisk-1.4.11/include/asterisk/lock.h:775: undefi
ned reference to `__sync_fetch_and_add_4'
manager.o(.text+0x1962):/usr/ports/net/asterisk/work/asterisk-1.4.11/include/ast
erisk/lock.h:775: undefined reference to `__sync_fetch_and_add_4'
manager.o(.text+0x1a67):/usr/ports/net/asterisk/work/asterisk-1.4.11/include/ast
erisk/lock.h:775: undefined reference to `__sync_fetch_and_add_4'
manager.o(.text+0x1b15):/usr/ports/net/asterisk/work/asterisk-1.4.11/include/ast
erisk/lock.h:775: undefined reference to `__sync_fetch_and_add_4'
manager.o(.text+0x4774): In function `action_waitevent':
/usr/ports/net/asterisk/work/asterisk-1.4.11/include/asterisk/lock.h:809: undefi
ned reference to `__sync_sub_and_fetch_4'
manager.o(.text+0x5f81): In function `generic_http_callback':
/usr/ports/net/asterisk/work/asterisk-1.4.11/include/asterisk/lock.h:775: undefi
ned reference to `__sync_fetch_and_add_4'
manager.o(.text+0x5f8f):/usr/ports/net/asterisk/work/asterisk-1.4.11/include/ast
erisk/lock.h:775: undefined reference to `__sync_fetch_and_add_4'
manager.o(.text+0x6a65):/usr/ports/net/asterisk/work/asterisk-1.4.11/include/ast
erisk/lock.h:775: undefined reference to `__sync_fetch_and_add_4'
manager.o(.text+0x70b5): In function `session_do':
/usr/ports/net/asterisk/work/asterisk-1.4.11/include/asterisk/lock.h:775: undefi
ned reference to `__sync_fetch_and_add_4'
utils.o(.text+0xde8): In function `ast_atomic_dec_and_test':
/usr/ports/net/asterisk/work/asterisk-1.4.11/include/asterisk/lock.h:809: undefi
ned reference to `__sync_sub_and_fetch_4'
utils.o(.text+0xe01): In function `ast_atomic_fetchadd_int':
/usr/ports/net/asterisk/work/asterisk-1.4.11/include/asterisk/lock.h:775: undefi
ned reference to `__sync_fetch_and_add_4'
gmake[1]: *** [asterisk] Error 1
gmake: *** [main] Error 2
*** Error code 2

Stop in /usr/ports/net/asterisk.
*** Error code 1

Stop in /usr/ports/net/asterisk.


--
Ian Freislich

_______________________________________________
freebsd-curr...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


本项目属于机器学习的简单部分,基于为了快速理解机器学习而搭建的人工智能速成项目,大家可以根据其中的项目时间进行相关的学习.zip项目工程资源经过严格测试可直接运行成功且功能正常的情况才上传,可轻松复刻,拿到资料包后可轻松复现出一样的项目,本人系统开发经验充足(全领域),有任何使用问题欢迎随时与我联系,我会及时为您解惑,提供帮助。 【资源内容】:包含完整源码+工程文件+说明(如有)等。答辩评审平均分达到96分,放心下载使用!可轻松复现,设计报告也可借鉴此项目,该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的。 【提供帮助】:有任何使用问题欢迎随时与我联系,我会及时解答解惑,提供帮助 【附带帮助】:若还需要相关开发工具、学习资料等,我会提供帮助,提供资料,鼓励学习进步 【项目价值】:可用在相关项目设计中,皆可应用在项目、毕业设计、课程设计、期末/期中/大作业、工程实训、大创等学科竞赛比赛、初期项目立项、学习/练手等方面,可借鉴此优质项目实现复刻,设计报告也可借鉴此项目,也可基于此项目来扩展开发出更多功能 下载后请首先打开README文件(如有),项目工程可直接复现复刻,如果基础还行,也可在此程序基础上进行修改,以实现其它功能。供开源学习/技术交流/学习参考,勿用于商业用途。质量优质,放心下载使用。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值