Hi Thomas,<br><br>Thanks - that helped me fix the problem. I used the following options:<br><br>./configure --prefix=$HOME \<br>--enable-debug  \<br>--with-gd \<br>--with-freetype --without-tiff \<br>--with-gdal=/home/david/bin/gdal-config \<br>
--with-ogr=/home/david/bin/gdal-config \<br>--with-proj=/home/david/src/proj-4.7.0/ \<br>--without-pdf \<br>--with-png=/usr/ --with-threads \<br>--with-postgis=/home/david/bin/pg_config \<br>--with-wfs --with-wcs --with-wmsclient --with-wfsclient \<br>
--with-php=$HOME --enable-debug \<br>--with-geos=/home/david/bin/geos-config \<br>--with-python \<br>--with-gif=$HOME<br><br>and received the following summary:<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:               -DUSE_PNG<br>  gif support:               -DUSE_GIF<br>  jpeg support:              -DUSE_JPEG<br>  freetype support:          -DUSE_FREETYPE<br>
  iconv support:             -DUSE_ICONV<br>  AGG support:               internal<br>  SVG Symbol support:        -DUSE_AGG_SVG_SYMBOLS<br>  Cairo (SVG,PDF) support:   <br>  KML support:               <br><br> -------------- Support Libraries --------- <br>
  Proj.4 support:            -DUSE_PROJ<br>  Libxml2 support:           -DUSE_LIBXML2<br>  FriBidi support:           <br>  Curl support:              -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH<br>  FastCGI support:           <br>
  Threading support:         -DUSE_THREAD<br>  GEOS support:              -DUSE_GEOS<br>  XML Mapfile support:        <br>  XSLT support:              <br>  EXSLT support:              <br><br> -------------- Data Format Drivers ------- <br>
  PostGIS support:           -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION<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_WFS_LYR<br>
  WCS Server:                -DUSE_WCS_SVR<br>  SOS Server:                <br><br> -------------- MapScript ----------------- <br>  PHP MapScript:             yes<br><br>However I ran into problems when I ran 'make'.<br>
