pthread_atfork undefined
I'm trying to compile some code which uses openal, but, I get this error :
root@iridium:~/frog# gcc frog.cc -o frog -lGL -lGLU -lSDL -lpthread -lopenal
/usr/local/lib/libopenal.so: undefined reference to `pthread_atfork'
collect2: ld returned 1 exit status
hmm this is my ld.so.conf :
/usr/local/lib
/usr/X11R6/lib
/usr/i486-slackware-linux/lib
/opt/kde/lib
/usr/lib/qt/lib
/usr/lib
ld.so.conf lines 1-6/6 (END)
my gcc info :
root@iridium:/etc# gcc -v
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/specs
Configured with: ../gcc-3.2.3/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.2.3
here are my pthread libs ...
root@iridium:/lib# ls -l libpthread*
-rwxr-xr-x 1 root root 94112 May 19 2003 libpthread-0.10.so*
lrwxrwxrwx 1 root root 18 Dec 2 12:30 libpthread.so.0 -> libpthread-0.10.so*
root@iridium:/usr/lib# ls -l libpthread*
-rw-r--r-- 1 root root 129728 May 19 2003 libpthread.a
lrwxrwxrwx 1 root root 25 Dec 2 12:30 libpthread.so -> ../../lib/libpthread.so.0*
and in my /usr/include/pthread.h, just to kick me in the face, is the function prototype :
extern int pthread_atfork (void (*__prepare) (void),
void (*__parent) (void),
void (*__child) (void)) __THROW;
This is on a slack 9.1, recompiled 2.4.22 kernel.
Anyone got any light to shed ?
Last edited by Pres; 01-11-2004 at 07:40 AM.
|