[GRASSLIST:6287] INSTALLATION PROBLEM

Hi, can anyone help me?
I cannot get any response ar idea about what is going wrong......
Here is the compilation log and as you can see I get no errors....

GRASS GIS compilation log
-------------------------
Started compilation: Wed Mar 30 10:03:08 CEST 2005
Errors in:
Finished compilation: Wed Mar 30 10:10:09 CEST 2005
(In case of errors please change into the directory with error and run 'make')

It seems that I get error in reading region...
by using the same WIND file on my laptop (whare i successfully install GRASS-6.0.0) and on the server it gives me always the same error.......

GRASS 6.0.0 (test1):/usr/local/src/grass-6.0.0 > g.region -p
ERROR: default region is invalid
       line 11: <top: 1>

her ethe WIND file:
proj: 99
zone: 0
north: 177846.30208341
south: 56014.58333336
east: 744765.89285719
west: 647731.25000004
cols: 970
rows: 1218
e-w resol: 100.03571429
n-s resol: 100.02604167
top: 1
bottom: 0
cols3: 970
rows3: 1218
depths: 1
e-w resol3: 100.03571429
n-s resol3: 100.02604167
t-b resol: 1

What can I try to meke grass working?

Thanks

-------- Original Message --------
Subject: [GRASSLIST:6248] segmentation fault after installation...
Date: Thu, 24 Mar 2005 17:11:35 +0100
From: Massimiliano Cannata <massimiliano.cannata@supsi.ch>
To: grass <GRASSLIST@baylor.edu>

Hi, I'm trying to install grass-6.0 on on a Dell PowerEdge 2850, installed with RedHat ES3, Update 3.

I successfully run ./configure
(CFLAGS="-g -Wall" ./configure --with-postgres-includes=/usr/include/pgsql/server/ --with-motif --without-blas --without-lapack --with-glw --with-dbm --with-dbm-includes=/usr/include/gdbm --with-freetype --with-freetype-includes=/usr/include/freetype2/ --without-readline --without-fftw --with-proj --with-proj-libs=/usr/local/lib --with-cxx)

I successfully run make
and I can start (grassbin.i686-pc-linux-gnu/grass60) and define a mapset and location.......

But most of the general command return a segmentation fault error.....

GRASS 6.0.0 (hydro3):/usr/local/src/grass-6.0.0 > g.region -p
ERROR: default region is invalid
       line 11: <top: 1>
GRASS 6.0.0 (hydro3):/usr/local/src/grass-6.0.0 > g.list rast
Segmentation fault GRASS 6.0.0 (hydro3):/usr/local/src/grass-6.0.0 > r.mapcalc 'test=99'
100%
GRASS 6.0.0 (hydro3):/usr/local/src/grass-6.0.0 > r.out.ascii input=test output=/home/maxi/test.txt
GRASS 6.0.0 (hydro3):/usr/local/src/grass-6.0.0 > more /home/maxi/test.txt
north: 10
south: 0
east: 10
west: 0
rows: 10
cols: 10
99 99 99 99 99 99 99 99 99 99
GRASS 6.0.0 (hydro3):/usr/local/src/grass-6.0.0 > g.list rast
Segmentation fault
GRASS 6.0.0 (hydro3):/usr/local/src/grass-6.0.0 > g.list --help

Usage:
g.listSegmentation fault
GRASS 6.0.0 (hydro3):/usr/local/src/grass-6.0.0 >

I can also see that the general commands doesn't have the
option->description="The type of query" ;
changed to
option->description=-("The type of query" );
could it be the problem?

Any suggestion for resolve the problem is very very welcome......

Thanks,
Maxi
--
_____________________________________________________

Ing. Massimiliano Cannata

SUPSI - Istituto Scienze della Terra
C.P. 72 - CH-6952 Canobbio (Ticino, Switzerland)
Tel +41 (0)91 935 12 25 - Fax +41 (0)91 935 12 09
mailto:massimiliano.cannata@supsi.ch
http://www.ist.supsi.ch

--
_____________________________________________________

Ing. Massimiliano Cannata

SUPSI - Istituto Scienze della Terra
C.P. 72 - CH-6952 Canobbio (Ticino, Switzerland)
Tel +41 (0)91 935 12 25 - Fax +41 (0)91 935 12 09
mailto:massimiliano.cannata@supsi.ch
http://www.ist.supsi.ch

Hi, can anyone help me?
I cannot get any response ar idea about what is going wrong......
Here is the compilation log and as you can see I get no errors....

GRASS GIS compilation log
-------------------------
Started compilation: Wed Mar 30 10:03:08 CEST 2005
Errors in:
Finished compilation: Wed Mar 30 10:10:09 CEST 2005
(In case of errors please change into the directory with error and run

'make')

It seems that I get error in reading region...
by using the same WIND file on my laptop (whare i successfully install

GRASS-6.0.0) and on the server it gives me always the same
error.......

GRASS 6.0.0 (test1):/usr/local/src/grass-6.0.0 > g.region -p
ERROR: default region is invalid
       line 11: <top: 1>

