[asterisk-dev] aelparse won't link on 64bit x86

Stephen Davies stephen.l.davies at gmail.com
Sun Aug 19 12:23:07 CDT 2007


Trying to build current SVN trunk on a 64bit Gentoo environment fails
as follows:

voipconnect_2 asterisk # make
menuselect/menuselect --check-deps   menuselect.makeopts
Generating embedded module rules ...
   [LD] aelparse.o aelbison.o pbx_ael.o ael_main.o ast_expr2f.o
ast_expr2.o strcompat.o pval.o extconf.o -> aelparse
extconf.o: In function `ast_atomic_fetchadd_int':
/usr/local/src/asterisk/trunk/asterisk/utils/extconf.c:1584: undefined
reference to `ast_atomic_fetchadd_int_slow'
collect2: ld returned 1 exit status
make[1]: *** [aelparse] Error 1
make: *** [utils] Error 2

Looking in utils/extconf.c, there seems to be two issues:

1) The "fast" assembler fetchadd_int isn't selected for this arch.  I
suppose __i386__ isn't defined

2) ast_atomic_fetchadd_int_slow is is main/utils.c, which isn't
included in the link for aelparse.


More information about the asterisk-dev mailing list