Subject: Re: gle 3.0.3 fail to compile under current pkgsrc
To: Jan Schaumann <jschauma@netmeister.org>
From: Mark Kirby <mark@coris.org.uk>
List: current-users
Date: 01/11/2004 16:30:23
Jan Schaumann wrote:

>Mark Kirby <mark@coris.org.uk> wrote:
>
>  
>
>>The relevent part of config .log says:-
>>
>>configure:3075: checking for glGetError in -lGL
>>configure:3094: cc -o conftest -O2 -DGLX_GLXEXT_LEGACY
>>-I/usr/pkg/include -I/usr/X11R6/include -Wall  -DGLX_GLXEXT_LEGACY
>>-I/usr/pkg/include -I/usr/X11R6/include  -L/usr/pkg/lib
>>-Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib conftest.c
>>-lGL  -lSM -lICE -lXmu  -L/usr/X11R6/lib -lX11   -lm 1>&5
>>/usr/pkgsrc/graphics/gle/work/.buildlink/lib/libGL.so: undefined
>>reference to `XShmDetach'
>>    
>>
> 
>  
>
>>so i'm guessing the undefined references need to be dealt with?
>>    
>>
>
>Exactly.  My guess is that
>/usr/pkgsrc/graphics/gle/work/.buildlink/lib/libGL.so doesn't point to
>the right libGL.  That is, it probably points to /usr/X11R6/lib/libGL.so
>instead of /usr/pkg/lib/libGL.so.  I wouldn't know why that happened,
>though.  Are you sure that pkgsrc/graphics/gl* and pkgsrc/graphics/Mesa*
>are all up to date?
>
>-Jan
>
>  
>
Ok i updated pkgsrc a few mins ago.
tried to build gle but it failed the same way.

then i checked  /gle/work/.buildlink/lib/libGL.so

#file libGL.so
 libGL.so : symbolic link to /usr/pkg/lib/libGL.so
#

gl, and Mesa are  up to date as they were built yesterday from a pkgsrc 
updated the same day.

Mark