her ethe WIND file:
proj: 99
zone: 0
north: 177846.30208341
south: 56014.58333336
east: 744765.89285719
west: 647731.25000004
cols: 970
rows: 1218
e-w resol: 100.03571429
n-s resol: 100.02604167
top: 1
bottom: 0
cols3: 970
rows3: 1218
depths: 1
e-w resol3: 100.03571429
n-s resol3: 100.02604167
t-b resol: 1

What can I try to meke grass working?

maybe a dumb question, but are you sure this isn't happening in
GRASS 5.4? (g.version)

GRASS 5.4 can not currently read GRASS 6 region (WIND) settings and
gives you that error.

Hamish

Yes, my version is grass-6.0.0
.... unfortunately....... it is!
Trying to compile the module g.region under his own directory I can notice some error in make (that anyway did not exclude the compilation?!?!),
maybe someone can help me in solving the problem...
here is it the error:

[root@istgis g.region]# INST_NOW=y make
cmd
make[1]: Entering directory `/usr/local/src/grass-6.0.0/general/g.region/cmd'
gcc -I/usr/local/src/grass-6.0.0/include -I/usr/local/grass-6.0.0/include/grass -O -mcpu=i486 -Wall -Wall -Wconversion -Wno-implicit-int -I/usr/local/include -DPACKAGE=\""grassmods"\" -I/usr/local/include -I/usr/local/src/grass-6.0.0/include -I/usr/local/grass-6.0.0/include/grass \
        -o OBJ.i686-pc-linux-gnu/adjust.o -c adjust.c
adjust.c: In function `adjust_window':
adjust.c:8: warning: suggest parentheses around assignment used as truth value
gcc -I/usr/local/src/grass-6.0.0/include -I/usr/local/grass-6.0.0/include/grass -O -mcpu=i486 -Wall -Wall -Wconversion -Wno-implicit-int -I/usr/local/include -DPACKAGE=\""grassmods"\" -I/usr/local/include -I/usr/local/src/grass-6.0.0/include -I/usr/local/grass-6.0.0/include/grass \
        -o OBJ.i686-pc-linux-gnu/main.o -c main.c
In file included from /usr/local/src/grass-6.0.0/include/vect/digit.h:3,
                 from /usr/local/src/grass-6.0.0/include/Vect.h:4,
                 from main.c:27:
/usr/local/src/grass-6.0.0/include/vect/dig_structs.h:15:17: dgl.h: No such file or directory
/usr/local/src/grass-6.0.0/include/vect/dig_structs.h:16:22: shapefil.h: No such file or directory
In file included from /usr/local/src/grass-6.0.0/include/vect/digit.h:3,
                 from /usr/local/src/grass-6.0.0/include/Vect.h:4,
                 from main.c:27:
/usr/local/src/grass-6.0.0/include/vect/dig_structs.h:18:19: rtree.h: No such file or directory
make[1]: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1

Thanks for trying in help me....
Maxi

Hamish wrote:

Hi, can anyone help me?
I cannot get any response ar idea about what is going wrong......
Here is the compilation log and as you can see I get no errors....

GRASS GIS compilation log
-------------------------
Started compilation: Wed Mar 30 10:03:08 CEST 2005
Errors in:
Finished compilation: Wed Mar 30 10:10:09 CEST 2005
(In case of errors please change into the directory with error and run

'make')

It seems that I get error in reading region...
by using the same WIND file on my laptop (whare i successfully install

GRASS-6.0.0) and on the server it gives me always the same
error.......

GRASS 6.0.0 (test1):/usr/local/src/grass-6.0.0 > g.region -p
ERROR: default region is invalid
      line 11: <top: 1>

her ethe WIND file:
proj: 99
zone: 0
north: 177846.30208341
south: 56014.58333336
east: 744765.89285719
west: 647731.25000004
cols: 970
rows: 1218
e-w resol: 100.03571429
n-s resol: 100.02604167
top: 1
bottom: 0
cols3: 970
rows3: 1218
depths: 1
e-w resol3: 100.03571429
n-s resol3: 100.02604167
t-b resol: 1

What can I try to meke grass working?
   
maybe a dumb question, but are you sure this isn't happening in GRASS 5.4? (g.version)

GRASS 5.4 can not currently read GRASS 6 region (WIND) settings and
gives you that error.

Hamish

--

Eng. Massimiliano Cannata
Scuola Universitaria Professionale della Svizzera Italiana
Istituto Scienze della Terra
Via Trevano, c.p. 72
CH-6952 Canobbio-Lugano
Tel: +41 (0)91 935 12 25
Fax +41 (0)91 935 12 09

I check my pc and I found that I have all the missing library, maybe in the wrong place???:

