[mapserver-users] Error compiling Mapserver 6.0.3
Luís de Sousa
luis.a.de.sousa at gmail.com
Mon Aug 27 00:25:47 PDT 2012
Dear all,
I'm trying to compile Mapserver 6.0.3 on Ubuntu Server 10.10 LTS, but I'm
getting a compile error on maplexer.l. I reproduce below the outputs of
configure and make; any insight on the issue is very welcome.
Thank you,
Luís
$ ./configure --with-ogr=/usr/local/bin/gdal-config
--with-gdal=/usr/local/bin/gdal-config --with-wfsclient --with-wmsclient
--enable-debug --with-curl-config=/usr/bincurl-config --with-proj=/usr/lib/
--with-tiff --with-gd=/usr/lib/ --with-jpeg --with-freetype=/usr/include/
--with-threads --with-wcs --with-libiconv=/usr
--with-geos=/usr/local/bin/geos-config --with-libiconv=/usr
--with-xml2-config=/usr/bin/xml2-config --with-sos
--with-postgis=/usr/lib/postgresql/9.1/bin/pg_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 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... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for bison... no
checking for byacc... byacc
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 strrstr... no
checking for strcasestr... yes
checking for strlcat... no
checking for strlcpy... no
checking for vsnprintf... yes
MapServer Version from mapserver.h: '6.0.3'
checking if pkg-config path is provided... checking for pkg-config...
/usr/bin/pkg-config
checking for Freetype2.x in /usr/include/... checking for FT_Init_FreeType
in -lfreetype... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
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
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
using libpng from system libs.
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
configure: checking where GIF is installed...
checking for DGifOpenFileHandle in -lgif... yes
checking gif_lib.h usability... yes
checking gif_lib.h presence... yes
checking for gif_lib.h... yes
using libgif from system libs.
configure: checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... 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 -L/usr/lib -lc
libiconv found. Enabling internationalization (-DUSE_ICONV)
configure: checking for GD 2.0.28 or higher...
checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
using libgd 2.0.28 (or higher) from -L/usr/lib/ -lgd -ljpeg -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 gdImageSetResolution in -lc... no
checking for gdImageOpenPolygon in -lc... yes
checking for gdImageGifPtr in -lc... yes
checking for gdFontGetTiny in -lc... yes
checking whether gdImageGetTrueColorPixel is declared... yes
checking for gdImageGetTrueColorPixel 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 -DGD_HAS_GET_TRUE_COLOR_PIXEL) from /usr/lib/.
checking if FTGL support requested... no
checking if OGL support requested... no
configure: checking where EXPAT is installed...
checking for XML_ParserCreate in -lexpat... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
using libexpat from system libs.
checking for AGG support... yes
checking if SVG Symbol support requested... enabled
configure: checking whether we should include PROJ.4 support...
checking for pj_transform in -lproj... yes
using PROJ.4 from /usr/lib/.
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 >= 3.0.0... yes. Found version 3.3.4
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 if PostGIS support requested... yes, user supplied pg_config
(/usr/lib/postgresql/9.1/bin/pg_config)
checking for PQconnectdb in -lpq... yes
checking for PQserverVersion in -lpq... yes
checking if Mysql support requested... no
checking if OracleSpatial 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 enabled (-DUSE_WCS_SVR).
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 requested.
checking for curl-config... checking for curl-config... /usr/bin/curl-config
found libcurl version 7.19.7
checking for CURLOPT_PROXYAUTH support... yes.
OGC WMS Client Connections enabled (-DUSE_WMS_LYR).
OGC WFS Client Connections enabled (-DUSE_WFS_LYR).
checking if KML output is requested... no
checking for libxml2... yes, user supplied xml2-config
(/usr/bin/xml2-config)
found libxml2 version 2.7.6
checking if xml-mapfile is requested... no
checking if xslt is requested... no
checking if exslt is requested... no
checking if FriBidi support requested... no
checking if Cairo support requested... no
checking FastCGI support... not requested.
configure: checking HTTPD server (Apache) version...
checking for httpd... no
'httpd' not found, skipping Apache version detection. You may want
to use --with-httpd=/path/to/httpd
Compiling with fast MS_NINT
checking compiler warnings... basic
configure: checking whether we should enable debug features...
Enabling debug features: -g in CFLAGS.
configure: checking whether we should enable mapserv CGI command-line debug
arguments...
configure: checking for PHP/MapScript module options...
PHP/MapScript module not configured.
checking for g++ -shared ... yes
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/java/Makefile
config.status: creating mapscript/csharp/Makefile
MapServer is now configured for
-------------- Compiler Info -------------
C compiler: gcc -g -fPIC -Wall
C++ compiler: g++ -g -fPIC -Wall
Debug: -g
Generic NINT:
-------------- Renderer Settings ---------
OpenGL support:
zlib support: -DUSE_ZLIB
png support: -DUSE_PNG
gif support: -DUSE_GIF
jpeg support: -DUSE_JPEG
freetype support: -DUSE_FREETYPE
iconv support: -DUSE_ICONV
AGG support: internal
SVG Symbol support: -DUSE_AGG_SVG_SYMBOLS
Cairo (SVG,PDF) support:
KML support:
-------------- Support Libraries ---------
Proj.4 support: -DUSE_PROJ
Libxml2 support: -DUSE_LIBXML2
FriBidi support:
Curl support: -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH
FastCGI support:
Threading support: -DUSE_THREAD
GEOS support: -DUSE_GEOS
XML Mapfile support:
XSLT support:
EXSLT support:
-------------- Data Format Drivers -------
PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION
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:
WFS Client: -DUSE_WFS_LYR
WCS Server: -DUSE_WCS_SVR
SOS Server: -DUSE_SOS_SVR
-------------- MapScript -----------------
PHP MapScript: no
$ sudo make
----------------------------------------------------------------
-- Please run "make lexer" if you have altered maplexer.l -
----------------------------------------------------------------
gcc -c -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT
-DNEED_STRRSTR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR
-DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_WCS_SVR
-DUSE_WMS_SVR -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL
-DUSE_OGR -DUSE_GEOS -DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS
-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
-DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB
-DUSE_FREETYPE -DDISABLE_CVSID -I/usr/include/ -I/usr/include//freetype2
-I/usr/lib/ -Irenderers/agg/include -I/usr/lib/ -I/usr/local/include
-I/usr/include/postgresql -I/usr/local/include -I/usr/include
-I/usr/include/libxml2 maplexer.c -o maplexer.o
maplexer.l: In function ‘msyylex’:
maplexer.l:178: error: ‘IN’ undeclared (first use in this function)
maplexer.l:178: error: (Each undeclared identifier is reported only once
maplexer.l:178: error: for each function it appears in.)
make: *** [maplexer.o] Error 1
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-compiling-Mapserver-6-0-3-tp4998005.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list