[Mapserver-users] nightly compile error

Frank Warmerdam warmerdam at pobox.com
Fri Mar 5 14:51:29 EST 2004


Randy James wrote:
> Hi
> 
> I am trying to compile the nightly downloaded on march 5
> 2004 and am getting the following error. Does anyone
> reconize the error, or should i give more information?
> 
> gcc -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ
> -DUSE_PROJ_API_H -DUSE_WMS_SVR         -DUSE_GD_PNG
> -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
> -DUSE_POSTGIS    -I/usr/src/gd-2.0.15 
> -I/usr/src/proj-4.4.5/src        -I/usr/local/include
> -I/usr/local/pgsql/include     shp2img.o  -L. -lmap -ljpeg
> -lfreetype -lpng -lz    -ljpeg -lfreetype -lpng -lz  
> -L/usr/src/proj-4.4.5/src/.libs -lproj -ljpeg  
> -L/usr/local/lib -lgdal.1.1  -L/usr/local/pgsql/lib -lpq   
>   -lm /usr/src/gd-2.0.15/.libs/libgd.a -o shp2img
> ./libmap.a(mapdrawgdal.o): In function
> `msDrawRasterLayerGDAL_RawMode':
> mapdrawgdal.o(.text+0x2afc): undefined reference to
> `GDALDatasetRasterIO'
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1

Randy,

My error.  GDALDatasetRasterIO() is a GDAL 1.2.0 feature - not available
in 1.1.9.  I will correct the code to work for GDAL 1.1.9.  In the meantime
you can update to GDAL 1.2.0 or comment out the call if you are in a hurry.
The call won't occur in normal MapServer use.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the mapserver-users mailing list