[GRASSLIST:2857] Re: Compilation problem w/5pre2: flate.c (zlib?)

Eric G. Miller egm2 at jps.net
Sat Jan 5 12:06:39 EST 2002

On Sat, 5 Jan 2002 10:30:55 -0500, nsmith at holycross.edu wrote:

> I'm failing to complie GRASS5pre2 on YellowDogLinux.    At 
> src/libes/gis, here's what happens:
> gcc -g -O2  -I/usr/include/pgsql/ -I/usr/include 
> -I/home/nsmith/grass5.0.0pre2/src/include  -I/usr/incl
> ude  -c flate.c -o OBJ.powerpc-unknown-linux-gnu/flate.o
> flate.c: In function `break_compile':
> flate.c:123: `NULL' undeclared (first use in this function)
> flate.c:123: (Each undeclared identifier is reported only once
> flate.c:123: for each function it appears in.)
> make[1]: *** [OBJ.powerpc-unknown-linux-gnu/flate.o] Error 1
> make[1]: Leaving directory `/home/nsmith/grass5.0.0pre2/src/libes/gis'
> GISGEN failure at STEP: src/libes/gis
> Earlier postings seem to describe a similar problem as a failure to find 
> zlibs.  I have configured (somewhat redundantly) using
>   ./configure --with-includes="/usr/include/pgsql/ /usr/include"  
> --with-zlib-includes=/usr/include  --with-libs=/usr/lib --with-zlib-
> libs=/usr/lib
> and seem to get reasonable output:  in src/CMD/head/head.ARCH I have the 
> following values (correct for my system):
> ZLIB                = -I/usr/include  -L/usr/lib -lz
> ZLIBINCPATH         = -I/usr/include
> ZLIBLIBPATH         =  -L/usr/lib
> So if it's not a failure to find zlib, is it another library problem, or 
> something else I'm missing?

So /usr/include/zlib.h exists?  Seems ./configure doesn't think so and
didn't define HAVE_ZLIB_H in "config.h".

NOTE: It should not be necessary to specify /usr/include or /usr/lib to
the configure script, as those are "standard" places to look.  Subdirectories
are another matter...

Eric G. Miller <egm2 at jps.net>

More information about the grass-user mailing list