[GRASS5] Grass5 on Solaris

Bob Covill bcovill at tekmap.ns.ca
Thu Feb 15 12:44:01 EST 2001



Markus Neteler wrote:

> On Thu, Feb 15, 2001 at 11:58:58AM -0400, Bob Covill wrote:
> >
> > Markus Neteler wrote:
> >
> > > On Thu, Feb 15, 2001 at 11:32:06AM -0400, Bob Covill wrote:
> > > > Hello,
> > > >
> > > > I am trying to build the latest GRASS on my Solaris machine. The version
> > > > is up to date from the CVS yesterday (feb. 14).
> > > >
> > > > The problem I am having is the GIS lib is not getting built, which is of
> > > > course rather important. The GIS lib is failing with file flate.c at
> > > > line 120. The comments in the file indicate that this will fail if ZLIB
> > > > is not installed. The libz is installed in  /usr/local/bin.
> > > >
> > > > Any thoughts on what I am doing wrong? It sucessfully built on Linux
> > > > without problem.
> ...
>
> Probably I know the problem! The configure should set:
> HAVE_ZLIB_H
>
> in src/include/config.h
>
> Maybe this wasn't successful? The flate.c has a test:
> #ifndef HAVE_ZLIB_H
>
> static void
> break_compile (void)
> {
>     /* if ZLIB is not installed, a compile error is generated here */
>     NULL = 1;
> }
>
> So the compiler will break if HAVE_ZLIB_H is not set.
>
> Check the src/include/config.h.
>
> Regards
>
>  Markus

Markus,

You were close. It appears that flate.c was using the wrong config.h header. It was
reading one from /usr/local/include, and therefore not getting any defines. If I
manaully add the define HAVE_ZLIB_H to flate.c or add the full path to config.h it
compiles cleanly.

The problem should be solvable by ensuring that the first "-I" flag looks in
grass/src/include instead of picking other config.h files.

--
Bob Covill

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



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