[Asterisk-Users] spandsp compile error: PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here

Chris A. Icide chris at netgeeks.net
Thu Apr 29 10:57:08 MST 2004


 From a previous message on this list:

if you want to compile app_rxfax and app_txfax with last
cvsses of asterisk you have to modify the patched versions of the apps
directory Makefile to define the symbol _GNU_SOURCE

example, the line to compile app_rxfax from:
gcc -O2 -g  -Iinclude -I../include -c -o  app_rxfax.o app_rxfax.c
to
gcc -D_GNU_SOURCE -O2 -g  -Iinclude -I../include -c -o  app_rxfax.o
app_rxfax.c


On 10:32 AM 4/29/2004, Darryl Ross wrote:
 >Hey All,
 >
<snip>
 >---------------------------
 >
 >make[1]: Entering directory `/usr/src/asterisk/apps'
 >gcc -O2 -g  -Iinclude -I../include -c -o  app_rxfax.o app_rxfax.c
 >app_rxfax.c:45: `PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here
 >(not in a function)
 >make[1]: *** [app_rxfax.o] Error 1
 >make[1]: Leaving directory `/usr/src/asterisk/apps'
 >make: *** [subdirs] Error 1
 >
 >---------------------------




More information about the asterisk-users mailing list