[mapserver-users] MapServer Make Failure
Travis Kirstine
traviskirstine at gmail.com
Wed Nov 25 08:34:51 PST 2009
I am trying to install MS 5.4.2 with GDAL 1.7 and am getting some
errors during the make.
./configure --with-fastcgi=/usr --without-tiff --without-eppl
--with-geos=/usr/local/bin/geos-config --with-threads --with-proj
--with-gdal=/usr/local/bin/gdal-config
--with-ogr=/usr/local/bin/gdal-config --with-gd=/usr
--with-freetype=/usr/bin --without-pdf --with-ming --with-wmsclient
--with-wfs --with-wfsclient --with-postgis
--with-httpd=/usr/sbin/httpd --with-php=/usr/include/php
--with-postgis -with-curl-config
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 ISO C89... 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 lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
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 grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for strrstr... no
checking for strcasestr... yes
checking for strlcat... no
checking for vsnprintf... yes
MapServer Version from mapserver.h: '5.4.2'
checking if pkg-config path is provided... checking for pkg-config...
/usr/bin/pkg-config
configure: checking where FreeType 2.x is installed...
using libfreetype from -lfreetype
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...
checking for png_init_io in -lpng... yes
using libpng from system libs.
configure: checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
using libjpeg from system libs.
configure: checking where libXpm is installed...
checking for XpmFreeXpmImage in -lXpm... yes
using libXpm from system libs.
configure: checking where libiconv is installed...
checking for iconv_open in -lc... yes
checking for libiconv_open in -liconv... no
checking for iconv_open in -liconv... no
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/lib -lgd -ljpeg
-lfreetype -lpng -lz -lXpm -lX11
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 gdImageOpenPolygon 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_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS) from /usr.
configure: checking whether we should include PDF support...
disabled by --without-pdf
checking if AGG support requested... no
checking if RGBA palette png support requested... no
configure: checking whether we should include EPPL7 support...
disabled by --without-eppl
configure: checking whether we should include PROJ.4 support...
checking for pj_init in -lproj... yes
checking for pj_transform in -lproj... yes
using PROJ.4 from system libs.
configure: checking whether we should include thread safe support...
checking for pthread_create in -lpthread... yes
using -lpthread from system libs.
configure: checking whether we should include ESRI SDE support...
ESRI SDE support not requested.
checking if GEOS support requested... yes
user supplied geos-config (/usr/local/bin/geos-config)
checking for GEOS version >= 2.2.2... yes. Found version 3.0.0
configure: checking whether we should include OGR support...
OGR enabled (-DUSE_OGR).
checking if GDAL support requested... yes, user supplied gdal-config
(/usr/local/bin/gdal-config)
checking checking ms JPEG output... no we, have GDAL available.
configure: checking whether we should include TIFF support...
disabled by --without-tiff
checking if PostGIS support requested... yes
checking for pg_config... /usr/bin/pg_config
yes, user supplied pg_config (/usr/bin/pg_config)
checking if MyGIS support requested... no
checking if OracleSpatial support requested... no
checking if MING/Flash support requested... yes
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 enabled (-DUSE_WFS_SVR).
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...
configure: checking whether we should include OGC SOS Server support...
OGC SOS Server support not requested.
checking for curl-config... checking for curl-config... /usr/bin/curl-config
found libcurl version 7.15.5
OGC WMS Client Connections enabled (-DUSE_WMS_LYR).
OGC WFS Client Connections enabled (-DUSE_WFS_LYR).
checking for libxml2... libxml2 not required.
checking if FriBidi support requested... no
checking FastCGI support... requested.
checking for FCGI_Accept in -lfcgi... yes
configure: checking HTTPD server (Apache) version...
using user-supplied httpd (/usr/sbin/httpd)
/usr/sbin/httpd version is Apache/2.2.3 (2002003).
Your system is apparently running Apache/2.2.3. Setting
stderr to non-blocking for msDebug() due to Apache 2.x bug (see
MapServer bug 458 or Apache bug 22030).
Compiling with fast MS_NINT
checking compiler warnings... basic
configure: checking whether we should enable debug features...
configure: checking for PHP/MapScript module options...
checking for g++ -shared ... yes
checking for location of config.h or php_config.h...
/usr/include/php/main/php_config.h
checking whether we have PHP3 or PHP4... -DPHP4
checking whether we should use PHP's regex... yes
found regex_extra.h - building PHP MapScript with PHP's bundled regex
PHP/MapScript module configured.
checking if --enable-runpath requested... no
checking if --with-java-include-os-name specified... no, autodetected linux
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mapscript/php3/Makefile
config.status: creating mapscript/java/Makefile
config.status: creating mapscript/csharp/Makefile
MapServer is now configured for
-------------- Compiler Info -------------
C compiler: gcc -O2 -fPIC -Wall
C++ compiler: g++ -O2 -fPIC -Wall
Debug: -DNEED_NONBLOCKING_STDERR
Generic NINT:
-------------- Renderer Settings ---------
zlib support: -DUSE_ZLIB
png support:
palette rgba png support:
jpeg support:
iconv support: -DUSE_ICONV
AGG support:
AGG Freetype support:
Ming(flash) support: -DUSE_MING_FLASH
PDFLib support:
-------------- Support Libraries ---------
Proj.4 support: -DUSE_PROJ
Libxml2 support:
FriBidi support:
Curl support: -DUSE_CURL
FastCGI support: -DUSE_FASTCGI
Threading support: -DUSE_THREAD
GEOS support: -DUSE_GEOS
-------------- Data Format Drivers -------
native tiff support:
PostGIS support: -DUSE_POSTGIS
EPPL7 support:
ArcSDE support:
OGR support: -DUSE_OGR
GDAL support: -DUSE_GDAL
Oracle Spatial 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:
SOS Server:
-------------- MapScript -----------------
PHP MapScript: yes
#####################################3
######################################
#######################################
#make
g++ -O2 -fPIC -Wall -DNEED_NONBLOCKING_STDERR -DHAVE_VSNPRINTF
-DNEED_STRLCAT -DNEED_STRRSTR -DNEED_NONBLOCKING_STDERR
-DUSE_FASTCGI -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_CURL -DUSE_WFS_SVR
-DUSE_WMS_SVR -DUSE_MING_FLASH -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR
-DUSE_GEOS -DUSE_THREAD -DUSE_PROJ -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/local/include -I/usr/include
-I/usr/local/include -I/usr/include shp2img.o -L. -lmapserver
-L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -ljpeg
-lfreetype -lpng -lz -lXpm -lX11 -lproj -ljpeg -lpng
-L/usr/local/lib -lgdal -L/usr/local/lib -lgeos_c -I/usr/include
-lsqlite3 -L/usr/local/lib -lexpat -L/usr/lib -lxerces-c -lpthread
-ljasper -ljpeg -ltiff -lpng -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl
-L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err -lidn -lssl -lcrypto -lz -lming -L/usr/lib -lpq
-L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err -lidn -lssl -lcrypto -lz -L/usr/local/lib -lgeos_c
-lpthread -lc -L/usr/lib -lfcgi -lz -lm -lstdc++ -o shp2img
./libmapserver.a(mapogr.o): In function
`msOGRLayerGetAutoStyle(map_obj*, layer_obj*, class_obj*, int, long)':
mapogr.cpp:(.text+0x26fc): undefined reference to `OGR_SM_Create'
mapogr.cpp:(.text+0x2711): undefined reference to `OGR_SM_InitFromFeature'
mapogr.cpp:(.text+0x2724): undefined reference to `OGR_SM_GetPartCount'
mapogr.cpp:(.text+0x2763): undefined reference to `OGR_ST_Destroy'
mapogr.cpp:(.text+0x278d): undefined reference to `OGR_SM_GetPart'
mapogr.cpp:(.text+0x279b): undefined reference to `OGR_ST_GetType'
mapogr.cpp:(.text+0x27c6): undefined reference to `OGR_ST_SetUnit'
mapogr.cpp:(.text+0x27e9): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x2826): undefined reference to `OGR_ST_GetParamDbl'
mapogr.cpp:(.text+0x2846): undefined reference to `OGR_ST_GetParamDbl'
mapogr.cpp:(.text+0x2884): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x28a8): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x28cc): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x28f0): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x2914): undefined reference to `OGR_ST_GetParamNum'
mapogr.cpp:(.text+0x2941): undefined reference to `OGR_ST_GetParamNum'
mapogr.cpp:(.text+0x296e): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x2a2e): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x2a58): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x2a91): undefined reference to `OGR_ST_GetParamNum'
mapogr.cpp:(.text+0x2b62): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x2c05): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x2c29): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x2c55): undefined reference to `OGR_ST_GetParamNum'
mapogr.cpp:(.text+0x2c81): undefined reference to `OGR_ST_GetParamNum'
mapogr.cpp:(.text+0x2ca5): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x2e13): undefined reference to `OGR_ST_GetRGBFromString'
mapogr.cpp:(.text+0x2e64): undefined reference to `OGR_ST_GetRGBFromString'
mapogr.cpp:(.text+0x2eb5): undefined reference to `OGR_ST_GetRGBFromString'
mapogr.cpp:(.text+0x2f09): undefined reference to `OGR_ST_GetRGBFromString'
mapogr.cpp:(.text+0x2f3d): undefined reference to `OGR_SM_Destroy'
mapogr.cpp:(.text+0x2f6c): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x2f90): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x2fb4): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x304a): undefined reference to `OGR_ST_GetRGBFromString'
mapogr.cpp:(.text+0x30c9): undefined reference to `OGR_ST_GetRGBFromString'
mapogr.cpp:(.text+0x311f): undefined reference to `OGR_ST_GetRGBFromString'
mapogr.cpp:(.text+0x31a4): undefined reference to `OGR_ST_GetRGBFromString'
mapogr.cpp:(.text+0x31f6): undefined reference to `OGR_ST_GetRGBFromString'
./libmapserver.a(mapogr.o): In function `msOGRGetValues(layer_obj*, void*)':
mapogr.cpp:(.text+0x3a97): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x3b01): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x3b60): undefined reference to `OGR_SM_Destroy'
mapogr.cpp:(.text+0x3b6b): undefined reference to `OGR_ST_Destroy'
mapogr.cpp:(.text+0x3b9b): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x3c01): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x3c7a): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x3cd6): undefined reference to `OGR_SM_Create'
mapogr.cpp:(.text+0x3ceb): undefined reference to `OGR_SM_InitFromFeature'
mapogr.cpp:(.text+0x3d06): undefined reference to `OGR_SM_GetPart'
mapogr.cpp:(.text+0x3d18): undefined reference to `OGR_ST_GetType'
mapogr.cpp:(.text+0x3d29): undefined reference to `OGR_ST_Destroy'
mapogr.cpp:(.text+0x3d5d): undefined reference to `OGR_ST_SetUnit'
mapogr.cpp:(.text+0x3d8e): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x3e26): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x3e9c): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x3f24): undefined reference to `OGR_ST_GetParamStr'
mapogr.cpp:(.text+0x3f8e): undefined reference to `OGR_ST_GetParamStr'
./libmapserver.a(mapogr.o):mapogr.cpp:(.text+0x3ff4): more undefined
references to `OGR_ST_GetParamStr' follow
./libmapserver.a(mapgdal.o): In function `CleanVSIDir':
mapgdal.c:(.text+0x18): undefined reference to `VSIReadDir'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1
--
Travis K.
Toronto, Canada
------------------------------------------------------------
"She knows there's no success like failure
and that failure's no success at all."
-Bob Dylan-
------------------------------------------------------------
More information about the MapServer-users
mailing list