[GRASS5] grass5.3.0 compilation problems

Glynn Clements glynn.clements at virgin.net
Fri May 21 12:59:39 EDT 2004


ivan marchesini wrote:

> I'm trying to compile grass 5.3.0 on a debian testing
> with this options:
> 
> ./configure --with-tcltk-includes=/usr/include/tcl8.3
> --with-postgres-includes=/usr/include/postgresql/ 
> --with-opengl-includes=/usr/include/GL --with-dbm --with-proj
> --with-gdal --with-jpeg=no --with-png=no --with-odbc=no --with-fftw=no
> 
> at the and of the make process I obtain this answer:
> 
> GRASS GIS source code compiled.
> 
> Compilation error in module: src/imagery/i.ortho.photo (ignored)
> Compilation error in module: src/imagery/i.rectify2 (ignored)
> Compilation error in module: src/mapdev/v.digit (ignored)
> Compilation error in module: src/mapdev/v.spag (ignored)
> Compilation error in module: src/raster/r.in.png (ignored)
> Compilation error in module: src/raster/r.mapcalc3 (ignored)
> Compilation error in module: src/raster/r.out.png (ignored)
> Compilation error in module: src.contrib/GMSL/NVIZ2.2 (ignored)
> 
> 
> no problem for r.in.png but what about the other errors??
> 
> 
> during the compilation of the previous source snapshot I apparently
> didn't obtain errors...
> 
> can you give me some help???
> ------------------------------------------------------------------------
> 
> I attach some of the errors messages taken from the make output!!!!

> /home/ivan/Documents/GRASS/grass53_exp_2004_05_15/src/imagery/i.ortho.photo/photo.rectify
>   make -f OBJ.i686-pc-linux-gnu/make.rules 
> 
> make[2]: Entering directory `/home/ivan/Documents/GRASS/grass53_exp_2004_05_15/src/imagery/i.ortho.photo/photo.rectify'
> gcc -I../libes -L/home/ivan/Documents/GRASS/grass53_exp_2004_05_15/src/libes/LIB.i686-pc-linux-gnu -Wl,--export-dynamic -o /home/ivan/Documents/GRASS/grass53_exp_2004_05_15/dist.i686-pc-linux-gnu/etc/imagery/photo.rectify OBJ.i686-pc-linux-gnu/main.o OBJ.i686-pc-linux-gnu/ask_files.o OBJ.i686-pc-linux-gnu/ask_files2.o OBJ.i686-pc-linux-gnu/ask_wind.o OBJ.i686-pc-linux-gnu/ask_elev.o OBJ.i686-pc-linux-gnu/get_wind.o OBJ.i686-pc-linux-gnu/aver_z.o OBJ.i686-pc-linux-gnu/cp.o OBJ.i686-pc-linux-gnu/ps_cp.o OBJ.i686-pc-linux-gnu/compress.o OBJ.i686-pc-linux-gnu/conv.o OBJ.i686-pc-linux-gnu/env.o OBJ.i686-pc-linux-gnu/exec.o OBJ.i686-pc-linux-gnu/equ.o OBJ.i686-pc-linux-gnu/mail.o OBJ.i686-pc-linux-gnu/matrix.o OBJ.i686-pc-linux-gnu/perform.o OBJ.i686-pc-linux-gnu/rectify.o OBJ.i686-pc-linux-gnu/report.o OBJ.i686-pc-linux-gnu/target.o OBJ.i686-pc-linux-gnu/write.o ../libes/LIB.i686-pc-linux-gnu/libortho.a -lI -lgis   -lD -ldisplay -lraster -lsegment -lvask -lgmath -lncurses -lbsd-compat -lm  -lz 
> /usr/local/lib/libz.a(compress.o)(.text+0xb0): In function `compress':
> : multiple definition of `compress'
> OBJ.i686-pc-linux-gnu/compress.o(.text+0x0):/home/ivan/Documents/GRASS/grass53_exp_2004_05_15/src/imagery/i.ortho.photo/photo.rectify/compress.c:5: first defined here
> /usr/bin/ld: Warning: size of symbol `compress' changed from 7 in OBJ.i686-pc-linux-gnu/compress.o to 177 in /usr/local/lib/libz.a(compress.o)
> collect2: ld returned 1 exit status

It seems that your linker doesn't like symbols which are exported from
both an object file and a static library. It may be because it's using
the static library /usr/local/lib/libz.a rather than the system's
default shared libz.so.

You could try moving or renaming /usr/local/lib/libz.a while building
GRASS.

Note: v.digit and v.spag both fail for the same reason, so anything
which works for photo.rectify should also work for those.

> /home/ivan/Documents/GRASS/grass53_exp_2004_05_15/src.contrib/GMSL/NVIZ2.2/src
>   make -f OBJ.i686-pc-linux-gnu/make.rules 
> 
> make[2]: Entering directory `/home/ivan/Documents/GRASS/grass53_exp_2004_05_15/src.contrib/GMSL/NVIZ2.2/src'
> gcc -I/home/ivan/Documents/GRASS/grass53_exp_2004_05_15/src/include -g -O2   -I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tcl8.3 -I/home/ivan/Documents/GRASS/grass53_exp_2004_05_15/src/libes/ogsf  -D_NO_PROTO -D__STDC__   -I/usr/include/postgresql/   -c togl.c -o OBJ.i686-pc-linux-gnu/togl.o
> <command line>:5:1: warning: "__STDC__" redefined
> togl.c:38:66: X11/Xmu/StdCmap.h: No such file or directory

X11/Xmu/StdCmap.h is a standard X11 header. Are you using a cut-down
version of X11? Or is this just the latest incompatible change from
the XFree86 people?

Also, I don't see anything related to the r.mapcalc error. That is
significantly more important than the other errors; I would appreciate
any information which you can provide.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list