make: gdal & mapserver

Agneta Schick schick at SDAC.HANNOVER.BGR.DE
Mon Oct 31 07:37:02 PST 2005


Hello,

I'm trying to get a newer version of mapserver installed.

On sparc-sun-solaris2.8 I've installed:
gd-2.0.33
gdal-1.3.1
proj-4.4.9

Making mapserver-4.6.1 results in :
...
gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR    
-DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT 
-DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_ICONV         
-I/usr/local/include -I/usr/local/include      
-I/usr/local/mapserver/gdal-1.3.1/port -I/usr/local/mapserver/gdal-1.3.1/gcore 
-I/usr/local/mapserver/gdal-1.3.1/alg -I/usr/local/mapserver/gdal-1.3.1/ogr 
-I/usr/local/mapserver/gdal-1.3.1/ogr/ogrsf_frmts  shp2img.o  -L. -lmap -lgd 
-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -L/lib -lz -lXpm -lX11 -ltiff 
-ljpeg -lfreetype -lpng -L/lib -lz -lXpm -lX11  -L/usr/local/lib -lproj -ljpeg  
/usr/local/mapserver/gdal-1.3.1/libgdal.la -liconv -L/lib -lz -lm  -o shp2img
ld: fatal: file /usr/local/mapserver/gdal-1.3.1/libgdal.la: unknown file type
ld: fatal: File processing errors. No output written to shp2img
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1

gdal-1.1.8/apps/gdal-config:
CONFIG_LIBS="-L/usr/local/mapserver/gdal-1.1.8 -lgdal.1.1 -ljpeg -lpng -lz -lm 
-ldl -L/usr/local/lib -lm"

gdal-1.3.1/apps/gdal-config:
CONFIG_LIBS="/usr/local/mapserver/gdal-1.3.1/libgdal.la"

What should I do to get MapServer installed? Is gdal not properly installed
or the gdal-config pointing to the wrong directory or the mapserver 
configuration not correct?

All help is appreciated!

Agneta Schick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Agneta Schick
    
    Bundesanstalt fuer Geowissenschaften und Rohstoffe
    Federal Institute for Geosciences and Natural Resources
    Stilleweg 2
    D- 30655 Hannover                   Tel.: +49 511 643 3136
    GERMANY                             FAX.: +49 511 643 3663

    schick at sdac.hannover.bgr.de         http://www.seismologie.bgr.de
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the MapServer-users mailing list