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

Stephen Davies stephen.l.davies at gmail.com
Mon Aug 20 01:35:12 CDT 2007


Further to the post below (which didn't seem to get to the list??),
then fix is simple:

in utils/extconf.c and include/asterisk/lock.h, change the "#elif
defined(__386__)" to read

#elif defined (__i386__) || defined(__x86_64__)

Steve


---------- Forwarded message ----------
From: Stephen Davies <stephen.l.davies at gmail.com>
Date: 19-Aug-2007 19:23
Subject: aelparse won't link on 64bit x86
To: Asterisk Developers Mailing List <asterisk-dev at lists.digium.com>


Hi,

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.

Regards,
Steve



More information about the asterisk-dev mailing list