[Mapserver-users] errors while compiling gdal

Mukta Telang mukta at darya.nio.org
Fri Sep 12 11:00:52 EDT 2003


Hi,
When I ran configure script from gdal source as follows:

./configure --prefix=/usr/local/gdal --exec-prefix=/usr/local/gdal
--with-libz=/usr/local --with-grass=/usr/local/libgrass5
--with-png=/usr/local --with-libtiff=/usr/local/libtiff3.6
--with-libgeotiff=/usr/local/libgeotiff -with-jpeg=/usr/local
--with-hdf4 --with-pg=/usr/local/pgsql/bin/pg_config

I got following errors/messages:
checking for GTIFGetDefn in -lgeotiff... no
using internal GeoTIFF code.

And when I ran "make all" (So as to compile OGR) I got lot of warnings
and errors like:

xtiff.c:29: parse error before `xtiffFieldInfo'

xtiff.c:29: warning: type defaults to `int' in declaration of
`xtiffFieldInfo'
xtiff.c:32: warning: braces around scalar initializer
xtiff.c:32: warning: (near initialization for `xtiffFieldInfo[0]')
xtiff.c:32: warning: excess elements in scalar initializer


xtiff.c: In function `_XTIFFLocalDefaultDirectory':
xtiff.c:56: warning: implicit declaration of function
`TIFFMergeFieldInfo'
make[3]: *** [xtiff.o] Error 1
make[3]: Leaving directory
`/user3/mukta/temp/gdal-1.1.9/frmts/gtiff/libgeotiff'
make[2]: *** [lib-geotiff] Error 2
make[2]: Leaving directory `/user3/mukta/temp/gdal-1.1.9/frmts/gtiff'
make[1]: *** [sub-libs] Error 1
make[1]: Leaving directory `/user3/mukta/temp/gdal-1.1.9/frmts'
make: *** [frmts-target] Error 2

If I dont give --with-libtiff and with-libgeotiff options then the
source gets compiled without errors, but the gdal-config file does not
exist in the installed 
package.

Please help,
thanks,
Mukta



More information about the mapserver-users mailing list