[Home]

Summary:ASTERISK-05545: Cannot compile against uClibc 0.9.27. Several files fail for: "use_ast_mutex_t_instead_of_pthread_mutex_t"
Reporter:hwstar (hwstar)Labels:
Date Opened:2005-11-09 23:50:15.000-0600Date Closed:2008-01-15 15:55:24.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:stdio.h needs to be included before lock.h in chan_iax2.c, iax2-parser.c, iax2-provision.c, cdr_csv.c, cdr_custom.c, and pbx_functions.c

Note: Related to closed issue ASTERISK-5410

****** ADDITIONAL INFORMATION ******

Sample output from failed build:

gcc  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i586 -DZAPTEL_OPTIMIZATIONS         -DRADIO_RELAX -DLOW_MEMORY -fomit-frame-pointer  -Wno-missing-prototypes -Wno-missing-declarations -DZAPATA_PRI -DIAX_TRUNKING -DCRYPTO -fPIC    -c -o chan_iax2.o chan_iax2.c
In file included from /usr/include/stdio.h:72,
                from chan_iax2.c:74:
/usr/include/bits/uClibc_stdio.h:286: error: parse error before "use_ast_mutex_t_instead_of_pthread_mutex_t"
make[2]: *** [chan_iax2.o] Error 1
make[2]: Leaving directory `/usr/src/asterisk/channels'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/src/asterisk'
make: *** [.asterisk-built] Error 2
[root@wa6zft-test src]#
Comments:By: Kevin P. Fleming (kpfleming) 2005-11-10 18:52:15.000-0600

Fixed in CVS HEAD.

By: Digium Subversion (svnbot) 2008-01-15 15:55:24.000-0600

Repository: asterisk
Revision: 7058

U   trunk/ChangeLog
U   trunk/cdr/cdr_csv.c
U   trunk/cdr/cdr_custom.c
U   trunk/channels/chan_iax2.c
U   trunk/channels/iax2-parser.c
U   trunk/channels/iax2-provision.c
U   trunk/funcs/pbx_functions.c

------------------------------------------------------------------------
r7058 | kpfleming | 2008-01-15 15:55:24 -0600 (Tue, 15 Jan 2008) | 2 lines

issue ASTERISK-5545

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

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