gmake[1]: Leaving directory `/usr/home/jontow/asterisk/asterisk/db1-ast'
gmake[1]: Entering directory `/usr/home/jontow/asterisk/asterisk/stdtime'
gcc -DMYSQL_LOGUNIQUEID -I/usr/local/include -L/usr/local/lib -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i386 -pthread -DZAPTEL_OPTIMIZATIONS -DDEBUG_THREADS -DDETECT_DEADLOCKS -fomit-frame-pointer -c -o localtime.o localtime.c
In file included from localtime.c:29:
../include/asterisk/lock.h: In function `__ast_pthread_mutex_init_attr':
../include/asterisk/lock.h:99: error: invalid operands to binary !=
../include/asterisk/lock.h: In function `__ast_pthread_mutex_destroy':
../include/asterisk/lock.h:138: error: invalid operands to binary ==
../include/asterisk/lock.h:165: error: parse error before "else"
../include/asterisk/lock.h: In function `__ast_pthread_mutex_lock':
../include/asterisk/lock.h:209: error: invalid operands to binary ==
../include/asterisk/lock.h:211: warning: implicit declaration of function `ast_mutex_logger'
../include/asterisk/lock.h:214: warning: implicit declaration of function `ast_mutex_init'
../include/asterisk/lock.h: In function `__ast_pthread_mutex_trylock':
../include/asterisk/lock.h:263: error: invalid operands to binary ==
../include/asterisk/lock.h: In function `__ast_pthread_mutex_unlock':
../include/asterisk/lock.h:292: error: invalid operands to binary ==
../include/asterisk/lock.h: In function `__ast_pthread_cond_wait':
../include/asterisk/lock.h:339: error: invalid operands to binary ==
../include/asterisk/lock.h: In function `__ast_pthread_cond_timedwait':
../include/asterisk/lock.h:393: error: invalid operands to binary ==
gmake[1]: *** [localtime.o] Error 1
gmake[1]: Leaving directory `/usr/home/jontow/asterisk/asterisk/stdtime'
gmake: *** [stdtime/libtime.a] Error 2
------- on the bug itself.. :
(gdb) bt full
#0 0x482a9feb in kill () from /usr/lib/libc.so.12
No symbol table info available.
#1 0x481609d9 in read () from /usr/lib/libpthread.so.0
No symbol table info available.
#2 0x48164b58 in pthread__next () from /usr/lib/libpthread.so.0
No symbol table info available.
#3 0x48162f31 in pthread__upcall () from /usr/lib/libpthread.so.0
No symbol table info available.