[Asterisk-Users] Re: Can't compile ast_*fax

Justin Newman jnewman at newmantelecom.com
Mon Oct 17 12:25:50 MST 2005


Try adding "#define _GNU_SOURCE" before including lock.h and pthread.h.

Justin

> Date: Mon, 17 Oct 2005 14:29:12 -0400
> From: "Carlos Alperin" <calperin at senecacom.net>
> Subject: RE: [Asterisk-Users] Can't compile ast_*fax
>
> I tried to compile app_rxfax.c & app_txfax.c, and always fails.
>
>
>
> Even if I put this on a different directory and I do gcc -pipe app_rxfax.c
I
> get the same
>
>
>
> /usr/include/asterisk/lock.h: In function `ast_mutex_init':
>
> /usr/include/asterisk/lock.h:300: `PTHREAD_MUTEX_RECURSIVE' undeclared
> (first use in this function)
>
> /usr/include/asterisk/lock.h:300: (Each undeclared identifier is reported
> only once
>
> /usr/include/asterisk/lock.h:300: for each function it appears in.)




More information about the asterisk-users mailing list