Date: Fri, 09 May 2008 19:00:18 +0200 From: Randy Bush <randy@psg.com> To: Dmitry Morozovsky <marck@rinet.ru> Cc: freebsd ports <freebsd-ports@freebsd.org> Subject: Re: asterisk: undefined reference to `__sync_fetch_and_add_4' Message-ID: <48248322.7070305@psg.com> In-Reply-To: <20080509134032.P26733@woozle.rinet.ru> References: <4822D70D.7070502@psg.com> <20080509134032.P26733@woozle.rinet.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48248322.7070305>