[GRASS5] configure-problem on linux and irix

Eric G . Miller egm2 at jps.net
Sat Jan 13 05:10:54 EST 2001


On Sat, Jan 13, 2001 at 09:49:26AM +0000, Markus Neteler wrote:
> Eric, do you have a hit for me on this one
> (r.showdspf.opengl compiled fine for the last month, I can't remember that I
> changed anything related on my Linux machine):
> 
> src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL > gmake5
> [...]
> gcc -s  -o /home/neteler/ggg/dist.i686-pc-linux-gnu/etc/bin/cmd/r3.showdspf
> OBJ.i686-pc-linux-gnu/new_init_graphics.o OBJ.i686-pc-linux-gnu/cap_data.o
> OBJ.i686-pc-linux-gnu/init_caps.o OBJ.i686-pc-linux-gnu/debugf.o
> OBJ.i686-pc-linux-gnu/do_color_ogl.o OBJ.i686-pc-linux-gnu/get_color_ogl.o
> OBJ.i686-pc-linux-gnu/draw_cap_ogl.o OBJ.i686-pc-linux-gnu/draw_polys_ogl.o
> OBJ.i686-pc-linux-gnu/draw_cappolys_ogl.o
> OBJ.i686-pc-linux-gnu/thresh_array.o OBJ.i686-pc-linux-gnu/make_header.o
> OBJ.i686-pc-linux-gnu/r3_data.o OBJ.i686-pc-linux-gnu/r3_find.o
> OBJ.i686-pc-linux-gnu/togif.o OBJ.i686-pc-linux-gnu/Ball.o
> OBJ.i686-pc-linux-gnu/BallAux.o OBJ.i686-pc-linux-gnu/BallMath.o
> OBJ.i686-pc-linux-gnu/main_ogl.o -I/home/neteler/ggg/src/libes/dspf
> -I/home/neteler/ggg/src/libes/ogsf -I/usr/include/GL -I/usr/X11R6/include/GL
> -I/usr/X11R6/include
> /home/neteler/ggg/src/libes/dspf/LIB.i686-pc-linux-gnu/libdsp3.a
> /home/neteler/ggg/src/libes/LIB.i686-pc-linux-gnu/libg3d.a
> /home/neteler/ggg/src/libes/LIB.i686-pc-linux-gnu/libdatetime.a
> /home/neteler/ggg/src/libes/LIB.i686-pc-linux-gnu/libgis.a -lGLU -lGL -lGLw
> -lXm -lX11 -lXt -lXext  -L/usr/X11R6/lib -L/lib -lm  -lz
> OBJ.i686-pc-linux-gnu/new_init_graphics.o: In function 'init_graphics':
> /home/neteler/ggg/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL/new_init_graphics.c:570:
> undefined reference to 'GLwCreateMDrawingArea'
> /home/neteler/ggg/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL/new_init_graphics.c:629:
> undefined reference to 'GLwCreateMDrawingArea'
> 
> It must have something to do with configure.
> 
> (config.cache removed):
> configure
> [...]
> checking GL/gl.h and GL/GLwMDrawA.h...  -I/usr/include/GL and -I/usr/X11R6/include/GL
> checking for glBegin in -lGL... yes
> checking for gluBeginCurve in -lGLU... yes
> checking for GLwDrawingAreaMakeCurrent in -lGLw... yes
> checking for GLwCreateMDrawingArea in -lGLwM... no
> [...]
> 
> grep GLwCreateMDrawingArea /usr/lib/libGLw.so.3.0 
> Übereinstimmungen in Binärdatei /usr/lib/libGLw.so.3.0.
>    |-> matches in binary file
> 
> So GLwCreateMDrawingArea is there...
> 
> Any ideas?

Nope.  I just did a cvs update a few hours back, did a make distclean,
ran configure, and built it just fine...  Like I've said, I think the
problem lies in missing flags for configure (specifically -L and -l
types) for some segment of X and Motif/Lesstif.  Whatever they are, I
don't need them so I can't figure out what they are.  Try adding the
$X_PRE_LIBS to the $LD_FLAGS=... part of configure.in just before the
AC_CHECK_LIB(GLwM,...).  The $X_PRE_LIBS should be defined by the
AC_XTRA macro (it's results are already used in src/CMD/head/head.in).

On a related note, I've noticed many of the G3d public functions don't
have prototypes in G3d.h.  This may be related to some other problems
with programs such as r3.out.vis5d.  I don't know why some are declared
and others are not -- and I am talking about just the public functions
(as described in the programming manual).

-- 
Eric G. Miller <egm2 at jps.net>

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list