Subject: Re: gle and -lGL
To: <>
From: Louis Guillaume <lguillaume@berklee.edu>
List: tech-pkg
Date: 12/01/2006 17:28:01
Louis Guillaume wrote:
> Jeremy C. Reed wrote:
>> Do you have a config.log (under work/gle* directory) that has more details 
>> about that?

> configure:9253: gcc -o conftest -O2 -I/usr/pkg/include
> -DGLX_GLXEXT_LEGACY -I/usr/include -I/usr/pkg/include/freetype2 -Wall
> -I/usr/pkg/include -DGLX_GLXEXT_LEGACY -I/usr/include
> -I/usr/pkg/include/freetype2 -L/usr/pkg/xorg/lib -Wl,-R/usr/pkg/xorg/lib
> -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib conftest.c
> -lGL  -lSM -lICE  -L/usr/pkg/xorg/lib -lX11  -lXext -lm >&5
> /usr/pkgobj/graphics/gle/work/.x11-buildlink/lib/libGL.so: undefined
> reference to `pthread_getspecific'
> /usr/pkgobj/graphics/gle/work/.x11-buildlink/lib/libGL.so: undefined
> reference to `pthread_once'
> /usr/pkgobj/graphics/gle/work/.x11-buildlink/lib/libGL.so: undefined
> reference to `pthread_key_create'
> /usr/pkgobj/graphics/gle/work/.x11-buildlink/lib/libGL.so: undefined
> reference to `pthread_setspecific'
> collect2: ld returned 1 exit status
> configure:9256: $? = 1
> configure: failed program was:
> ...



Ok - so this made it work...

$ cvs diff
cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/gle/Makefile,v
retrieving revision 1.24
diff -r1.24 Makefile
20c20
< LIBS+=                        -lXext
---
> LIBS+=                        -lXext -lpthread
cvs diff: Diffing patches



... but I don't know if that's the right thing to do, or if this will
cause the package to break on systems without libpthread.

Louis