[GRASS5] grass5.3.0 compilation problems

ivan marchesini marchesini at unipg.it
Thu Jun 3 04:49:07 EDT 2004


Dear Glynn and dear all,
 thank you very much for your answer...
I apologize for the delay of my answer... but I have been out of the
office for a long period...

about the compilation errors I said you some days ago....:
I have made these steps:

mv /usr/local/lib/libz.a /usr/local/lib/libz.a-bak
ln -s /usr/lib/libz.so.1 /usr/local/lib/libz.a

then I tried to compile and a lot of errors I obtained before were
removed, I only obtained:

Compilation error in module: src/raster/r.in.png (ignored)
Compilation error in module: src/raster/r.out.png (ignored)
Compilation error in module: src.contrib/GMSL/NVIZ2.2 (ignored)


now: since I compiled without png support (with-png=no) the only problem
remains NVIZ...

during your last e-mail, you asked about the version of XFree I'm
using... it is the 4.3.0.dfsg.1-1


this is the error I still obtain:


__________________________________________________________________
/home/ivan/Documents/GRASS/grass-5.3.0/src.contrib/GMSL/NVIZ2.2/src
  mkdir OBJ.i686-pc-linux-gnu
  make -f OBJ.i686-pc-linux-gnu/make.rules

make[2]: Entering directory
`/home/ivan/Documents/GRASS/grass-5.3.0/src.contrib/GMSL/NVIZ2.2/src'
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
init_commands.c: In function `init_commands':
init_commands.c:152: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:154: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:166: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:169: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:173: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:175: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:177: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:179: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:180: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:182: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:184: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:187: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:189: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:190: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:191: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:193: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:194: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:195: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:196: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:198: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:200: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:201: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:203: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:204: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
init_commands.c:205: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type


init_commands.c:333: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined

gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
gcc -I/home/ivan/Documents/GRASS/grass-5.3.0/src/include -g -O2  
-I/usr/X11R6/include -I/usr/include/tcl8.3 -I/usr/include/tc$
<command line>:5:1: warning: "__STDC__" redefined
togl.c:38:66: X11/Xmu/StdCmap.h: No such file or directory
make[2]: *** [OBJ.i686-pc-linux-gnu/togl.o] Error 1
make[2]: Leaving directory
`/home/ivan/Documents/GRASS/grass-5.3.0/src.contrib/GMSL/NVIZ2.2/src'
make[1]: *** [nvwish] Error 2
make[1]: Leaving directory
`/home/ivan/Documents/GRASS/grass-5.3.0/src.contrib/GMSL/NVIZ2.2'
GISGEN failure at STEP: src.contrib/GMSL/NVIZ2.2
_____________________________________________________



What do you think about this error???
thank you very much for your answer....

Ivan





















Il ven, 2004-05-21 alle 18:59, Glynn Clements ha scritto:
> 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.




More information about the grass-dev mailing list