Subject: Problem building graphics/gle
To: None <tech-pkg@netbsd.org>
From: Marc Baudoin <babafou@babafou.eu.org>
List: tech-pkg
Date: 10/28/2004 14:11:59
Hi,

I've just upgraded graphics/MesaLib to 6.2 using pkgsrc and
graphics/gle now refuses to build:

checking for glGetError in -lGL... no
configure: error: Cannot find required GL library
*** Error code 1

Stop.

config.log shows:

configure:9253: gcc -o conftest -O2 -I/usr/pkg/include -DGLX_GLXEXT_LEGACY -Wall -I/usr/pkg/include -DGLX_GLXEXT_LEGACY -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib conftest.c -lGL  -lSM -lICE  -L/usr/X11R6/lib -lX11   -lm >&5
/usr/src/pkgsrc/graphics/gle/work/.buildlink/lib/libGL.so: undefined reference t
o `XShmDetach'
/usr/src/pkgsrc/graphics/gle/work/.buildlink/lib/libGL.so: undefined reference t
o `XShmCreateImage'
/usr/src/pkgsrc/graphics/gle/work/.buildlink/lib/libGL.so: undefined reference t
o `XShmPutImage'
/usr/src/pkgsrc/graphics/gle/work/.buildlink/lib/libGL.so: undefined reference t
o `XShmAttach'
/usr/src/pkgsrc/graphics/gle/work/.buildlink/lib/libGL.so: undefined reference t
o `XShmQueryVersion'

Those XShm functions are in libXext and, obviously, the test
program isn't linked with it.

Is it a MesaLib or a gle problem?

I manually added

X_EXTRA_LIBS="$X_EXTRA_LIBS -lXext"

to the configure script just before the -lGL test (and now it
builds OK) but that's probably not the right solution...