[Asterisk-Users] spandsp hylafax asterisk and confusion

Stephen Davies steve at daviesfam.org
Tue May 25 07:38:13 MST 2004


On Tue, 25 May 2004, Terry Goodwin wrote:

> Thanks for offering to help with this.
> 
> I checked out the procedures and attempted this again without success. 
> 
> 
> 
> Here is the end of the screen output when the compile fails.
> 
> gcc -02 -g  -Include -I ../include -c -o  app_rxfax.o  app_rxfax.c 
> app_rxfax.c:45:  error:  '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
> 

Ah - I remember this.

There may be other fixes, but I resolved this by adding:

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

Just before the #include <pthread.h> in
asterisk/include/asterisk.lock.h


Regards,
Steve Davies





More information about the asterisk-users mailing list