ports/124509: can't build asterisk

Wojciech Puchar wojtek at wojtek.tensor.gdynia.pl
Thu Jun 12 10:20:06 UTC 2008


>Number:         124509
>Category:       ports
>Synopsis:       can't build asterisk
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 12 10:20:06 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Wojciech Puchar
>Release:        7.0-STABLE
>Organization:
TENSOR ap
>Environment:
FreeBSD wojtek.tensor.gdynia.pl 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Jun 10 10:49:47 CEST 2008     root at wojtek.tensor.gdynia.pl:/usr2/src/sys/i386/compile/p234  i386
>Description:
while trying to build asterisk 1.4.20.1 from ports, no matter what i select with make config, it fails that way:

   [LD] abstract_jb.o acl.o aescrypt.o aeskey.o aestab.o alaw.o app.o ast_expr2.o ast_expr2f.o asterisk.o astmm.o astobj2.o audiohook.o autoservice.o callerid.o cdr.o channel.o chanvars.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 global_datastores.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/libedit.a -> asterisk
astobj2.o(.text+0x221): In function `ao2_ref':
/usr2/ports/net/asterisk/work/asterisk-1.4.20.1/include/asterisk/lock.h:1118: undefined reference to `__sync_fetch_and_add_4'
astobj2.o(.text+0x4a8): In function `__ao2_link':
/usr2/ports/net/asterisk/work/asterisk-1.4.20.1/include/asterisk/lock.h:1118: undefined reference to `__sync_fetch_and_add_4'
astobj2.o(.text+0x4d8):/usr2/ports/net/asterisk/work/asterisk-1.4.20.1/include/asterisk/lock.h:1118: undefined reference to `__sync_fetch_and_add_4'
astobj2.o(.text+0x975): In function `ao2_callback':
/usr2/ports/net/asterisk/work/asterisk-1.4.20.1/include/asterisk/lock.h:1118: undefined reference to `__sync_fetch_and_add_4'
astobj2.o(.text+0x9a3):/usr2/ports/net/asterisk/work/asterisk-1.4.20.1/include/asterisk/lock.h:1118: undefined reference to `__sync_fetch_and_add_4'
channel.o(.text+0x3057):/usr2/ports/net/asterisk/work/asterisk-1.4.20.1/include/asterisk/lock.h:1118: more undefined references to `__sync_fetch_and_add_4' follow
manager.o(.text+0x32a): In function `free_session':
/usr2/ports/net/asterisk/work/asterisk-1.4.20.1/include/asterisk/lock.h:1164: undefined reference to `__sync_sub_and_fetch_4'
manager.o(.text+0x1843): In function `process_events':
/usr2/ports/net/asterisk/work/asterisk-1.4.20.1/include/asterisk/lock.h:1164: undefined reference to `__sync_sub_and_fetch_4'
manager.o(.text+0x1c09): In function `accept_thread':
/usr2/ports/net/asterisk/work/asterisk-1.4.20.1/include/asterisk/lock.h:1118: undefined reference to `__sync_fetch_and_add_4'
manager.o(.text+0x4b5c): In function `action_waitevent':
/usr2/ports/net/asterisk/work/asterisk-1.4.20.1/include/asterisk/lock.h:1164: undefined reference to `__sync_sub_and_fetch_4'
manager.o(.text+0x6e8c): In function `generic_http_callback':
/usr2/ports/net/asterisk/work/asterisk-1.4.20.1/include/asterisk/lock.h:1118: undefined reference to `__sync_fetch_and_add_4'
manager.o(.text+0x6e9a):/usr2/ports/net/asterisk/work/asterisk-1.4.20.1/include/asterisk/lock.h:1118: undefined reference to `__sync_fetch_and_add_4'
utils.o(.text+0xdd4): In function `ast_atomic_dec_and_test':
/usr2/ports/net/asterisk/work/asterisk-1.4.20.1/include/asterisk/lock.h:1164: undefined reference to `__sync_sub_and_fetch_4'
utils.o(.text+0xded): In function `ast_atomic_fetchadd_int':
/usr2/ports/net/asterisk/work/asterisk-1.4.20.1/include/asterisk/lock.h:1118: undefined reference to `__sync_fetch_and_add_4'
gmake[1]: *** [asterisk] Błąd 1
gmake: *** [main] Błąd 2
*** Error code 2

>How-To-Repeat:
try to build asterisk from ports
>Fix:
no idea, because i don't know where such functions like __sync_... are.
what library/package provides them?

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list