Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Mar 2008 16:29:01 +0100 (CET)
From:      Matthias Fechner <idefix@fechner.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/121870: Port net/asterisk fails to compile
Message-ID:  <20080319152901.D48BD130CEA@server.idefix.lan>
Resent-Message-ID: <200803191530.m2JFU3we013385@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         121870
>Category:       ports
>Synopsis:       Port net/asterisk fails to compile
>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:   Wed Mar 19 15:30:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Fechner
>Release:        FreeBSD 7.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD server.idefix.lan 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Wed Mar 19 14:47:28 CET 2008 root@server.idefix.lan:/usr/obj/usr/src/sys/SERVER2_I4B i386


>Description:
	Compile of port net/asterisk (version 1.4.18.1) fails with the following error message:
/usr/bin/ar cru libedit.a editline.o_a history.o_a tokenizer.o_a readline.o_a
ranlib libedit.a
   [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':
/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1101: undefined reference to `__sync_fetch_and_add_4'
astobj2.o(.text+0x4a8): In function `__ao2_link':
/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1101: undefined reference to `__sync_fetch_and_add_4'
astobj2.o(.text+0x4d8):/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1101: undefined reference to `__sync_fetch_and_add_4'
astobj2.o(.text+0x975): In function `ao2_callback':
/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1101: undefined reference to `__sync_fetch_and_add_4'
astobj2.o(.text+0x9a3):/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1101: undefined reference to `__sync_fetch_and_add_4'
channel.o(.text+0x302f):/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1101: more undefined references to `__sync_fetch_and_add_4' follow
manager.o(.text+0x32a): In function `free_session':
/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1147: undefined reference to `__sync_sub_and_fetch_4'
manager.o(.text+0x1837): In function `process_events':
/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1147: undefined reference to `__sync_sub_and_fetch_4'
manager.o(.text+0x1bfd): In function `accept_thread':
/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1101: undefined reference to `__sync_fetch_and_add_4'
manager.o(.text+0x4b50): In function `action_waitevent':
/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1147: undefined reference to `__sync_sub_and_fetch_4'
manager.o(.text+0x6e5e): In function `generic_http_callback':
/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1101: undefined reference to `__sync_fetch_and_add_4'
manager.o(.text+0x6e6c):/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1101: undefined reference to `__sync_fetch_and_add_4'
utils.o(.text+0xdd4): In function `ast_atomic_dec_and_test':
/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1147: undefined reference to `__sync_sub_and_fetch_4'
utils.o(.text+0xded): In function `ast_atomic_fetchadd_int':
/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1101: undefined 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

>How-To-Repeat:
	Go to /usr/ports/net/asterisk, make config and disable all options then execute make and wait for errormessages.
>Fix:


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080319152901.D48BD130CEA>