--- Begin Message ---
I'm a beginner in MapServer.
I installed MapServer on Mac OS 4 by using binary version.
But I need to use python mapscript, so I have to build configuration file for
mapserver.
But when I tried to configure mapserver from source,
I got the follwing error: I cannot understand why ..
Please help me!
geog32:/usr/local/src/mapserver-4.8.2 mhwang4$ ./configure
--with-jpeg=/usr/local/lib --with-postgis=/usr/local/pgsql/
bin/pg_config --with-proj=/usr/local/proj-4.4.9 --with-httpd=/usr/sbin/httpd
--with-freetype=/usr/X11R6 --with-png=/
usr/local/lib --with-gd --with-gd=/usr/local
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... no
checking if compiler supports -Wl,-R... no
checking for exp in -lm... yes
checking for __gxx_personality_v0 in -lstdc++... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for strlcat... yes
checking for vsnprintf... yes
MapServer Version from map.h: '4.8.2'
configure: checking where FreeType 2.x is installed...
using libfreetype from -L/usr/X11R6/lib -lfreetype
checking for FT_Init_FreeType in -lfreetype... no
using libfreetype -L/usr/X11R6/lib -lfreetype from system libs.
configure: checking where Zlib is installed...
checking for zlibVersion in -lz... yes
using libz from system libs (-DUSE_ZLIB).
configure: checking where PNG is installed...
using libpng from -L/usr/local/lib -lpng
configure: checking whether we should include JPEG support...
"Could not find jpeglib.h or libjpeg.a/libjpeg.so in /usr/local/lib."
checking for jpeg_read_header in -ljpeg... yes
using libjpeg from system libs.
configure: checking where libXpm is installed...
checking for XpmFreeXpmImage in -lXpm... no
XPM (libXpm) library cannot be found, possibly needed for GD
configure: checking where libiconv is installed...
checking for iconv_open in -lc... no
checking for libiconv_open in -liconv... yes
using libiconv from system libs.
libiconv found. Enabling internationalization (-DUSE_ICONV)
configure: checking for GD 2.0.16 or higher...
checking for gdFontCacheSetup in -lgd... yes
using libgd 2.0.16 (or higher) from -L/usr/local/lib -lgd -ljpeg
-L/usr/X11R6/lib -lfreetype -L/usr/local/lib -lpng -lz
checking for gdImageGif in -lc... yes
checking for gdImagePng in -lc... yes
checking for gdImageJpeg in -lc... yes
checking for gdImageWBMP in -lc... yes
checking for gdImageStringFT in -lc... yes
checking for gdImageGifPtr in -lc... yes
checking for gdFontGetTiny in -lc... yes
using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -
DGD_HAS_GETBITMAPFONTS) from /usr/local.
configure: checking whether we should include PDF support...
checking for PDF_setlinewidth in -lpdf... no
checking for PDF_setrgbcolor in -lpdf... no
checking for PDF_moveto in -lpdf... no
checking for PDF_curveto in -lpdf... no
checking for PDF_show_xy in -lpdf... no
libpdf not found... PDF support not included.
configure: checking whether we should include EPPL7 support...
including EPPL7 support.
configure: checking whether we should include PROJ.4 support...
checking for pj_transform in -lproj... yes
using PROJ.4 from /usr/local/proj-4.4.9.
configure: checking whether we should include thread safe support...
thread safe support disabled.
configure: checking whether we should include ESRI SDE support...
ESRI SDE support not requested.
configure: checking whether we should compile in MPATROL support...
MPATROL support not requested.
checking if GEOS support requested... no
configure: checking whether we should include OGR support...
OGR support not requested.
checking if GDAL support requested... no
checking checking ms JPEG output... yes, GDAL is not available but libjpeg is.
configure: checking whether we should include TIFF support...
checking for TIFFOpen in -ltiff... no
libtiff not found... TIFF support not included.
checking if PostGIS support requested... yes, user supplied pg_config
checking if MyGIS support requested... no
checking if OracleSpatial support requested... no
checking if MING/Flash support requested... no
configure: checking whether we should include WMS Server support...
OGC WMS compatibility enabled (-DUSE_WMS_SVR).
configure: checking whether we should include WFS Server support...
OGC WFS Server support not requested.
configure: checking whether we should include WCS Server support...
OGC WCS Server support not requested.
configure: checking whether we should include WMS Client Connections support...
configure: checking whether we should include WFS Client Connections support...
OGC WFS Client Connections not enabled (PROJ.4, libcurl and OGR
required).
configure: checking for curl-config...
configure: checking whether FastCGI support should be enabled...
FastCGI support not enabled.
configure: checking HTTPD server (Apache) version...
using user-supplied httpd (/usr/sbin/httpd)
/usr/sbin/httpd version is Apache/1.3.33 (1003033).
Compiling with -DIGNORE_MISSING_DATA.
checking compiler warnings... basic
configure: checking whether we should enable debug features...
configure: checking for PHP/MapScript module options...
PHP/MapScript module not configured.
checking if --enable-runpath requested... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mapscript/java/Makefile
config.status: creating mapscript/csharp/Makefile
geog32:/usr/local/src/mapserver-4.8.2 mhwang4$ make
gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DUSE_EPPL
-DUSE_PROJ -DUSE_WMS_SVR -DUSE_JPEG
-DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
-DGD_HAS_GDIMAGEGIFPTR -
DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_POSTGIS -DUSE_ZLIB
-I/usr/local/include -I/usr/local/proj-4.4.9/
include -I/usr/local/pgsql/include shp2img.o -L. -lmap
-L/usr/local/lib -lgd -ljpeg -L/usr/X11R6/lib -lfreetype -L/
usr/local/lib -lpng -lz -ljpeg -L/usr/X11R6/lib -lfreetype -L/usr/local/lib
-lpng -lz -L/usr/local/proj-4.4.9/lib -lproj -ljpeg
-L/usr/local/pgsql/lib -lpq -liconv -lz -lm -lstdc++ -o shp2img
/usr/bin/ld: Undefined symbols:
_CPLSetConfigOption
_CPLFreeConfig
_CPLGetLastErrorMsg
_CPLMalloc
_CPLPopErrorHandler
_CPLPushErrorHandler
_CPLQuietErrorHandler
_GDALAllRegister
_GDALClose
_GDALCreate
_GDALCreateColorTable
_GDALCreateCopy
_GDALDestroyColorTable
_GDALDestroyDriverManager
_GDALGetDriverByName
_GDALGetMetadataItem
_GDALGetRasterBand
_GDALRasterIO
_GDALSetColorEntry
_GDALSetGeoTransform
_GDALSetProjection
_GDALSetRasterColorInterpretation
_GDALSetRasterColorTable
_OSRDestroySpatialReference
_OSRExportToWkt
_OSRImportFromProj4
_OSRNewSpatialReference
_VSIFree
_CSLFetchNameValue
_GDALGetProjectionRef
_GDALOpen
_CPLSPrintf
_CSLDestroy
_CSLDuplicate
_CSLFetchBoolean
_CSLSetNameValue
_GDALGetRasterXSize
_GDALGetRasterYSize
_CPLPrintPointer
_CSLCount
_CSLTokenizeString
_CSLTokenizeStringComplex
_GDALAddBand
_GDALCloneColorTable
_GDALDatasetRasterIO
_GDALDitherRGB2PCT
_GDALGetColorEntry
_GDALGetColorEntryAsRGB
_GDALGetColorEntryCount
_GDALGetDataTypeSize
_GDALGetDescription
_GDALGetGeoTransform
_GDALGetRasterColorInterpretation
_GDALGetRasterColorTable
_GDALGetRasterCount
_GDALGetRasterDataType
_GDALGetRasterNoDataValue
_GDALReadWorldFile
__Unwind_Resume
OGRSpatialReference::importFromWkt(char**)
OGRSpatialReference::SetFromUserInput(char const*)
OGRSpatialReference::OGRSpatialReference(char const*)
OGRSpatialReference::~OGRSpatialReference()
OGRSpatialReference::exportToProj4(char**) const
OGRSpatialReference::IsLocal() const
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1
--- End Message ---