[GRASS5] compiling CVS on IRIX and Win32/Cygwin

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@Rhein-Main.de - A.C.Lange@GMX.net

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

Andreas Lange wrote:

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
--

Hello,

Will NVIZ start in quick mode for you (-q). This would tell us if there
is a problem with the executable or a data loading problem. Also, you
might try renameing the DEM file to something without a dash (-). In the
past I have found filenames with dashes can be a problem.

Hope this helps.

--
Bob Covill

Tekmap Consulting
P.O. Box 2016 Fall River, N.S.
B2T 1K6
Canada

E-Mail: bcovill@tekmap.ns.ca
Phone: 902-860-1496
Fax: 902-860-1498

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

Bob Covill wrote:

Andreas Lange wrote

    ....

(file "/usr/local/grass5/bin/nviz2.2" line 92)
Finished - press RETURN or ENTER to continue
--

Hello,

Will NVIZ start in quick mode for you (-q). This would tell us if there
is a problem with the executable or a data loading problem. Also, you
might try renameing the DEM file to something without a dash (-). In the
past I have found filenames with dashes can be a problem.

Hope this helps.

I've got the same message.
I'm using the current CVS source code compiled with gcc-2.95 on a Debian potato/i386.
It returns me this error with "elevation.dem" from the spearfish dataset, so I think dash is not the problem...
hope this helps too.

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

Hi Bob,

thanks for your reply.
But its not the dash. Same happens with data without a dash.
I think it is a more general library problem, but will test again.

Andreas

Bob Covill schrieb:

Hello,

Will NVIZ start in quick mode for you (-q). This would tell us if there
is a problem with the executable or a data loading problem. Also, you
might try renameing the DEM file to something without a dash (-). In the
past I have found filenames with dashes can be a problem.

Hope this helps.

--
Bob Covill

Tekmap Consulting
P.O. Box 2016 Fall River, N.S.
B2T 1K6
Canada

E-Mail: bcovill@tekmap.ns.ca
Phone: 902-860-1496
Fax: 902-860-1498

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

--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
Andreas.Lange@Rhein-Main.de - A.C.Lange@GMX.net

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

Hi Andreas

Andreas Lange wrote:

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.

Hmmm. I don't understand why you need to specify all these directories
when I don't. Does configure add the /usr/freeware/lib32 libs and
/usr/lib32 directories properly? Also, why do you need to remove
-I/usr/freeware/include from the gcc line? It would be nice to have
configure and make work without options or changes on IRIX for both
vendor compilers and gcc.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

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

Hi Justin,

i don't understand this too. But if i do a normal ./configure && make, i
can not get the gis library to compile. I can't remember the error
message, but it was a problem with different headers from
/usr/freeware/include and the stanard path. IMHO some conflicting header
files are read from /usr/freeware/include and the standard path.
I remember that one problem with gcc on IRIX is that the library
ordering is important, so that -L/usr/freeware/lib32 works, while
-L/usr/lib -L/usr/freeware/lib32 does not.
Sorry, i'll look at this another time,

Andreas

Justin Hickey wrote:

Hi Andreas

Andreas Lange wrote:
> 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.

Hmmm. I don't understand why you need to specify all these directories
when I don't. Does configure add the /usr/freeware/lib32 libs and
/usr/lib32 directories properly? Also, why do you need to remove
-I/usr/freeware/include from the gcc line? It would be nice to have
configure and make work without options or changes on IRIX for both
vendor compilers and gcc.

--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
Andreas.Lange@Rhein-Main.de - A.C.Lange@GMX.net

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