[Home]

Summary:ASTERISK-11174: Error on utils/extconf.c when buiding aelparse
Reporter:dmartin (dmartin)Labels:
Date Opened:2008-01-07 13:38:53.000-0600Date Closed:2008-01-08 09:23:09.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/BuildSystem
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I know that this is a recurrent bug, but I didn't read any report of happening on Debian. The linking fails, as usual, on:

  [CC] extconf.c -> extconf.o
  [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/src/asterisk-trunk/utils/extconf.c:1808: undefined reference to `ast_atomic_fetchadd_int_slow'
/usr/src/asterisk-trunk/utils/extconf.c:1808: undefined reference to `ast_atomic_fetchadd_int_slow'
collect2: ld devolvió el estado de salida 1
make[1]: *** [aelparse] Error 1

and I have to add the function ast_atomic_fetchadd_int_slow() to utils/extconf.c by hand (stolen from utils/utils.c) to link properly.

I'm using gcc 4.3.0 from Debian Sid (Sparc)
Comments:By: Digium Subversion (svnbot) 2008-01-08 09:23:06.000-0600

Repository: asterisk
Revision: 97041

U   trunk/utils/extconf.c

------------------------------------------------------------------------
r97041 | file | 2008-01-08 09:23:03 -0600 (Tue, 08 Jan 2008) | 4 lines

Make ast_atomic_fetchadd_int_slow magically appear in extconf.
(closes issue ASTERISK-11174)
Reported by: dmartin

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=97041