[mapserver-users] Mapserver 5.6.3 compile error

Alan Boudreault aboudreault at mapgears.com
Thu Jun 10 08:22:24 EDT 2010


Hi Jan,

You have to install the unixodbc dev package. On my Ubuntu system, the package 
name is unixodbc-dev, which contains the libodbcinst.so file needed. Find the 
appropriate package for you distribution and install it.

Alan

On June 10, 2010 08:15:48 am Jan Peters-Anders wrote:
> Dear all,
> I am just upgrading my Mapserver executable to version 5.6.3 and I am
>  encoutering this compile error:
> 
> --------------8<-------------------
> gcc -c -g  -fPIC -Wall     -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR  
>       -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL
>  -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR    -DUSE_POSTGIS -DUSE_TIFF
>  -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY  -DUSE_THREAD
>  -DUSE_PROJ -DUSE_EPPL  -DUSE_AGG   -DUSE_PDF  -DUSE_GD_GIF -DUSE_GD_PNG
>  -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW
>  -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB    
>  -I/usr/lib -I/usr/include/freetype2    -I/usr/include     -I/usr/include
>  -I/usr/include     -I/usr/include -I/usr/local/include  
>  -I/usr/include/libxml2   shp2img.c -o shp2img.o g++ -g  -fPIC -Wall    
>  -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR        -DUSE_WMS_LYR
>  -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR
>  -DUSE_WFS_SVR -DUSE_WMS_SVR    -DUSE_POSTGIS -DUSE_TIFF -DUSE_GDAL
>  -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY  -DUSE_THREAD -DUSE_PROJ
>  -DUSE_EPPL  -DUSE_AGG   -DUSE_PDF  -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
>  -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
>  -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB     -I/usr/lib
>  -I/usr/include/freetype2    -I/usr/include     -I/usr/include
>  -I/usr/include     -I/usr/include -I/usr/local/include  
>  -I/usr/include/libxml2   shp2img.o  -L. -lmapserver -L/usr/lib -lgd -ljpeg
>  -lfreetype -lpng -lz -lXpm -lX11     -lpdf -ltiff -ljpeg -lfreetype -lpng
>  -lz -lXpm -lX11  -L/usr/include -lproj -ljpeg -lpng  -L/usr/lib -lgdal
>  -L/usr/lib -lgeos -lgeos_c -lodbc -lodbcinst -lgif -ljpeg -ltiff -lpng
>  -lnetcdf -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -L/usr/kerberos/lib -lcurl
>  -ldl -l gssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz 
>  -L/usr/lib -lpq -lpgport -lpam -lssl -lcrypto -lkrb5 -lz -lreadline
>  -ltermcap -lcrypt -lresolv -lnsl -ldl -lm -lbsd   -L/usr/kerberos/lib
>  -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto
>  -lz    -L/usr/lib -lgeos_c -lpthread -L/usr/local/lib -liconv  -lz
>  -L/usr/lib -lxml2 -lz -lm  -lm -lstdc++    -o shp2img /usr/bin/ld: cannot
>  find -lodbcinst
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1
> --------------8<-------------------
> 
> I know that this might be just a numb Linux specific problem and I am
>  asking just a beginner's (which I still seem to be when it comes to
>  compiling code on Linux :) ) question, but can anybody point me in the
>  right direction how to link the odbcinst correctly (it is located at
>  /usr/bin/odbcinst) so the compiler can find it?
> 
> Thanks in advance!
> 
> Regards
> Jan
> 

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com


More information about the mapserver-users mailing list