Dear all, Following Cristiano's suggestion I downloaded the 6.0.1 tar, a version that I'm sure works properly. The log goes below. Basically, on a first compile make complains of not having yacc installed. After installing byacc there's a parse error on mapparser.y.
What intrigues me is that neither yacc nor lex are referenced in the install instructions. On other occasions I had to compile Mapserver I don't remember installing these packages either. Any further insight is welcome. Thanks for helping, Luís $ cd mapserver-6.0.1 $ ./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... no 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.1' 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 [Omiting here the compile messages] yacc -d -omapparser.c mapparser.y make: yacc: Command not found make: *** [mapparser.c] Error 127 $ sudo aptitude search yacc p btyacc - Backtracking parser generator based on byacc pi byacc - public domain Berkeley LALR Yacc parser generator p byacc-j - Berkeley YACC parser generator extended to generate Jav p ml-yacc - Parser generator for Standard ML p perl-byacc - The Berkeley LALR parser generator, Perl version $ sudo apt-get install byacc Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: m4 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: byacc 0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded. Need to get 0B/49.5kB of archives. After this operation, 168kB of additional disk space will be used. Selecting previously deselected package byacc. (Reading database ... 46170 files and directories currently installed.) Unpacking byacc (from .../byacc_20090221-1build1_amd64.deb) ... Setting up byacc (20090221-1build1) ... update-alternatives: using /usr/bin/byacc to provide /usr/bin/yacc (yacc) in auto mode. $ yacc -V bison (GNU Bison) 2.4.1 Written by Robert Corbett and Richard Stallman. Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ sudo make yacc -d -omapparser.c mapparser.y yacc: e - line 26 of "mapparser.y", syntax error %pure_parser ^ make: *** [mapparser.c] Error 1 -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-compiling-Mapserver-6-0-3-tp4998005p4998318.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users