[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

undefined references when compilng mesademos



hi,

[[Please Cc: me as I am not on the list, thanks.]]

when I want to compile the mesademos I get the following error
messages:
make[1]: Entering directory `/home/othmar/mesademos/demos'
gcc -I/usr/include -I../include -O3 -ansi -pedantic -fPIC -ffast-math
-D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include bounce.c
-L../lib -lglut -lGLU -lGL -lm -o bounce
/usr/lib/gcc-lib/i386-linux/3.2.2/../../../libGL.a(glxext.o)(.text+0x1a): In
function `__glXGetCurrentContext':
: undefined reference to `pthread_key_create'
/usr/lib/gcc-lib/i386-linux/3.2.2/../../../libGL.a(glxext.o)(.text+0x3a): In
function `__glXGetCurrentContext':
: undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-linux/3.2.2/../../../libGL.a(glxext.o)(.text+0x6c): In
function `__glXSetCurrentContext':
: undefined reference to `pthread_setspecific'
/usr/lib/gcc-lib/i386-linux/3.2.2/../../../libGL.a(glxext.o)(.text+0x7f): In
function `__glXSetCurrentContext':
: undefined reference to `pthread_key_create'
/usr/lib/gcc-lib/i386-linux/3.2.2/../../../libGL.a(glthread.o)(.text+0x1a): In
function `_glthread_InitTSD':
: undefined reference to `pthread_key_create'
/usr/lib/gcc-lib/i386-linux/3.2.2/../../../libGL.a(glthread.o)(.text+0x6f): In
function `_glthread_GetTSD':
: undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-linux/3.2.2/../../../libGL.a(glthread.o)(.text+0xa7): In
function `_glthread_SetTSD':
: undefined reference to `pthread_setspecific'


so, I don't know why it can'T find the pthread_* functions. any idea?

libGL.a is from libmesa-gl-dev.

so any idea what could be wrong?

TIA
Othmar



Reply to: