[GRASSLIST:2451] Re: Grass5pre2. Compilation problem on RedHat 7.1

Markus Neteler neteler at itc.it
Tue Sep 18 08:46:01 EDT 2001


On Tue, Sep 18, 2001 at 02:19:23PM +0200, Daniel Tourde wrote:
> Hi!
> 
> 
> > yes: you are trying in src directory, but have to compile src/libes/gis/
> > 
> > so:
> > 
> >  /usr/src/redhat/BUILD/grass5.0.0pre2/bin.i686-pc-linux-gnu/gmake5 src/libes/gis
> 
> 
> OK. Here it comes:
> 
> [root at brest grass5.0.0pre2]#
> /usr/src/redhat/BUILD/grass5.0.0pre2/bin.i686-pc-linux-gnu/gmake5
> src/libes/gis 
>   SRC     = /usr/src/redhat/BUILD/grass5.0.0pre2/src
>   CMD     = /usr/src/redhat/BUILD/grass5.0.0pre2/src/CMD
>   UNUSED  = /usr/src/redhat/BUILD/grass5.0.0pre2/unused
>   HEADER  = head.i686-pc-linux-gnu
>   ARCH    = i686-pc-linux-gnu
>   GISBASE = /usr/src/redhat/BUILD/grass5.0.0pre2/dist.i686-pc-linux-gnu
>   VERSION = 5.0.0pre2 September 2001 
> #################################################################
> /usr/src/redhat/BUILD/grass5.0.0pre2/src/libes/gis
>   make -f OBJ.i686-pc-linux-gnu/make.rules 
> 
> gcc -g -O2  -I/usr/include/pgsql
> -I/usr/src/redhat/BUILD/grass5.0.0pre2/src/include    -c flate.c -o
> OBJ.i686-pc-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: *** [OBJ.i686-pc-linux-gnu/flate.o] Error 1

yes: zlib.h not found.

> > > I downloaded fftw-2.1.3-8.src.rpm from Rawhide and I recompiled it by
> > > myself. It is the last version available (I checked). I installed the
> > > i386.rpm files and there is no fftw.h file
> > > There are only the 4 files listed below (beside of the libraries by
> > > themselves).
> > >
> > > How did you install fftw? Is it the same fftw?
> > 
> > Mine is from (see REQUIREMENTS.html):
> > http://www.fftw.org
> 
> 
> Aha!
> This is an important point. Let me see what I find there and let's hope
> it will solve the problem without breaking an other package... (I think
> I installed originally fftw for Grace)
> 		Daniel
> 
> PS: zlib.h is under /usr/include so it should be seen. I don't
> understand what's wrong with that...

Since it is obviously not seen, please use:
 --with-zlib-includes=/usr/include

Then you should be able to compile the libgis and the other stuff (nearly
every module needs libgis...). So after that a global "make" makes sense.

Happy compiling,

 Markus



More information about the grass-user mailing list