Hi List, Im building mapserver 5.6.3 on a ubuntu box. The config script I&#39;m using is:<br>./configure     --prefix=/usr \<br>        --with-ogr=/usr/bin/gdal-config \<br>                --with-gdal=/usr/bin/gdal-config \<br>

                --with-httpd=/usr/sbin/apache2 \<br>                --with-wfsclient \<br>        --with-fribidi \<br>                --with-wmsclient \<br>        --with-wfs \<br>        --with-pdf \<br>                --enable-debug \<br>

                --with-curl-config=/usr/bin/curl-config \<br>                --with-proj=/usr \<br>                --with-tiff \<br>                --with-gd \<br>                --with-jpeg \<br>        --with-png=/usr/lib \<br>

                --with-freetype=/usr/lib \<br>                --with-threads \<br>                --with-wcs \<br>                --with-postgis=/usr/bin/pg_config \<br>                --with-geos=/usr/bin/geos-config \<br>

                --with-libiconv=/usr/lib \<br>        --with-php=/usr/include/php5 \<br>                --with-agg<br><br><br> The config output is:<br><br>MapServer is now configured for <br><br> -------------- Compiler Info ------------- <br>

  C compiler:                gcc -g  -fPIC -Wall  <br>  C++ compiler:              g++ -g  -fPIC -Wall  <br>  Debug:                     -g <br>  Generic NINT:              <br><br> -------------- Renderer Settings --------- <br>

  OpenGL support:            <br>  zlib support:              -DUSE_ZLIB<br>  png support:               <br>  palette rgba png support:  <br>  jpeg support:              <br>  iconv support:             -DUSE_ICONV<br>  AGG support:               -DUSE_AGG<br>

  Cairo (SVG,PDF) support:   <br>  Ming(flash) support:       <br>  PDFLib support:            -DUSE_PDF<br><br> -------------- Support Libraries --------- <br>  Proj.4 support:            -DUSE_PROJ<br>  Libxml2 support:           -DUSE_LIBXML2<br>

  FriBidi support:           <br>  Curl support:              -DUSE_CURL<br>  FastCGI support:           <br>  Threading support:         -DUSE_THREAD<br>  GEOS support:              -DUSE_GEOS -DGEOS_HAS_SIMPLIFY<br><br>

 -------------- Data Format Drivers ------- <br>  native tiff support:       -DUSE_TIFF<br>  PostGIS support:           -DUSE_POSTGIS<br>  EPPL7 support:             -DUSE_EPPL<br>  ArcSDE support:            <br>  OGR support:               -DUSE_OGR<br>

  GDAL support:              -DUSE_GDAL<br>  Oracle Spatial support:    <br><br> -------------- OGC Services -------------- <br>  WMS Server:                -DUSE_WMS_SVR<br>  WMS Client:                -DUSE_WMS_LYR<br>
  WFS Server:                -DUSE_WFS_SVR<br>
  WFS Client:                -DUSE_WMS_LYR<br>  WCS Server:                -DUSE_WCS_SVR<br>  SOS Server:                <br><br> -------------- MapScript ----------------- <br>  PHP MapScript:             yes<br><br><br>

Now, when i run make, it ends up with the following error:<br><br>shp2img.c:33: warning: ‘cvsid_aw’ defined but not used<br>g++ -g  -fPIC -Wall     -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR        -DUSE_WMS_LYR -DUSE_WFS_LYR  -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/include -I/usr/include/freetype2    -I/usr/include     -I/usr/include/gdal -I/usr/include/postgresql     -I/usr/include    -I/usr/include/libxml2   shp2img.o  -L. -lmapserver -lgd -L/usr/lib64 -lgd -ljpeg -L/usr/lib -lfreetype -L/usr/lib -lpng -lz -lXpm -lX11     -lpdf -ltiff -ljpeg -L/usr/lib -lfreetype -L/usr/lib -lpng -lz -lXpm -lX11  -L/usr/lib64 -lproj -ljpeg -L/usr/lib -lpng  -L/usr/lib -lgdal1.6.0 -L/usr/lib -lgeos_c -I/usr/include -lsqlite3 -lodbc -lodbcinst -L/usr/lib -lexpat -L/usr/lib -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdf -ldf -logdi -lgif -ljpeg -lpng -lnetcdf -lpq -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl -lcurl -Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient  -L/usr/lib -lpq -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5 -lz -lreadline -lcrypt -ldl -lm   -lcurl  -L/usr/lib -lgeos_c -lpthread -L -lc  -lz -lxml2  -lm -lstdc++    -o shp2img<br>

/usr/bin/ld: cannot find -logdi<br>collect2: ld returned 1 exit status<br>make: *** [shp2img] Error 1<br><br><br>I&#39;m lost here, any help is appreciated<br>Thanks<br>Pablo<br>