[Asterisk-Users] error compiling cdr_mysql support

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Apr 8 09:45:16 MST 2004


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 mysql

The 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




More information about the asterisk-users mailing list