Re: [Asterisk-Users] astman make error
On Thu, Nov 24, 2005 at 12:00:18AM +0100, Fred Blaise wrote: On Wed, 2005-11-23 at 19:58 +0100, Fred Blaise wrote: Hi all I am having an issue when trying to 'make astman'. Asterisk 1.2.0 here, from source, on debian sarge. Everything else working fine (only SIP setup anyway) deafneuron:/opt/asterisk-1.2.0/utils# make astman cc -DNO_AST_MM -c -o astman.o astman.c In file included from /usr/include/asterisk/manager.h:28, from astman.c:41: /usr/include/asterisk/lock.h: In function `ast_mutex_init': /usr/include/asterisk/lock.h:517: error: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function) /usr/include/asterisk/lock.h:517: error: (Each undeclared identifier is reported only once /usr/include/asterisk/lock.h:517: error: for each function it appears in.) make: *** [astman.o] Error 1 I added -D_GNU_SOURCE to the CFLAGS.. did the trick. I believe that the basic problem is because make was run directly from a subdir, whereas the author has expected make to be run from the top directory. -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il | | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849755 | | friend ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] astman make error
Hi all I am having an issue when trying to 'make astman'. Asterisk 1.2.0 here, from source, on debian sarge. Everything else working fine (only SIP setup anyway) deafneuron:/opt/asterisk-1.2.0/utils# make astman cc -DNO_AST_MM -c -o astman.o astman.c In file included from /usr/include/asterisk/manager.h:28, from astman.c:41: /usr/include/asterisk/lock.h: In function `ast_mutex_init': /usr/include/asterisk/lock.h:517: error: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function) /usr/include/asterisk/lock.h:517: error: (Each undeclared identifier is reported only once /usr/include/asterisk/lock.h:517: error: for each function it appears in.) make: *** [astman.o] Error 1 thanks for any input -- [ - ] [ idfred a.k.a chapeaurouge ] ] [ email chapeaurouge(at)madpenguin(dot)org ] [ sip sip:fred(at)jaolin(dot)net ] [ web http://madpenguin.org ] [ - ] [ GPG info ] Key fingerprint = 1674 7CBA 4F97 70D7 1A74 C7E9 333E 4335 75B1 4D02 Fetch key: gpg --keyserver pgp.mit.edu --recv-key 75B14D02 or http://madpenguin.org/pubkeys/fred_mp.key signature.asc Description: This is a digitally signed message part ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] astman make error
On Wed, 2005-11-23 at 19:58 +0100, Fred Blaise wrote: Hi all I am having an issue when trying to 'make astman'. Asterisk 1.2.0 here, from source, on debian sarge. Everything else working fine (only SIP setup anyway) deafneuron:/opt/asterisk-1.2.0/utils# make astman cc -DNO_AST_MM -c -o astman.o astman.c In file included from /usr/include/asterisk/manager.h:28, from astman.c:41: /usr/include/asterisk/lock.h: In function `ast_mutex_init': /usr/include/asterisk/lock.h:517: error: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function) /usr/include/asterisk/lock.h:517: error: (Each undeclared identifier is reported only once /usr/include/asterisk/lock.h:517: error: for each function it appears in.) make: *** [astman.o] Error 1 I added -D_GNU_SOURCE to the CFLAGS.. did the trick. thanks for any input ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users signature.asc Description: This is a digitally signed message part ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users