gcc -shared .libs/func_cdr_la-func_cdr.o -Wl,--rpath -Wl,/usr/src/svn/openpbx/trunk/corelib/.libs ../corelib/.libs/libopenpbx.so -L/usr/lib -L/usr/src/svn/openpbx/trunk/sqlite3-embedded/.libs -L/usr/src/svn/openpbx/trunk/corelib/jitterbuffer/.libs -lrt -lresolv -lpthread -lnsl -lreadline -lncurses -lm -ldb -lc -Wl,-soname -Wl,func_cdr.so -o .libs/func_cdr.so creating func_cdr.la (cd .libs && rm -f func_cdr.la && ln -s ../func_cdr.la func_cdr.la) if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O0 -D__OPBX_DEBUG_MALLOC -DDEBUG_SCHEDULER -DSTACK_BACKTRACES -DDETECT_DEADLOCKS -MT func_config_la-func_config.lo -MD -MP -MF ".deps/func_config_la-func_config.Tpo" -c -o func_config_la-func_config.lo `test -f 'func_config.c' || echo './'`func_config.c; \ then mv -f ".deps/func_config_la-func_config.Tpo" ".deps/func_config_la-func_config.Plo"; else rm -f ".deps/func_config_la-func_config.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O0 -D__OPBX_DEBUG_MALLOC -DDEBUG_SCHEDULER -DSTACK_BACKTRACES -DDETECT_DEADLOCKS -MT func_config_la-func_config.lo -MD -MP -MF .deps/func_config_la-func_config.Tpo -c func_config.c -fPIC -DPIC -o .libs/func_config_la-func_config.o In file included from ../include/openpbx.h:23, from func_config.c:34: ../include/confdefs.h:46:1: warning: "DEBUG_SCHEDULER" redefined :1:1: warning: this is the location of the previous definition ../include/confdefs.h:545:1: warning: "STACK_BACKTRACES" redefined :1:1: warning: this is the location of the previous definition In file included from ../include/openpbx/linkedlists.h:23, from ../include/openpbx/chanvars.h:26, from ../include/openpbx/channel.h:29, from func_config.c:39: ../include/openpbx/lock.h: In function 'opbx_mutex_init': ../include/openpbx/lock.h:518: error: 'PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function) ../include/openpbx/lock.h:518: error: (Each undeclared identifier is reported only once ../include/openpbx/lock.h:518: error: for each function it appears in.) make[1]: *** [func_config_la-func_config.lo] Error 1 make[1]: Leaving directory `/usr/src/svn/openpbx/trunk/funcs' make: *** [all-recursive] Error 1