Date: Sat, 10 Feb 2001 22:56:55 +0200 (EET) From: Maxim Sobolev <sobomax@FreeBSD.ORG> To: abgoeree@uwnet.nl Cc: ports@FreeBSD.ORG Subject: Re: glclock broken? pthread Message-ID: <200102102056.f1AKut771275@vic.sabbo.net> In-Reply-To: <20010210100506.A60321@mandark.attica.home> from "Andre Goeree" at Feb 10, 2001 10:05:06 AM
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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;) > Yes, it's also possible workaround, but you have to hack Makefile of each GL port you that you wish to compile. PITA. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102102056.f1AKut771275>