[mapserver-dev] mapcache compile issue

Stephen Woodbridge woodbri at swoodbridge.com
Thu Apr 26 00:14:17 EDT 2012


Hi Thomas,

Just tried to compile mapcache trunk from git and failed with the following:

/bin/sh ../libtool --tag CC --mode=compile gcc   -DUSE_PCRE -DUSE_OGR 
-DUSE_GEOS -DUSE_SQLITE  -DUSE_TIFF   -DUSE_BDB  -DLINUX=2 -D_REENTRANT 
-D_GNU_SOURCE  -pthread -O2 -Wall -DHAVE_SYMLINK -DNDEBUG  -I../include 
      -I/usr/include/apr-1.0  -I/usr/include/apr-1.0 
-I/usr/include/postgresql -I/usr/include/mysql      -c cache_sqlite.c
libtool: compile:  gcc -DUSE_PCRE -DUSE_OGR -DUSE_GEOS -DUSE_SQLITE 
-DUSE_TIFF -DUSE_BDB -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -O2 
-Wall -DHAVE_SYMLINK -DNDEBUG -I../include -I/usr/include/apr-1.0 
-I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -c 
cache_sqlite.c  -fPIC -DPIC -o .libs/cache_sqlite.o
cache_sqlite.c: In function '_sqlite_reslist_get_rw_connection':
cache_sqlite.c:111: error: 'SQLITE_OPEN_NOMUTEX' undeclared (first use 
in this function)
cache_sqlite.c:111: error: (Each undeclared identifier is reported only once
cache_sqlite.c:111: error: for each function it appears in.)
cache_sqlite.c: In function '_sqlite_reslist_get_ro_connection':
cache_sqlite.c:143: error: 'SQLITE_OPEN_NOMUTEX' undeclared (first use 
in this function)
cache_sqlite.c: In function 
'_mapcache_cache_sqlite_configuration_parse_xml':
cache_sqlite.c:386: warning: implicit declaration of function 
'sqlite3_initialize'
cache_sqlite.c:388: warning: implicit declaration of function 
'sqlite3_config'
cache_sqlite.c:388: error: 'SQLITE_CONFIG_MULTITHREAD' undeclared (first 
use in this function)
make[1]: *** [cache_sqlite.lo] Error 1
make[1]: Leaving directory `/u/software/mapserver-git/mapcache/lib'
make: *** [all] Error 2


Configured like this:

woodbri at mappy:/u/software/mapserver-git/mapcache$ ./configure 
--enable-module
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
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 a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to 
x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain 
format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... no
checking for mawk... mawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... 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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports 
shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for ANSI C header files... (cached) yes
checking for symlink... yes
checking for apxs2... /usr/bin/apxs2
checking for apachectl utility... /usr/sbin/apache2ctl
checking whether to enable FASTCGI... not requested. use 
--with-fastcgi=dir to enable
checking for apr-config in default locations... using 
/usr/bin/apr-config, use --with-apr-config=/path/to/apr-(1-)config to modify
checking for apu-config in default locations... using 
/usr/bin/apu-config, use --with-apu-config=/path/to/apu-(1-)config to modify
checking for apr_memcache_hash in -laprutil-1... no
configure: WARNING: supplied apr-util does not contain memcache 
functions. memcache cache backend disabled
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking for sqlite3_open_v2 in -lsqlite3... yes
using libsqlite3 from system libs.
checking for pkg-config... /usr/bin/pkg-config
checking for Pixman... searching default locations
checking for pixman pkg-config entry... found
checking if pixman version is >= 0.13.2... 0.10.0
configure: WARNING: pixman support has been disabled because your 
version is too old.
                       full WMS will use the internal (usually slower) 
image merging functions
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 JPEG is installed...
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 TIFF is installed...
checking for TIFFReadScanline in -ltiff... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
using libtiff from system libs.
checking for pcre library inclusion... in system locations
checking for pcre_compile in -lpcre... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking for gdal-config... /usr/local/bin/gdal-config
checking for geos-config... /usr/bin/geos-config
checking for GEOSPreparedIntersects in -lgeos_c... yes
checking for db.h... 4.6.21
checking for library containing Berkeley DB 4.6.21... -ldb
checking in /usr/local/BerkeleyDB.4.5/include for db.h... yes
checking in /usr/local/BerkeleyDB.4.5/lib for library -ldb... 4.5.20
configure: using Berkeley DB version 4.6.21
checking for curl-config... /usr/bin/curl-config
configure: creating ./config.status
config.status: creating Makefile.inc
config.status: creating nginx/config
config.status: creating lib/Makefile
config.status: creating apache/Makefile
config.status: creating util/Makefile
config.status: creating cgi/Makefile
config.status: executing libtool commands

Have SQLite versions:

libsqlite3-0/lenny uptodate 3.5.9-6
libsqlite3-dev/lenny uptodate 3.5.9-6


Any ideas?
I can open a ticket if you want it.

Thanks,
   -Steve


More information about the mapserver-dev mailing list