/bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/include/mysql -O2 -march=pentium2 -pipe -fomit-frame-pointer -MT app_sql_mysql_la-app_sql_mysql.lo -MD -MP -MF .deps/app_sql_mysql_la-app_sql_mysql.Tpo -c -o app_sql_mysql_la-app_sql_mysql.lo `test -f 'app_sql_mysql.c' || echo './'`app_sql_mysql.c i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/include/mysql -O2 -march=pentium2 -pipe -fomit-frame-pointer -MT app_sql_mysql_la-app_sql_mysql.lo -MD -MP -MF .deps/app_sql_mysql_la-app_sql_mysql.Tpo -c app_sql_mysql.c -fPIC -DPIC -o .libs/app_sql_mysql_la-app_sql_mysql.o In file included from ../include/callweaver/linkedlists.h:24, from ../include/callweaver/chanvars.h:27, from ../include/callweaver/channel.h:30, from ../include/callweaver/file.h:27, from app_sql_mysql.c:28: ../include/callweaver/lock.h: In function 'opbx_mutex_init': ../include/callweaver/lock.h:518: error: 'PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function) ../include/callweaver/lock.h:518: error: (Each undeclared identifier is reported only once ../include/callweaver/lock.h:518: error: for each function it appears in.) make[2]: *** [app_sql_mysql_la-app_sql_mysql.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/net-misc/callweaver-0.99.20070422/work/callweaver-0.99.20070422/apps' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-misc/callweaver-0.99.20070422/work/callweaver-0.99.20070422/apps' make: *** [all-recursive] Error 1