Hi everyone,<br><br>I am a newuser , i wish to stick to open source. i have problem compiling mapserver 5. 0.3 on fedora 9. i used the following configure statements:<br><br>[kapil@localhost mapserver-5.0.3]$ ./configure --with-ogr=/usr/bin/gdal-config \--with-gdal=/usr/bin/gdal-config \--with-httpd=/usr/sbin/httpd \--with-wfsclient \--with-wmsclient \--with-wfs \--with-wms \--with-wcs \--enable-debug \--with-curl-config=/usr/bin/curl-config \--with-proj \--with-tiff \--with-geotiff \--with-png \--with-jpeg \--with-gd \--with-freetype=/usr/ \--with-threads \--with-libiconv=/usr/ \--with-geos=/usr/bin/geos-config \--with-xml2-config=/usr/bin/xml2-config \--with-sos \--with-agg \--with-postgis=/usr/bin/pg_config \--with-php=/usr/include/php \--with-postgresql \--with-mysql <br>
<br>After the succesful completion of configuration i got the output:<br>MapServer is now configured for <br><br> -------------- Compiler Info ------------- <br> C compiler: gcc -g -O2 -fPIC -Wall <br> C++ compiler: g++ -g -O2 -fPIC -Wall <br>
Debug: -g -DNEED_NONBLOCKING_STDERR<br> Generic NINT: <br> Threading support: -DUSE_THREAD<br><br> -------------- Renderer Settings --------- <br> zlib support: -DUSE_ZLIB<br>
png support: <br> jpeg support: <br> iconv support: -DUSE_ICONV<br> AGG support: -DUSE_AGG<br> AGG Freetype support: -laggfontfreetype<br> Ming(flash) support: <br>
PDFLib support: -DUSE_PDF<br><br> -------------- Data Format Drivers ------- <br> native tiff support: -DUSE_TIFF<br> PostGIS support: -DUSE_POSTGIS<br> Proj.4 support: -DUSE_PROJ<br>
EPPL7 support: -DUSE_EPPL<br> ArcSDE support: <br> OGR support: -DUSE_OGR<br> GDAL support: -DUSE_GDAL<br> GEOS support: -DUSE_GEOS<br> Oracle Spatial support: <br>
FastCGI 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: -DUSE_SOS_SVR<br><br> -------------- MapScript ----------------- <br> PHP MapScript: yes<br>
<br>Then i procceded to the next step called make process. Here come the real problem arose , during the make process i got the error below:<br><br>g++ -g -O2 -fPIC -Wall -DNEED_NONBLOCKING_STDERR -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_SOS_SVR -DUSE_TIFF -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_AGG -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/include/agg2 -I/usr/include/freetype2 -I/usr/include/gdal/ -I/usr/include -I/usr/include -I/usr//include -I/usr/include/libxml2 shp2img.o -L. -lmapserver -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/lib -lagg -laggfontfreetype -lpdf -ltiff -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lproj -ljpeg -lgdal -L/usr/lib -lgeos_c -I/usr/include -lsqlite3 -lodbc -lodbcinst -L/usr/lib -lexpat -L/usr/lib -lxerces-c -lpthread -ljasper -lhdf5 -L/usr/lib/hdf -lmfhdf -ldf -logdi -lgif -ljpeg -lgeotiff -ltiff -lpng -lnetcdf -lcfitsio -lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -lgrass_I -lgrass_gproj -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime -lpq -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl -ldap -ldapclient -ldapserver -lpthread -lrx -lcurl -lxml2 -lz -lm -lcurl -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto -L/usr/lib -lpq -lcurl -L/usr/lib -lgeos_c -lpthread -L/usr//lib -lc -lz -lxml2 -lz -lm -lm -lstdc++ -o shp2img<br>
<b>/usr/bin/ld: cannot find -lexpat<br>collect2: ld returned 1 exit status<br>make: *** [shp2img] Error 1</b><br><br>I gone through many threads having similar error which are have been posted in mapserver forum, but i was not satisfied with the solution given in threads.<br>
<br>Any idea how to fix this? please someone help me out....<br><br>gcc/g++ --version -4.3.0<br><br>many thanks<br>zizu<br><br><br>