[mapserver-users] mapserver compiling error - newuser

kapil manoj manojkapil06 at gmail.com
Wed Mar 11 04:09:03 EDT 2009


Hi everyone,

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:

[kapil at 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

After the succesful completion of configuration i got the output:
MapServer is now configured for

 -------------- Compiler Info -------------
  C compiler:                gcc -g -O2 -fPIC -Wall
  C++ compiler:              g++ -g -O2 -fPIC -Wall
  Debug:                     -g  -DNEED_NONBLOCKING_STDERR
  Generic NINT:
  Threading support:         -DUSE_THREAD

 -------------- Renderer Settings ---------
  zlib support:              -DUSE_ZLIB
  png support:
  jpeg support:
  iconv support:             -DUSE_ICONV
  AGG support:               -DUSE_AGG
  AGG Freetype support:      -laggfontfreetype
  Ming(flash) support:
  PDFLib support:            -DUSE_PDF

 -------------- Data Format Drivers -------
  native tiff support:       -DUSE_TIFF
  PostGIS support:           -DUSE_POSTGIS
  Proj.4 support:            -DUSE_PROJ
  EPPL7 support:             -DUSE_EPPL
  ArcSDE support:
  OGR support:               -DUSE_OGR
  GDAL support:              -DUSE_GDAL
  GEOS support:              -DUSE_GEOS
  Oracle Spatial support:
  FastCGI support:

 -------------- OGC Services --------------
  WMS Server:                -DUSE_WMS_SVR
  WMS Client:                -DUSE_WMS_LYR
  WFS Server:                -DUSE_WFS_SVR
  WFS Client:                -DUSE_WMS_LYR
  WCS Server:                -DUSE_WCS_SVR
  SOS Server:                -DUSE_SOS_SVR

 -------------- MapScript -----------------
  PHP MapScript:             yes

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:

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
*/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1*

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.

Any idea how to fix this?   please someone help me out....

gcc/g++ --version   -4.3.0

many thanks
zizu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090311/4014085e/attachment.html


More information about the mapserver-users mailing list