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"


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值