Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2001 08:34:25 -0400 (EDT)
From:      "Andresen,Jason R." <jandrese@mitre.org>
To:        Kasper Steensgaard <steensgaard@runbox.com>
Cc:        <freebsd-multimedia@FreeBSD.ORG>
Subject:   Re: Compile with -kGL
Message-ID:  <20010524083244.H88992-100000@nausicaa.mitre.org>
In-Reply-To: <01052413581800.05265@elysium.megadeb.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 24 May 2001, Kasper Steensgaard wrote:

> Hello again,
>
> When I try to compile programs using the -lGL -lGLU flags, I get the
> following error: (gltron, glastroids, glclock)
>
> /usr/X11R6/lib/libGL.so: undefined reference to `pthread_getspecific'
> /usr/X11R6/lib/libGL.so: undefined reference to `pthread_key_create'
> /usr/X11R6/lib/libGL.so: undefined reference to `pthread_setspecific'
>
> Whats the matter ??
> (Voodoo3, glide, Xfree 4.0.3 DRI (got it working, thanks))

FreeBSD's GL libraries are threaded now, although most third party
applications don't correctly detect this.  To fix it, open the Makefile
(/usr/ports/x/x/work/x/.../Makefile and add a -pthread right before every
instance of -lGL.  The port should compile file then.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010524083244.H88992-100000>