Summary: | ASTERISK-00145: app_voicemail2 doesn't compile when mysql support enabled | ||
Reporter: | scrubb (scrubb) | Labels: | |
Date Opened: | 2003-08-21 16:32:52 | Date Closed: | 2004-09-25 02:22:25 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | When I edit the Makefile for the apps directory and un-remark the USE_MYSQL_VM_INTERFACE line, the compile for app_voicemail2.c fails. I think this is a simple issue in the Makefile defines, but I am not a Makefile guru and do not know how to fix this issue. I have include a compare of two compiles with and without the mysql enabled in the additional info field. I hope this helps. ****** ADDITIONAL INFORMATION ****** ---WITH MYSQL ENABLED---- make[1]: Entering directory `/usr/src/asterisk/apps' gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -O6 -g -Iinclude -I../include -DUSEMYSQLVM=\"1\" -D_REENTRANT -D_GNU_SOURCE -march=i686 -DASTERISK_VERSION=\"CVS-07/21/02-14:49:14\" -DDO_CRASH -DDEBUG_THREADS -c -o app_voicemail2.o app_voicemail2.c app_voicemail2.c: In function `mysql_login': app_voicemail2.c:200: warning: implicit declaration of function `use_ast_pthread_mutex_init_instead_of_pthread_mutex_init' app_voicemail2.c: In function `play_datetime_format': app_voicemail2.c:1935: `ASTVARLIBDIR' undeclared (first use in this function) app_voicemail2.c:1935: (Each undeclared identifier is reported only once app_voicemail2.c:1935: for each function it appears in.) app_voicemail2.c:1935: parse error before string constant etc . ... ------------------ -------WITHOUT MYSQL ENABLED---------- make[1]: Entering directory `/usr/src/asterisk/apps' gcc -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-08/16/03-00:34:52\" -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 -DNEW_PRI_HANGUP -fPIC -c -o app_voicemail2.o app_voicemail2.c gcc -shared -Xlinker -x -o app_voicemail2.so app_voicemail2.o | ||
Comments: | By: Mark Spencer (markster) 2003-08-21 18:13:10 Fixed in CVS |