[GRASSLIST:2443] Grass5pre2. Compilation problem on RedHat 7.1 #2

Daniel Tourde ted at foi.se
Tue Sep 18 06:43:41 EDT 2001


Hi!

I have restarted the process of compiling the Grass5pre2. I have a
RedHat 7.1 machine with no particular customization.

I run:

./configure --prefix=/opt/grass --bindir=/usr/local/bin
--with-includes=/usr/include/pgsql

And I see this:

checking for fftw.h... no
configure: warning: *** Unable to locate FFTW includes.
checking for location of FFTW library... 
checking for fftwnd_one in -lfftw... no
configure: warning: *** Unable to locate FFTW library.
checking for location of BLAS library... 


[root at brest root]# locate fftw.h
/usr/include/dfftw.h
/usr/include/drfftw.h
/usr/include/sfftw.h
/usr/include/srfftw.h
[root at brest root]# rpm -qa | grep fftw
fftw-2.1.3-8
fftw-devel-2.1.3-8


Then I use
make
and I get the following error messages:


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[1]: *** [OBJ.i686-pc-linux-gnu/flate.o] Error 1
make[1]: Leaving directory
`/usr/src/redhat/BUILD/grass5.0.0pre2/src/libes/gis'
GISGEN failure at STEP: src/libes/gis

GISGEN: src/libes/vask - Tue Sep 18 11:28:50 CEST 2001



gcc -g -O2  -I/usr/include/pgsql
-I/usr/src/redhat/BUILD/grass5.0.0pre2/src/include
-I/usr/src/redhat/BUILD/grass5.0.0pre2/src/display/devices/lib  -c io.c
-o OBJ.i686-pc-linux-gnu/io.o
io.c: In function `sync_driver':
io.c:433: `sigalarm' undeclared (first use in this function)
io.c:433: (Each undeclared identifier is reported only once
io.c:433: for each function it appears in.)
io.c:433: parse error before `int'
io.c: At top level:
io.c:487: parse error before `dead'
io.c:488: conflicting types for `dead'
io.c:62: previous declaration of `dead'
io.c: In function `_hold_signals':
io.c:495: parse error before `*'
io.c:495: `RETSIGTYPE' declared as function returning a function
io.c:495: warning: `RETSIGTYPE' was declared implicitly `extern' and
later `static'
io.c:433: warning: previous declaration of `RETSIGTYPE'
io.c:496: parse error before `*'
io.c:496: `RETSIGTYPE' declared as function returning a function
io.c:496: warning: `RETSIGTYPE' was declared implicitly `extern' and
later `static'
io.c:433: warning: previous declaration of `RETSIGTYPE'
io.c:500: `sigint' undeclared (first use in this function)
io.c:501: `sigquit' undeclared (first use in this function)
io.c: In function `fifoto':
io.c:735: warning: assignment from incompatible pointer type
make[1]: *** [OBJ.i686-pc-linux-gnu/io.o] Error 1
make[1]: Leaving directory
`/usr/src/redhat/BUILD/grass5.0.0pre2/src/libes/raster'
GISGEN failure at STEP: src/libes/raster

GISGEN: src/libes/lock - Tue Sep 18 11:29:18 CEST 2001




gcc -g -O2  -I/usr/include/pgsql
-I/usr/src/redhat/BUILD/grass5.0.0pre2/src/include  -I../digitizers
-I../libes  -c bin_reg.c -o OBJ.i686-pc-linux-gnu/bin_reg.o
bin_reg.c:80:8: warning: extra tokens at end of #endif directive
gcc -s   -o
/usr/src/redhat/BUILD/grass5.0.0pre2/dist.i686-pc-linux-gnu/etc/geo.reg 
OBJ.i686-pc-linux-gnu/bin_reg.o  LIB.i686-pc-linux-gnu/libgeo.a 
/usr/src/redhat/BUILD/grass5.0.0pre2/src/libes/LIB.i686-pc-linux-gnu/libgis.a
/usr/src/redhat/BUILD/grass5.0.0pre2/src/libes/LIB.i686-pc-linux-gnu/liblock.a
-lm  -lz  
gcc:
/usr/src/redhat/BUILD/grass5.0.0pre2/src/libes/LIB.i686-pc-linux-gnu/libgis.a:
No such file or directory
make[1]: ***
[/usr/src/redhat/BUILD/grass5.0.0pre2/dist.i686-pc-linux-gnu/etc/geo.reg]
Error 1
make[1]: Leaving directory
`/usr/src/redhat/BUILD/grass5.0.0pre2/src/libes/vect32/georef'
GISGEN failure at STEP: src/libes/vect32/georef

GISGEN: src/libes/image3 - Tue Sep 18 11:34:13 CEST 2001


The problem with libraster.a and libgis.a shows up tens of times and
avoid the compilation of many programs.



gcc -g -O2  -I/usr/include/pgsql
-I/usr/src/redhat/BUILD/grass5.0.0pre2/src/include   -c connect_fifo.c
-o OBJ.i686-pc-linux-gnu/connect_fifo.o
In file included from connect_fifo.c:12:
driverlib.h:100:8: warning: extra tokens at end of #endif directive
connect_fifo.c:25: parse error before `timeout'
connect_fifo.c: In function `get_connection_fifo':
connect_fifo.c:34: `def' undeclared (first use in this function)
connect_fifo.c:34: (Each undeclared identifier is reported only once
connect_fifo.c:34: for each function it appears in.)
connect_fifo.c:34: parse error before `int'
connect_fifo.c:50: warning: passing arg 2 of `signal' from incompatible
pointer type
connect_fifo.c: In function `check_connection':
connect_fifo.c:93: `def' undeclared (first use in this function)
connect_fifo.c:93: parse error before `int'
connect_fifo.c:140: warning: passing arg 2 of `signal' from incompatible
pointer type
make[1]: *** [OBJ.i686-pc-linux-gnu/connect_fifo.o] Error 1
make[1]: Leaving directory
`/usr/src/redhat/BUILD/grass5.0.0pre2/src/display/devices/lib'
GISGEN failure at STEP: src/display/devices/lib

GISGEN: src/display/devices/monitorcap - Tue Sep 18 11:35:23 CEST 2001




			Daniel
-- 
***********************************************************************
Daniel TOURDE                             E-mail : daniel.tourde at foi.se
                                             Tel : +46 (0)8-55 50 43 44
                                        Cellular :  +46 (0)70-849 93 40
   FOI, Swedish Defence Research Agency; Aeronautics Division - FFA
       Dept. of Wind Energy and Aviation Environmental Research
SE-172 90 Stockholm, Sweden                     Fax : +46 (0)8-25 34 81
***********************************************************************



More information about the grass-user mailing list