[GRASS5] compiling CVS on IRIX and Win32/Cygwin

Andreas Lange Andreas.Lange at Rhein-Main.de
Fri Mar 23 07:18:15 EST 2001


Hi 2 all,

i can now compile the lates CVS source on IRIX 6.5 with gcc 2.95.2.
But i still have to use a lengthy configure line that defines all
libraries and include directories and have to remove the
-I/usr/freeware/include line to gcc manually. 
Even nviz 2.2 compiles, but the executable crashes with a segmentation
violation (see attached output). Any help?

output of nviz2.2:
--
Mitas L., Brown W. M., Mitasova H., 1997, Role of dynamic
cartography in simulations of landscape processes based on multi-variate
fields. Computers and Geosciences, Vol. 23, No. 4, pp. 437-446
http://www2.gis.uiuc.edu:2280/modviz/viz/nviz.html
The papers are available at
http://www2.gis.uiuc.edu:2280/modviz/
Loading Data
gs_init_normbuff
Unable to load map
Loading Data
child killed: segmentation violation
    while executing
"exec /usr/local/grass5/etc/nviz2.2/NVWISH2.2 -f
/usr/local/grass5/etc/nviz2.2/scripts/nviz2.2_script elevation=globe-dem
-name NVIZ >&@stdout"
    ("eval" body line 1)
    invoked from within
"eval exec $env(GISBASE)/etc/nviz2.2/NVWISH2.2 -f
$env(GISBASE)/etc/nviz2.2/scripts/nviz2.2_script $CMD -name NVIZ
>&@stdout"
    (file "/usr/local/grass5/bin/nviz2.2" line 92)
Finished - press RETURN or ENTER to continue
--

I tried to compile the postgreSQL tools (there is a new PostgreSQL
freeware package now), but this compile crashes with some problems with
conflicting typedefs from /usr/include and /usr/freeware/include.
See below. Any ideas?

--
  SRC     = /disk2/opt/grass.src/src
  CMD     = /disk2/opt/grass.src/src/CMD
  HEADER  = head.mips-sgi-irix6.5
  ARCH    = mips-sgi-irix6.5
  GISBASE = /disk2/opt/grass.src/dist.mips-sgi-irix6.5
  VERSION = 5.0beta12 February 2001 
#################################################################
/disk2/opt/grass.src/src.garden/grass.postgresql/g.column.pg
  mkdir OBJ.mips-sgi-irix6.5
  make -f OBJ.mips-sgi-irix6.5/make.rules 

make[1]: Entering directory
`/disk2/opt/grass.src/src.garden/grass.postgresql/g.column.pg'
gcc -g -O2 -I/disk2/opt/grass.src/src/include -I/usr/freeware/include 
-c main.c -o OBJ.mips-sgi-irix6.5/main.o
gcc -g -O2 -I/disk2/opt/grass.src/src/include -I/usr/freeware/include 
-c infxColumn.c -o OBJ.mips-sgi-irix6.5/infxColumn.o
In file included from /usr/freeware/include/postgres.h:40,
                 from infxColumn.c:4:
/usr/freeware/include/c.h:798: conflicting types for `snprintf'
/usr/include/stdio.h:235: previous declaration of `snprintf'
/usr/freeware/include/c.h:803: conflicting types for `vsnprintf'
/usr/include/stdio.h:244: previous declaration of `vsnprintf'
make[1]: *** [OBJ.mips-sgi-irix6.5/infxColumn.o] Error 1
make[1]: Leaving directory
`/disk2/opt/grass.src/src.garden/grass.postgresql/g.column.pg'
make: *** [all] Error 2
bash$ 
-- 

On Windows 2000 the CVS code compiles without manual intervention to the
configure output, only r.in.gdal and nviz2.2 do not compile.
But i noticed that all modules crash with a stack dump on an signal 11
error (STATUS_ACCESS_VIOLATION) with the interacive version. The
commandline
version works. I am sure it once worked both on windows. 
d.mon start=x0, d.rast etc. work on the X11 Display on Windows, but i
noticed that d.mon start=CELL dies with some sockets error when started
from the cygwin shell (not in a xterm). This is very bad, as i planned
to use the cell driver or the png driver from the command line. Could
this be from a wrong path?

Hope someone has any ideas how to fix the mentioned problems. 

cu,

Andreas

PS. There is a new version of the gd library of Boutell.com announced
that supports true color png output. If the PNGdriver is updated it will
be much more useful than the buggy CELL driver. 

-- 
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
Andreas.Lange at Rhein-Main.de - A.C.Lange at GMX.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