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


_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to