From owner-freebsd-multimedia Thu May 24 6:41:56 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from smtpproxy1.mitre.org (mb-20-100.mitre.org [129.83.20.100]) by hub.freebsd.org (Postfix) with ESMTP id 680B537B423 for ; Thu, 24 May 2001 06:41:52 -0700 (PDT) (envelope-from jandrese@mitre.org) Received: from avsrv1.mitre.org (avsrv1.mitre.org [129.83.20.58]) by smtpproxy1.mitre.org (8.9.3/8.9.3) with ESMTP id JAA26913 for ; Thu, 24 May 2001 09:41:50 -0400 (EDT) Received: from mailsrv2.mitre.org (mailsrv2.mitre.org [129.83.221.17]) by smtpsrv1.mitre.org (8.9.3/8.9.3) with ESMTP id JAA28327 for ; Thu, 24 May 2001 09:41:49 -0400 (EDT) Received: from nausicaa.mitre.org ([128.29.105.85]) by mailsrv2.mitre.org (Netscape Messaging Server 4.15) with ESMTP id GDUE1O00.3YI; Thu, 24 May 2001 09:41:48 -0400 Date: Thu, 24 May 2001 08:34:25 -0400 (EDT) From: "Andresen,Jason R." To: Kasper Steensgaard Cc: Subject: Re: Compile with -kGL In-Reply-To: <01052413581800.05265@elysium.megadeb.org> Message-ID: <20010524083244.H88992-100000@nausicaa.mitre.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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