[root@istgis g.region]# find / -name rtree.h
/usr/include/pgsql/server/access/rtree.h
/usr/local/src/postgresql-7.4.5/src/include/access/rtree.h
/usr/local/src/grass-6.0.0/lib/vector/rtree/rtree.h
/usr/local/src/grass-6.0.0/dist.i686-pc-linux-gnu/include/grass/rtree.h
/usr/local/src/grass-6.0.0/dist.i686-pc-linux-gnu/include/rtree.h
[root@istgis g.region]# find / -name dgl.h
/usr/local/src/grass-6.0.0/lib/vector/dglib/dgl.h
/usr/local/src/grass-6.0.0/dist.i686-pc-linux-gnu/include/grass/dgl.h
/usr/local/src/grass-6.0.0/dist.i686-pc-linux-gnu/include/dgl.h
[root@istgis g.region]# find / -name shapefil.h
/usr/local/src/postgresql-7.4.5/contrib/postgis-0.9.0/loader/shapefil.h
/usr/local/src/gdal-1.2.3/ogr/ogrsf_frmts/shape/shapefil.h
/usr/local/src/grass-6.0.0/lib/external/shapelib/shapefil.h
/usr/local/src/grass-6.0.0/dist.i686-pc-linux-gnu/include/grass/shapefil.h
/usr/local/src/grass-6.0.0/dist.i686-pc-linux-gnu/include/shapefil.h
/home/Mapserver_php/gdal-1.2.4/ogr/ogrsf_frmts/shape/shapefil.h

Hamish wrote:

Hi, can anyone help me?
I cannot get any response ar idea about what is going wrong......
Here is the compilation log and as you can see I get no errors....

GRASS GIS compilation log
-------------------------
Started compilation: Wed Mar 30 10:03:08 CEST 2005
Errors in:
Finished compilation: Wed Mar 30 10:10:09 CEST 2005
(In case of errors please change into the directory with error and run

'make')

It seems that I get error in reading region...
by using the same WIND file on my laptop (whare i successfully install

GRASS-6.0.0) and on the server it gives me always the same
error.......

GRASS 6.0.0 (test1):/usr/local/src/grass-6.0.0 > g.region -p
ERROR: default region is invalid
      line 11: <top: 1>

her ethe WIND file:
proj: 99
zone: 0
north: 177846.30208341
south: 56014.58333336
east: 744765.89285719
west: 647731.25000004
cols: 970
rows: 1218
e-w resol: 100.03571429
n-s resol: 100.02604167
top: 1
bottom: 0
cols3: 970
rows3: 1218
depths: 1
e-w resol3: 100.03571429
n-s resol3: 100.02604167
t-b resol: 1

What can I try to meke grass working?
   
maybe a dumb question, but are you sure this isn't happening in GRASS 5.4? (g.version)

GRASS 5.4 can not currently read GRASS 6 region (WIND) settings and
gives you that error.

Hamish

--

Eng. Massimiliano Cannata
Scuola Universitaria Professionale della Svizzera Italiana
Istituto Scienze della Terra
Via Trevano, c.p. 72
CH-6952 Canobbio-Lugano
Tel: +41 (0)91 935 12 25
Fax +41 (0)91 935 12 09

Hello Massimiliano

Try changing the wind file to a simpler format. I include a simple wind file. You can then change the parameters one by one to identify the problem in your wind file

Ciao
Francesco Pirotti

CIRGEO
Centro Interdipartimentale di Ricerca in Cartografia
Fotogrammetria, Telerilevamento e S.I.T.
Università degli Studi di Padova
Viale dell'Università 16 - Legnaro - PD
www.cirgeo.unipd.it
tel. +39.328.2126861
tel. +39.049.827.2522/2688
fax. +39.049.8272686

File attachment: WIND.zip
The file attached to this email was removed
because the file name is not allowed.

(attachments)

DEFAULT_WIND GRASS6.0 (264 Bytes)

Hello francesco,
thanks for the WIND file but also this one gives me the same error....
GRASS 6.0.0 (test2):/usr/local/src/grass-6.0.0 > g.region -p
ERROR: default region is invalid
       line 11: <top: 1>
.....
the error comes from the line with:
G_get_default_window (&window);
here there something wrong... but i cannot guess what.....
thanks,
Maxi

francesco wrote:

Hello Massimiliano

Try changing the wind file to a simpler format. I include a simple wind file. You can then change the parameters one by one to identify the problem in your wind file

Ciao
Francesco Pirotti

CIRGEO
Centro Interdipartimentale di Ricerca in Cartografia
Fotogrammetria, Telerilevamento e S.I.T.
Università degli Studi di Padova
Viale dell'Università 16 - Legnaro - PD
www.cirgeo.unipd.it
tel. +39.328.2126861
tel. +39.049.827.2522/2688
fax. +39.049.8272686

--
_____________________________________________________

Ing. Massimiliano Cannata

SUPSI - Istituto Scienze della Terra
C.P. 72 - CH-6952 Canobbio (Ticino, Switzerland)
Tel +41 (0)91 935 12 25 - Fax +41 (0)91 935 12 09
mailto:massimiliano.cannata@supsi.ch
http://www.ist.supsi.ch