[GRASS5] [bug #752] (grass) configure: doesn't add -lGL -lGLw -lGLUT entries in head file (Solaris)
Markus Neteler
neteler at geog.uni-hannover.de
Thu Jun 21 12:51:38 EDT 2001
On Thu, Jun 21, 2001 at 01:30:06PM +0100, Glynn Clements wrote:
>
> Markus Neteler wrote:
>
> > even if the cache is disabled, the libraries won't be added.
> > Seems to be a coding problem in configure.
>
> Yes, but if the caching is disabled, config.log will include the error
> message(s) from the attempt to compile the test program.
Well, here we are:
checking host system type... sparc-sun-solaris2.6
...
checking GL/gl.h and GL/GLwMDrawA.h... -I/usr/include -I/usr/local/include
and -I/usr/include
checking for glBegin in -lGL... no
checking for gluBeginCurve in -lGLU... no
checking for GLwDrawingAreaMakeCurrent in -lGLw... no
checking for GLwCreateMDrawingArea in -lGLwM... no
...
configure:4176: checking GL/gl.h and GL/GLwMDrawA.h
configure:4219: checking for glBegin in -lGL
configure:4238: gcc -o conftest -g -O2 -lm -L/usr/lib conftest.c -lGL
1>&5
Undefined first referenced
symbol in file
XSynchronize /usr/lib/libGL.so
XShmPutImage /usr/lib/libGL.so
XDrawPoint /usr/lib/libGL.so
...
ld: fatal: Symbol referencing errors. No output written to conftest
configure:4263: checking for gluBeginCurve in -lGLU
configure:4282: gcc -o conftest -g -O2 -lm -L/usr/lib conftest.c -lGLU
1>&5
Undefined first referenced
symbol in file
glFrontFace /usr/lib/libGLU.so
glGetFloatv /usr/lib/libGLU.so
...
ld: fatal: Symbol referencing errors. No output written to conftest
configure:4307: checking for GLwDrawingAreaMakeCurrent in -lGLw
configure:4326: gcc -o conftest -g -O2 -lm -L/usr/lib
-L/usr/openwin/lib -R/usr/openwin
Undefined first referenced
symbol in file
glXSwapBuffers /usr/lib/libGLw.so
glXMakeCurrent /usr/lib/libGLw.so
glXChooseVisual /usr/lib/libGLw.so
ld: fatal: Symbol referencing errors. No output written to conftest
However, if I manually add the libs in src/CMD/head/head.sparc... the GRASS
modules like NVIZ compile perfectly. So above test fails although it should
be passed (or GRASS does something else).
Markus
More information about the grass-dev
mailing list