asterisk: undefined reference to `__sync_fetch_and_add_4'
Randy Bush
randy at psg.com
Fri May 9 17:00:24 UTC 2008
Dmitry Morozovsky wrote:
> On Thu, 8 May 2008, Randy Bush wrote:
>
> RB> i386 very current
> RB> -DWITHOUT_ODBC -DWITHOUT_ZAPTEL -DWITHOUT_H323
> RB>
> RB> /usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1101:
> RB> undefined reference to `__sync_fetch_and_add_4'
> RB> manager.o(.text+0x6e6c):/usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1101:
> RB> undefined reference to `__sync_fetch_and_add_4'
> RB> utils.o(.text+0xdd4): In function `ast_atomic_dec_and_test':
> RB> /usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1147:
> RB> undefined reference to `__sync_sub_and_fetch_4'
> RB> utils.o(.text+0xded): In function `ast_atomic_fetchadd_int':
> RB> /usr/ports/net/asterisk/work/asterisk-1.4.18.1/include/asterisk/lock.h:1101:
> RB> undefined reference to `__sync_fetch_and_add_4'
> RB> gmake[1]: *** [asterisk] Error 1
> RB> gmake: *** [main] Error 2
> RB> *** Error code 2
>
> Do you have CPUTYPE defined in /etc/make.conf ? I posted about this a few days
> ago.
>
> As a workaround, you can use `make CPUTYPE='
put
CPUTYPE=
in make.conf. rebuilt apache22
# /usr/local/etc/rc.d/apache22 start
Performing sanity check on apache22 configuration:
Segmentation fault (core dumped)
Starting apache22.
Segmentation fault (core dumped)
randy
More information about the freebsd-ports
mailing list