mapserver compile error (gentoo)
Jaakko Kahkonen
jaakko.kahkonen at FGI.FI
Fri Jul 1 08:37:38 EDT 2005
Hello,
I joined to the list today, so my apologies if this is already asked
here (I did quick search but didn't find solution).
I'm trying to compile mapserver-4.6.0 on Gentoo Linux (on sparc and x86
platform) and got a very simple looking error messages on both
Gentoo platforms. So, maybe something is misconfigured on my platforms,
but I do not have a clue. Hints?
This is what I got when running ./configure
jaska at sparcy ~/mapserverin_kaanto/mapserver-4.6.0 $ ./configure
--with-postgis=/usr/bin/pg_config --with-proj --with-geos
--with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config
--with-wmsclient --with-wfs --with-wms
--with-curl-config=/usr/bin/curl-config --with-wfsclient
--with-httpd=/usr/sbin/apache2
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 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,... 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 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... no
MapServer Version from map.h: '4.6.0'
configure: checking where FreeType 2.x is installed...
checking for FT_Init_FreeType in -lfreetype... yes
using libfreetype -lfreetype from system libs.
configure: checking where Zlib is installed...
using libz from -L/lib -lz
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
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 system libs (-L/usr/lib -lgd
-ljpeg -lfreetype -lpng -L/lib -lz -lXpm -lX11 ).
-lpng -L/lib -lz -lXpm -lX11 ).
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageGifPtr in -lgd... yes
checking for gdFontGetTiny in -lgd... 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 system
libs.
configure: checking whether we should include PDF support...
checking for PDF_setlinewidth in -lpdf... yes
checking for PDF_setrgbcolor in -lpdf... yes
checking for PDF_moveto in -lpdf... yes
checking for PDF_curveto in -lpdf... yes
checking for PDF_show_xy in -lpdf... yes
using libpdf from system libs.
configure: checking whether we should include EPPL7 support...
including EPPL7 support.
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...
thread safe support disabled.
configure: checking whether we should include ESRI SDE support...
ESRI SDE support not requested.
configure: checking whether we should include SDE raster support...
not including experimental SDE raster support.
configure: checking whether we should compile in MPATROL support...
MPATROL support not requested.
checking if GEOS support requested... yes
checking for geos-config... /usr/bin/geos-config
configure: checking whether we should include OGR support...
OGR enabled (-DUSE_OGR).
checking if GDAL support requested... yes, user supplied gdal-config
(/usr/bin/gdal-config)
checking checking ms JPEG output... no we, have GDAL available.
configure: checking whether we should include TIFF support...
disabled since gdal is in use
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 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 for curl-config...
found libcurl version 7.13.2
OGC WMS Client Connections enabled (-DUSE_WMS_LYR).
OGC WFS Client Connections enabled (-DUSE_WFS_LYR).
configure: checking whether FastCGI support should be enabled...
FastCGI support not enabled.
configure: checking HTTPD server (Apache) version...
using user-supplied httpd (/usr/sbin/apache2)
/usr/sbin/apache2 version is Apache/2.0.54 (2000054).
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
jaska at sparcy ~/mapserverin_kaanto/mapserver-4.6.0 $
And running make:
jaska at sparcy ~/mapserverin_kaanto/mapserver-4.6.0 $ make
gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT
-DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR
-DUSE_WFS_LYR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF
-DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS
-I/usr/include -I/usr/include/gdal -I/usr/include
-I/usr/include maptemplate.c -o maptemplate.o
gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT
-DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR
-DUSE_WFS_LYR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF
-DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS
-I/usr/include -I/usr/include/gdal -I/usr/include
-I/usr/include mapbits.c -o mapbits.o
gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT
-DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR
-DUSE_WFS_LYR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF
-DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS
-I/usr/include -I/usr/include/gdal -I/usr/include
-I/usr/include maphash.c -o maphash.o
...cut...
gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT
-DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR
-DUSE_WFS_LYR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF
-DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS
-I/usr/include -I/usr/include/gdal -I/usr/include
-I/usr/include shp2img.c -o shp2img.o
gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL
-DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR
-DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
-DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR
-DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -I/usr/include
-I/usr/include/gdal -I/usr/include -I/usr/include shp2img.o
-L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -L/lib -lz -lXpm
-lX11 -lpdf -ljpeg -lfreetype -lpng -L/lib -lz -lXpm -lX11 -lproj
-ljpeg /usr/lib/libgdal.a /usr/lib/lib /usr/lib/-lpq /usr/lib/libgdal.a
-L/usr/lib -lgeos -logdi31 -ljpeg -lgeotiff -ltiff -lpng -lnetcdf -lz
-lm -ldl -L/usr/lib -lpq -L/usr/lib/mysql -lmysqlclient -lz -lcrypt
-lnsl -lm -L/usr/lib -lssl -lcrypto -L/usr/lib -lpq -L/usr/lib -lcurl
-lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -L/usr/lib -lgeos
-lc -lm -lstdc++ -o shp2img
gcc: /usr/lib/lib: No such file or directory
gcc: /usr/lib/-lpq: No such file or directory
make: *** [shp2img] Error 1
jaska at sparcy ~/mapserverin_kaanto/mapserver-4.6.0 $
And emerge info, if it helps:
Portage 2.0.51.19 (default-linux/sparc/sparc64/2005.0, gcc-3.2.3,
glibc-2.3.3.20040420-r2, 2.6.11-gentoo-r8 sparc64)
=================================================================
System uname: 2.6.11-gentoo-r8 sparc64 sun4u
Gentoo Base System version 1.6.12
Python: dev-lang/python-2.3.5,dev-lang/python-2.2.3 [2.3.5
(#1, May 3 2005, 16:51:33)]
dev-lang/python: 2.3.5, 2.2.3
sys-apps/sandbox: [Not Present]
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.5, 1.9.5, 1.4_p6, 1.8.5-r3, 1.6.3, 1.7.9-r1
sys-devel/binutils: 2.15.92.0.2-r10
sys-devel/libtool: 1.4.3-r1, 1.5.16
virtual/os-headers: 2.4.19-r1, 2.6.11-r2
ACCEPT_KEYWORDS="sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=ultrasparc -mtune=v9 -O3 -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /opt/jakarta/tomcat/conf /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=ultrasparc -mtune=v9 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo
http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://vesa.fgi.fi/gentoo-portage"
USE="sparc X apache2 arts avi berkdb bigger-fonts bitmap-fonts cdr crypt
cups curl dba dlloader eds encode esd exif fam fbcon foomaticdb fortran
gcc64 gd gdal gdbm geos gif gnome gpm gstreamer gtk gtk2 imlib imlib2
innodb java jpeg libwww mad mod_php motif mozilla mpeg mysql ncurses nls
ogdi opengl pam pdflib perl php png postgis postgres proj python
readline samba sdl slang spell ssl tcpd tiff truetype truetype-fonts
type1-fonts xml2 xv zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS
--
jaakko
More information about the mapserver-dev
mailing list