I am trying to compile the meetme2 application with the latest CVS head and it fails. Here is the error message that I get. Can someone point me in the right direction? gcc -pipe -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS -DASTERISK_VERSION=\"CVS-HEAD-08/22/04-10:34:20\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBUSYDETECT_MARTIN -fPIC -c -o app_meetme2.o app_meetme2.c gcc -pipe -I/usr/include/postgresql -I/usr/include/mysql \ -L/usr/lib/mysql -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS -DASTERISK_VERSION=\"CVS-HEAD-08/22/04-10:34:20\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBUSYDETECT_MARTIN -fPIC -c -o app_meetme2.o app_meetme2.c app_meetme2.c:646: error: `__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__' undeclared here (not in a function) app_meetme2.c: In function `count_exec': app_meetme2.c:1548: error: too few arguments to function `ast_say_number' make[1]: *** [app_meetme2.o] Error 1 make[1]: Leaving directory `/usr/src/asterisk-cvs/asterisk/apps' make: *** [subdirs] Error 1 Thanks, Geoff
asterisk-users-admin@lists.digium.com wrote:> I am trying to compile the meetme2 application with the > latest CVS head and > it fails. Here is the error message that I get. Can someone > point me in > the right direction? > > gcc -pipe -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -g -Iinclude -I../include > -D_REENTRANT -D_GNU_SOURCE > -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS > -DASTERISK_VERSION=\"CVS-HEAD-08/22/04-10:34:20\" > -DINSTALL_PREFIX=\"\" > -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" > -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" > -DASTSPOOLDIR=\"/var/spool/asterisk\" > -DASTLOGDIR=\"/var/log/asterisk\" > -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" > -DASTMODDIR=\"/usr/lib/asterisk/modules\" > -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" > -DBUSYDETECT_MARTIN -fPIC > -c -o app_meetme2.o app_meetme2.c > > gcc -pipe -I/usr/include/postgresql -I/usr/include/mysql \ > -L/usr/lib/mysql -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -g -Iinclude -I../include > -D_REENTRANT -D_GNU_SOURCE > -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS > -DASTERISK_VERSION=\"CVS-HEAD-08/22/04-10:34:20\" > -DINSTALL_PREFIX=\"\" > -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" > -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" > -DASTSPOOLDIR=\"/var/spool/asterisk\" > -DASTLOGDIR=\"/var/log/asterisk\" > -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" > -DASTMODDIR=\"/usr/lib/asterisk/modules\" > -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" > -DBUSYDETECT_MARTIN -fPIC > -c -o app_meetme2.o app_meetme2.c > > app_meetme2.c:646: error: > `__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__' > undeclared here (not in a function) > app_meetme2.c: In function `count_exec': > app_meetme2.c:1548: error: too few arguments to function > `ast_say_number' make[1]: *** [app_meetme2.o] Error 1 > make[1]: Leaving directory `/usr/src/asterisk-cvs/asterisk/apps' > make: *** [subdirs] Error 1 > > Thanks, > > Geoff > >For anyone not familiar with the application here is a reference to the source code: http://www.areski.net/asterisk-meetme/sources/app_meetme2.c Geoff
Geoff Nordli wrote:> I am trying to compile the meetme2 application with the latest CVS head and > it fails. Here is the error message that I get. Can someone point me in > the right direction?[snipped lengthy error message] Here's a patch. You can apply it by hand, or save it to a text file and use the 'patch' command to apply it. It's two simple changes. -Steve --- app_meetme2.c 2004-04-07 06:37:18.000000000 -0500 +++ /usr/src/asterisk/apps/app_meetme2.c 2004-08-20 07:05:41.000000000 -0500 @@ -643,7 +643,7 @@ } *confs; -static ast_mutex_t conflock = AST_MUTEX_INITIALIZER; +AST_MUTEX_DEFINE_STATIC(conflock); #include "enter.h" #include "leave.h" @@ -1545,7 +1545,7 @@ }else{ if (chan->_state != AST_STATE_UP) ast_answer(chan); - res = ast_say_number(chan, cnt, "", chan->language); + res = ast_say_number(chan, cnt, "", chan->language, (char *)NULL); } LOCAL_USER_REMOVE(u); return res;
app_meetme2.c:646: error: '__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__' undeclared here (not in a function) make[1]: *** [app_meetme2.o] Error 1 make[1]: Leaving directory `/usr/src/asterisk/apps' make: *** [subdirs] Error 1 I need a copy of the app_meet2.c file that compiled? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050815/4a853985/attachment.htm
Why don't you try Web Meet Me from the same author: http://areski.net/Web-MeetMe/about.php It's so much easyer to install. regards ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Araba, Michael Sent: luned? 15 agosto 2005 7.35 To: 'asterisk-users@lists.digium.com' Subject: [Asterisk-Users] Error compiling meetme2 app_meetme2.c:646: error: '__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__' undeclared here (not in a function) make[1]: *** [app_meetme2.o] Error 1 make[1]: Leaving directory `/usr/src/asterisk/apps' make: *** [subdirs] Error 1 I need a copy of the app_meet2.c file that compiled?