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

Re: undefined references when compilng mesademos



On Fri, Feb 14, 2003 at 09:36:59PM +0100, Othmar Pasteka wrote:
> [[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'
[...]
> 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?

It looks like the Makefile is failing to pass -lpthread to gcc.

Also, I am not sure why you mailed this list without checking with
debian-devel first.

-- 
G. Branden Robinson                |      Intellectual property is neither
Debian GNU/Linux                   |      intellectual nor property.
branden@debian.org                 |      Discuss.
http://people.debian.org/~branden/ |      -- Linda Richman

Attachment: pgpiJFaTP6bQF.pgp
Description: PGP signature


Reply to: