[GRASS5] compile errors grass5 cvs from 08/01/01

Hi there,

I am on my way compiling grass5 from source
(grass5src_cvs_snapshot_Jan_8_2001). Everything worked fine in the main, but
compiling the postgresql and g3d-module causes some problems.
First the postgresql module compiled fine (manually with gmake5, gmakelist5),
but the resulting executable is copied to /src/grass/dist-i386.../bin. Copying
the file to /usr/local/grass5/bin results while executing in:

ERROR: program 'g.select.pg' cannot be executed because:

Neither a command line (cmd) or interactive (inter) version was found
  in any of the main, alpha, or contrib directories.

The second module (g3d) does not compile. The run ends with:

make[3]: Entering directory
`/usr/src/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL'
OBJ.i686-pc-linux-gnu/make.rules:342: warning: overriding commands for target
`ctags'
OBJ.i686-pc-linux-gnu/make.rules:296: warning: ignoring old commands for target
`ctags'
gcc -s -o
/usr/src/grass/dist.i686-pc-linux-gnu/etc/bin/contrib/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/usr/src/grass/src/libes/dspf -I/usr/src/grass/src/libes/ogsf
-I/usr/X11R6/include/GL -I/usr/X11R6/include
/usr/src/grass/src/libes/dspf/LIB.i686-pc-linux-gnu/libdsp3.a
/usr/src/grass/src/libes/LIB.i686-pc-linux-gnu/libg3d.a
/usr/src/grass/src/libes/LIB.i686-pc-linux-gnu/libdatetime.a
/usr/src/grass/src/libes/LIB.i686-pc-linux-gnu/libgis.a -lGLU -lGL -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':
/usr/src/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL/new_init_gr
aphics.c:570: undefined reference to `GLwCreateMDrawingArea'
/usr/src/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL/new_init_gr
aphics.c:629: undefined reference to `GLwCreateMDrawingArea'
collect2: ld returned 1 exit status
make[3]: ***
[/usr/src/grass/dist.i686-pc-linux-gnu/etc/bin/contrib/cmd/r3.showdspf] Error 1
make[3]: Leaving directory
`/usr/src/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/grass/src.contrib/GMSL/g3d/src3d/raster'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/src/grass/src.contrib/GMSL/g3d/src3d'
make: *** [all] Error 2

Hope someone can make sense of all this, if there is any questions I am happy
to answer...
By the way, system is LINUX SuSE 7.0

Cheers,

Arne

--
Arne Pallentin

Department of Earth Sciences
The University of Waikato
Private Bag 3105
Hamilton - New Zealand

Ph.: +64-7-838 4024 ext. 6229
Home: +64-7-856 7877
Fax. +64-7-856 0115
e-mail: arne@waikato.ac.nz

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

Arne,

On Tue, Jan 16, 2001 at 02:16:53PM +1300, Arne Pallentin wrote:

Hi there,

I am on my way compiling grass5 from source
(grass5src_cvs_snapshot_Jan_8_2001). Everything worked fine in the main, but
compiling the postgresql and g3d-module causes some problems.
First the postgresql module compiled fine (manually with gmake5, gmakelist5),
but the resulting executable is copied to /src/grass/dist-i386.../bin. Copying
the file to /usr/local/grass5/bin results while executing in:

>ERROR: program 'g.select.pg' cannot be executed because:
>
>Neither a command line (cmd) or interactive (inter) version was found
> in any of the main, alpha, or contrib directories.

sorry for this inconvenience, while updating the internal structure
we missed to update the module which is resposible for above executing.

The server just builds another CVS snapshot which fixes everything.
Please remove the binaries, then run

make distclean
configure
make
make install

Then it should work fine. Reason why there was no new cvs snapshot this
monday was the power shutdown that day. So the cron-job didn't work (so
thanks for the hint!).
Please get this new CVS snapshot.

The second module (g3d) does not compile. The run ends with:

>make[3]: Entering directory
>`/usr/src/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL'
>OBJ.i686-pc-linux-gnu/make.rules:342: warning: overriding commands for target
>`ctags'
>OBJ.i686-pc-linux-gnu/make.rules:296: warning: ignoring old commands for target
>`ctags'
>gcc -s -o
>/usr/src/grass/dist.i686-pc-linux-gnu/etc/bin/contrib/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/usr/src/grass/src/libes/dspf -I/usr/src/grass/src/libes/ogsf
>-I/usr/X11R6/include/GL -I/usr/X11R6/include
>/usr/src/grass/src/libes/dspf/LIB.i686-pc-linux-gnu/libdsp3.a
>/usr/src/grass/src/libes/LIB.i686-pc-linux-gnu/libg3d.a
>/usr/src/grass/src/libes/LIB.i686-pc-linux-gnu/libdatetime.a
>/usr/src/grass/src/libes/LIB.i686-pc-linux-gnu/libgis.a -lGLU -lGL -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':
>/usr/src/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL/new_init_gr
>aphics.c:570: undefined reference to `GLwCreateMDrawingArea'
>/usr/src/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL/new_init_gr
>aphics.c:629: undefined reference to `GLwCreateMDrawingArea'
>collect2: ld returned 1 exit status

Hope someone can make sense of all this, if there is any questions I am
happy to answer...

Same thing here....

By the way, system is LINUX SuSE 7.0

Same system here...

Funny is: I have a laptop running Suse7 with intel processor where it
compiles o.k. while my office machine with Suse7 and AMD fails. Usually
it was reverse. But some weeks ago it was *no* problem to compile
r3.showdspf.openGL on any Linux machine!! Something must have happened.
(Eric - your suggestion with X_PRE_something for configure didn't help so far).

As I need r3.showdspf.openGL, I would be glad for an advice as well.

Thanks

Markus

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