From owner-freebsd-ports Sat Feb 10 2:12:57 2001 Delivered-To: freebsd-ports@freebsd.org Received: from daffy.uwnet.nl (ns.isd-holland.nl [195.7.130.35]) by hub.freebsd.org (Postfix) with ESMTP id A2B0C37B401 for ; Sat, 10 Feb 2001 02:12:39 -0800 (PST) Received: from dyn.dailup.c227128239.isd.to (dyn.dailup.c227128239.isd.to [213.227.128.239]) by daffy.uwnet.nl (8.11.1/8.11.0) with ESMTP id f1AACWT04768 for ; Sat, 10 Feb 2001 11:12:32 +0100 Received: (qmail 60362 invoked by uid 1000); 10 Feb 2001 10:05:06 -0000 From: "Andre Goeree" Date: Sat, 10 Feb 2001 10:05:06 +0000 To: ports@freebsd.org Subject: Re: glclock broken? pthread Message-ID: <20010210100506.A60321@mandark.attica.home> Reply-To: abgoeree@uwnet.nl References: <20010208234437.A59433@mandark.attica.home> <200102090054.f190sn413421@vic.sabbo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200102090054.f190sn413421@vic.sabbo.net>; from sobomax@freebsd.org on Fri, Feb 09, 2001 at 02:54:44AM +0200 X-Sender: abgoeree@uwnet.nl Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Feb 09, 2001 at 02:54:44AM +0200, Maxim Sobolev wrote: > > > > Hello, > > > > My attempt to build x11-clocks/glclock ended > > with the following error: > > > > /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' > > *** Error code 1 > > > > Stop in /usr/local/ports/x11-clocks/glclock/work/glclock-5.0. > > *** Error code 1 > > > > just fixed a similar error with xscreensaver;) > > The trick of adding "CONFIGURE_ENV= LDFLAGS=-pthread" > > to the Makefile didn't work here. > > What should i try next? > > (XFree86-4.0.2_5 Mesa-3.2.1_1) > > > > You have several choices ahead: > 1. Wait a bit until -pthread weirdness would be resolved; > 2. Manually replace -pthread in ports/x11/XFree86-4/files/patch-* with -lc_r > and then recompile/reinstall XFree86-4; > 3. Apply attached patch for gcc.295 and then recompile/reinstall XFree86-4. > > -Maxim > Hmm, 4. adding -pthread to LIBS= in work/glclock-5.0/makefile (LIBS = -lglut -lGLU -lGL -lXext -lXmu -lX11 -lm -lXi -pthread) seems to work too :) I don't know if this is a appropriate fix but for me it works;) -- Andre. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message