[mapserver-users] Mapserver 5.6.3 compile error

Jan Peters-Anders petersja at gmx.at
Thu Jun 10 08:15:48 EDT 2010


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 -lgssapi_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
-- 
Think B4U Print

1 ream of paper = 6% of a tree and 5.4kg CO2 in the atmosphere

3 sheets of A4 paper = 1 litre of water








.

GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.  
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl


More information about the mapserver-users mailing list