<br>gcc -c -g  -fPIC -Wall     -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR           -DUSE_WMS_LYR -DUSE_WFS_LYR  -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH  -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR   -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS  -DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS    -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 -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE   -DDISABLE_CVSID -I/usr/include/freetype2  -I/usr//include -I/home/david/include  -I/usr/include -Irenderers/agg/include    -I/home/david/src/proj-4.7.0//src   -I/home/david/include -I/home/david/include    -I/home/david/include    -I/usr/include/libxml2   shp2img.c -o shp2img.o<br>
g++ -g  -fPIC -Wall     -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR           -DUSE_WMS_LYR -DUSE_WFS_LYR  -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH  -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR   -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS  -DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS    -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 -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE   -DDISABLE_CVSID -I/usr/include/freetype2  -I/usr//include -I/home/david/include  -I/usr/include -Irenderers/agg/include    -I/home/david/src/proj-4.7.0//src   -I/home/david/include -I/home/david/include    -I/home/david/include    -I/usr/include/libxml2   shp2img.o  -L. -lmapserver -lfreetype -lgd -L/usr/lib -lgd -ljpeg -lfreetype -L/usr//lib -lpng -lz -lXpm -lX11  -lexpat   -L/home/david/src/proj-4.7.0//src/.libs -lproj -ljpeg -L/usr//lib -lpng -L/home/david/lib -lgif  -L/home/david/lib -lgdal -L/home/david/lib -lpq  -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz    -L/home/david/lib -lgeos_c -lpthread -lc    -lz -L/usr/lib -lxml2 -lz -lm  -lm -lstdc++    -o shp2img<br>
./libmapserver.a(mapogroutput.o): In function `msOGRWriteShape':<br>/home/david/src/mapserver-6.0.1/mapogroutput.c:380: undefined reference to `OGR_G_ForceToPolygon'<br>/home/david/src/mapserver-6.0.1/mapogroutput.c:385: undefined reference to `OGR_G_ForceToMultiPolygon'<br>
/home/david/src/mapserver-6.0.1/mapogroutput.c:390: undefined reference to `OGR_G_ForceToMultiPoint'<br>/home/david/src/mapserver-6.0.1/mapogroutput.c:395: undefined reference to `OGR_G_ForceToMultiLineString'<br>
./libmapserver.a(mapogroutput.o): In function `msOGRWriteFromQuery':<br>/home/david/src/mapserver-6.0.1/mapogroutput.c:979: undefined reference to `CPLCreateZip'<br>/home/david/src/mapserver-6.0.1/mapogroutput.c:984: undefined reference to `CPLCreateFileInZip'<br>
/home/david/src/mapserver-6.0.1/mapogroutput.c:989: undefined reference to `CPLCloseZip'<br>/home/david/src/mapserver-6.0.1/mapogroutput.c:1000: undefined reference to `CPLWriteFileInZip'<br>/home/david/src/mapserver-6.0.1/mapogroutput.c:1004: undefined reference to `CPLCloseFileInZip'<br>
/home/david/src/mapserver-6.0.1/mapogroutput.c:1006: undefined reference to `CPLCloseZip'<br>collect2: ld returned 1 exit status<br>make: *** [shp2img] Error 1<br><br>Does anyone have a suggestion about how I can solve the following errors? I read some very old bug reports with the following error suggesting that it was due to the compiler version but I don't know if this is relevant.<br>
<br>Thanks,<br>David<br><br><div class="gmail_quote">On Mon, Oct 17, 2011 at 3:17 AM, thomas bonfort <span dir="ltr"><<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
--with-gif=$HOME if you have installed it there. As a rule of thumb,<br>
it is not a good idea to only compile the packages and not install<br>
them (i.e. no make install) as there is no reason that the packages<br>
respect the include/ lib/ hierarchy inside their source structure.<br>
(i.e. you should be using  --with-gdal=/home/david/bin/gdal-config,<br>
--with-proj=/home/david, etc... )<br>
<br>
--<br>
thomas<br>
<div><div></div><div class="h5"><br>
<br>
On Mon, Oct 17, 2011 at 06:48, David Quinn <<a href="mailto:daithiquinn@gmail.com">daithiquinn@gmail.com</a>> wrote:<br>
> Hello List,<br>
><br>
> I'm trying to install Mapserver on CentOS5 (specifically on a Webfaction<br>
> shared hosting server). I'm using the following options:<br>
><br>
> ./configure --prefix=$HOME \<br>
> --enable-debug  \<br>
> --with-gd \<br>
> --with-freetype --without-tiff \<br>
> --with-gdal=/home/david/src/gdal-1.8.1/apps/gdal-config \<br>
> --with-ogr=/home/david/src/gdal-1.8.1/apps/gdal-config \<br>
> --with-proj=/home/david/src/proj-4.7.0/ \<br>
> --without-pdf \<br>
> --with-png=/usr/ --with-threads \<br>
> --with-postgis=/home/david/src/postgresql-8.4.6/src/bin/pg_config \<br>
> --with-wfs --with-wcs --with-wmsclient --with-wfsclient \<br>
> --with-php=/usr/include/php5/ --enable-debug \<br>
> --with-geos=/home/david/bin/geos-config \<br>
> --with-python \<br>
> --with-gif=/home/david/src/giflib-4.1.6/lib/gif_lib.h<br>
><br>
> However I get the following error:<br>
><br>
> checking setjmp.h usability... yes<br>
> checking setjmp.h presence... yes<br>
> checking for setjmp.h... yes<br>
> configure: checking where GIF is installed...<br>
> configure: error: cannot find gif lib in<br>
> /home/urbmet/src/giflib-4.1.6/lib/gif_lib.h<br>
><br>
> After I got this error the first time, I installed giflib-4.1.6. The results<br>
> of running $ find | grep gif_lib.h<br>
> ./include/gif_lib.h<br>
> ./src/giflib-4.1.6/lib/gif_lib.h<br>
> ./src/giflib-4.1.6/doc/gif_lib.html<br>
> ./src/gdal-1.8.1/frmts/gif/giflib/gif_lib.h<br>
><br>
> I have tried --with-gif with all of the following arguments, either to the<br>
> folder or to gif_lib.h without success. Am I missing any settings or<br>
> dependencies?<br>
><br>
> Thanks,<br>
> David<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
><br>
><br>
</blockquote></div><br>