Here is the error I get compiling the asterisk-addons rpm cc -fPIC -I../asterisk -I/usr/include/mysql -c -o cdr_addon_mysql.o cdr_addon_mysql.c cdr_addon_mysql.c:50: error: `PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here (not in a function) make: *** [cdr_addon_mysql.o] Error 1 I'm pretty sure I got all that is needed: # rpm -qa | grep mysql mysql-3.23.58-4 mod_auth_mysql-20030510-3 php-mysql-4.3.3-6 mysql-server-3.23.58-4 mysql-devel-3.23.58-4 ser-mysql-0.8.12-0 Any idea ? Tnx ! -- Best regards, Alessio mailto:afoc@interconnessioni.it
On Thursday 08 April 2004 03:07, Alessio Focardi wrote:> Here is the error I get compiling the asterisk-addons rpm > > cc -fPIC -I../asterisk -I/usr/include/mysql -c -o > cdr_addon_mysql.o cdr_addon_mysql.c cdr_addon_mysql.c:50: error: > `PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here (not in a > function) make: *** [cdr_addon_mysql.o] Error 1 > > I'm pretty sure I got all that is needed: > > # rpm -qa | grep mysqlThe problem is not lack of mysql support, the problem is that you don't have asterisk in the same directory as the asterisk-addons directory (which is where cdr_addon_mysql.c lives). Get that in place and it will compile just fine. -Tilghman
Apparently Analagous Threads
- Which version of MySQL works with cdr_addon_mysql?
- shutting down a mysql server renders cdr_mysql dead and asterisk nolonger makes or receives calls
- asterisk 1.6 enable cdr_mysql
- OFF Topic: mysql installation problem
- spandsp compile error: PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here