You need to #define _GNU_SOURCE before the includes. Asterisk/Makefile defines -D_GNU_SOURCE which gets passed to the makefiles in subdirectories. The Makefiles in the subdirs don't necessarily define it themselves though so you might try invoking make from the top level asterisk directory or use CFLAGS="-D_GNU_SOURCE"
-Seth On Mon, 2004-07-05 at 10:02, Matt wrote: > Hmmm.. > > That patch seems to be causing more trouble than it's fixing. > > Now * won't compule and complains with: > In file included from app_rxfax.c:14: > ../include/asterisk/lock.h: In function `ast_mutex_init': > ../include/asterisk/lock.h:300: error: `PTHREAD_MUTEX_RECURSIVE' undeclared > (first use in this function) > ../include/asterisk/lock.h:300: error: (Each undeclared identifier is > reported only once > ../include/asterisk/lock.h:300: error: for each function it appears in.) > make[1]: *** [app_rxfax.o] Error 1 > make[1]: Leaving directory `/usr/src/asterisk/apps' > make: *** [subdirs] Error 1 > > > > ----- Original Message ----- > From: "Seth Remington" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, July 05, 2004 1:59 PM > Subject: Re: [Asterisk-Users] SpanDSP Makefile.patch > > > > Hi Matt, > > > > I had the same problem. The Makefile has changed a bit since that patch > > was made. Try this one instead: > > > > http://sremington.zapto.org/downloads/asterisk/spandsp/Makefile.patch > > > > That one is made against June 17th CVS HEAD. > > > > -Seth > > > > On Mon, 2004-07-05 at 06:49, Matt wrote: > > > Hi all, > > > > > > I've been struggling with SpanDSP all night and this morning. I've > managed to finally get it to compile but when I try to patch the Makefile in > the apps directory I get: > > > > > > Hunk #1 FAILED at 35. > > > Hunk #2 FAILED at 68. > > > 2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej > > > [EMAIL PROTECTED] apps]# > > > > > > I've checked google, the list, wiki and IRC but to no avail. > > > > > > Can someone help? > > > _______________________________________________ > > > 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 > > -- > > Seth Remington > > SaberLogic, LLC > > 661-B Weber Drive > > Wadsworth, Ohio 44281 > > Phone: (330)335-6442 > > Fax: (330)336-8559 > > > > _______________________________________________ > > 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 > > _______________________________________________ > 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 -- Seth Remington SaberLogic, LLC 661-B Weber Drive Wadsworth, Ohio 44281 Phone: (330)335-6442 Fax: (330)336-8559 _______________________________________________ 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