[Asterisk-bsd] FreeBSD 7.0-PRERELEASE asterisk 1.4.17 port broken
Ian FREISLICH
ianf at clue.co.za
Thu Jan 24 23:36:05 CST 2008
=?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JLQuNC60YLQvtGA0L7QstC40Yc=?= wrote:
>
> I Have letest ports.
> I try build asterisk from ports
>
> asterisk# uname -a
> FreeBSD asterisk.mksplus.local 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Thu
Jan 24 17:29:30 MSK 2008 dread at asterisk.mksplus.local:/usr/obj/usr/src/sys/
ASTERISK i386
>
>
> [LD] abstract_jb.o acl.o aescrypt.o aeskey.o aestab.o alaw.o app.o ast_exp
r2.o ast_expr2f.o asterisk.o astmm.o astobj2.o autoservice.o callerid.o cdr.o c
hannel.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_datast
ores.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.17/include/asterisk/lock.h:1101: un
defined reference to `__sync_fetch_and_add_4'
> astobj2.o(.text+0x4a8): In function `__ao2_link':
> /usr/ports/net/asterisk/work/asterisk-1.4.17/include/asterisk/lock.h:1101: un
defined reference to `__sync_fetch_and_add_4'
> astobj2.o(.text+0x4d8):/usr/ports/net/asterisk/work/asterisk-1.4.17/include/a
sterisk/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.17/include/asterisk/lock.h:1101: un
defined reference to `__sync_fetch_and_add_4'
> astobj2.o(.text+0x9a3):/usr/ports/net/asterisk/work/asterisk-1.4.17/include/a
sterisk/lock.h:1101: undefined reference to `__sync_fetch_and_add_4'
> channel.o(.text+0x48e4):/usr/ports/net/asterisk/work/asterisk-1.4.17/include/
asterisk/lock.h:1101: more undefined references to `__sync_fetch_and_add_4' fol
low
> manager.o(.text+0x32a): In function `free_session':
> /usr/ports/net/asterisk/work/asterisk-1.4.17/include/asterisk/lock.h:1147: un
defined reference to `__sync_sub_and_fetch_4'
> manager.o(.text+0x1837): In function `process_events':
> /usr/ports/net/asterisk/work/asterisk-1.4.17/include/asterisk/lock.h:1147: un
defined reference to `__sync_sub_and_fetch_4'
> manager.o(.text+0x1bfd): In function `accept_thread':
> /usr/ports/net/asterisk/work/asterisk-1.4.17/include/asterisk/lock.h:1101: un
defined reference to `__sync_fetch_and_add_4'
> manager.o(.text+0x4b50): In function `action_waitevent':
> /usr/ports/net/asterisk/work/asterisk-1.4.17/include/asterisk/lock.h:1147: un
defined reference to `__sync_sub_and_fetch_4'
> manager.o(.text+0x6e5e): In function `generic_http_callback':
> /usr/ports/net/asterisk/work/asterisk-1.4.17/include/asterisk/lock.h:1101: un
defined reference to `__sync_fetch_and_add_4'
> manager.o(.text+0x6e6c):/usr/ports/net/asterisk/work/asterisk-1.4.17/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.17/include/asterisk/lock.h:1147: un
defined 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.17/include/asterisk/lock.h:1101: un
defined 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.
This is because of the CPUTYPE setting in your /etc/make.conf. Try
not setting any optimiser or CPUTYPE flags.
Ian
--
Ian Freislich
More information about the Asterisk-BSD
mailing list