[GRASSLIST:9142] Re: Compiling Grass on Solaris 9

Markus Neteler neteler at itc.it
Wed Nov 16 13:26:50 EST 2005


Irek,

On Tue, Nov 15, 2005 at 10:38:33AM +1100, Irek.Porebski at csiro.au wrote:
> Hi 
> I have a problem with compiling Grass on Solaris 9. Could you someone
> help me resolve this problem?
> 
> GRASS GIS compilation log
> -------------------------
> Started compilation: Mon Nov 14 14:46:42 EST 2005
> Errors in:
> /var/tmp/1/grass-6.0.cvs_src_snapshot_2005_11_12/db/drivers/dbf

Subsequent errors are issued due to dependencies. So we have
to fix this one first.

...
> Finished compilation: Mon Nov 14 14:49:25 EST 2005
> (In case of errors please change into the directory with error and run
> 'make') root#
> 
> root at theo# cd
> /var/tmp/1/grass-6.0.cvs_src_snapshot_2005_11_12/db/drivers/dbf
> root at theo# make
> gcc -I/var/tmp/1/grass-6.0.cvs_src_snapshot_2005_11_12/include
> -I/var/tmp/1/grass-6.0.cvs_src_snapshot_2005_11_12/dist.sparc-sun-solari
> s2.9/include/grass -I/usr/sfw/include -g -Wall  -Wall -Wconversion
> -Wno-implicit-int -I/usr/sfw/include      -DPACKAGE=\""grassmods"\"
> -I/var/tmp/1/grass-6.0.cvs_src_snapshot_2005_11_12/lib/db/dbmi_driver
> -I/var/tmp/1/grass-6.0.cvs_src_snapshot_2005_11_12/include
> -I/var/tmp/1/grass-6.0.cvs_src_snapshot_2005_11_12/dist.sparc-sun-solari
> s2.9/include/grass \
>         -o OBJ.sparc-sun-solaris2.9/dbfexe.o -c dbfexe.c
> dbfexe.c:22:22: shapefil.h: No such file or directory

This shapefil.h is included like this:

thuille:dbf[6578.11] grep shapefil.h *
dbfexe.c:#include <shapefil.h>
describe.c:#include <shapefil.h>
select.c:#include <shapefil.h>
table.c:#include <shapefil.h>

It should be picked from
 /var/tmp/1/grass-6.0.cvs_src_snapshot_2005_11_12/dist.sparc-sun-solaris2.9/include/grass
(last -I parameter above).
Can you please check if it is there?

It should be copied there earlier, while compiling
lib/external/

Probably the 'install' fails in
lib/external/shapelib/Makefile
?

Please go into
cd lib/external/shapelib
and run

make clean
make

and report what's happening there.

Markus




More information about the grass-user mailing list