Bug#683075: spatialite in wheezy FTBFS

Evgeni Golov evgeni at debian.org
Sun Nov 25 12:40:11 UTC 2012


Hi,

On Sat, Jul 28, 2012 at 02:07:17PM +0100, peter green wrote:

> While working on a derivative distribution I discovered that
> spatialite from testing FTBFS with the following error
> 
> checking for geos_c.h... yes
> configure: error: 'libgeos_c' is required but it doesn't seems to be
> installed on this system.
> checking for library containing GEOSTopologyPreserveSimplify... no
> dh_auto_configure: ./configure --build=arm-linux-gnueabihf
> --prefix=/usr --includedir=${prefix}/include
> --mandir=${prefix}/share/man --infodir=${prefix}/share/info
> --sysconfdir=/etc --localstatedir=/var
> --libexecdir=${prefix}/lib/spatialite --disable-maintainer-mode
> --disable-dependency-tracking --enable-geos --enable-proj
> --disable-geosadvanced returned exit code 1
> make[1]: *** [override_dh_auto_configure] Error 2
> make[1]: Leaving directory `/«PKGBUILDDIR»'
> make: *** [build-arch] Error 2
> dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
> 
> This was initially discovered on raspbian but I was able to
> reproduce it locally on debian wheezy amd64.

The attached patch is also an fix for that issue.

> I discovered that this failure was due to libgeos.so moving from
> libgeos-dev to libgeos++-dev so I added
> libgeos++-dev to build-depends, unfortunately after doing so the
> build failed with

That sadly holds :/

> libtool: compile: gcc -DPACKAGE_NAME=\"libspatialite\"
> -DPACKAGE_TARNAME=\"libspatialite\" -DPACKAGE_VERSION=\"3.0.0-beta\"
> "-DPACKAGE_STRING=\"libspatialite 3.0.0-beta\""
> -DPACKAGE_BUGREPORT=\"a.furieri at lqt.it\" -DPACKAGE_URL=\"\"
> -DPACKAGE=\"libspatialite\" -DVERSION=\"3.0.0-beta\"
> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
> -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STDIO_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_MATH_H=1 -DHAVE_FLOAT_H=1
> -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDDEF_H=1
> -DHAVE_STDINT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_SQLITE3_H=1 -DHAVE_SQLITE3EXT_H=1 -DHAVE_DLFCN_H=1
> -DLT_OBJDIR=\".libs/\" -DTIME_WITH_SYS_TIME=1
> -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1
> -DHAVE_STRFTIME=1 -DHAVE_MEMSET=1 -DHAVE_STRCASECMP=1
> -DHAVE_STRERROR=1 -DHAVE_STRNCASECMP=1 -DHAVE_STRSTR=1
> -DHAVE_FDATASYNC=1 -DHAVE_FTRUNCATE=1 -DHAVE_GETCWD=1
> -DHAVE_GETTIMEOFDAY=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MEMMOVE=1
> -DHAVE_STRERROR=1 -DHAVE_LIBSQLITE3=1 -DHAVE_LIBSQLITE3=1
> -DHAVE_PROJ_API_H=1 -DHAVE_GEOS_C_H=1 -DHAVE_ICONV_H=1
> -DHAVE_FREEXL_H=1 -I. -g -O2 -I../../src/headers -D_LARGE_FILE=1
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -DNDEBUG=1 -g -O2 -c
> virtualXL.c -fPIC -DPIC -o .libs/virtualXL.o
> virtualXL.c: In function ‘vXL_create’:
> virtualXL.c:273:9: warning: passing argument 4 of
> ‘freexl_get_cell_value’ from incompatible pointer type [enabled by
> default]
> In file included from virtualXL.c:62:0:
> /usr/include/freexl.h:573:24: note: expected ‘struct
> FreeXL_CellValue *’ but argument is of type ‘unsigned char *’
> virtualXL.c:273:9: error: too many arguments to function
> ‘freexl_get_cell_value’
> In file included from virtualXL.c:62:0:
> /usr/include/freexl.h:573:24: note: declared here
> virtualXL.c: In function ‘vXL_eval_constraints’:
> virtualXL.c:548:10: warning: passing argument 4 of
> ‘freexl_get_cell_value’ from incompatible pointer type [enabled by
> default]
> In file included from virtualXL.c:62:0:
> /usr/include/freexl.h:573:24: note: expected ‘struct
> FreeXL_CellValue *’ but argument is of type ‘unsigned char *’
> virtualXL.c:548:10: error: too many arguments to function
> ‘freexl_get_cell_value’
> In file included from virtualXL.c:62:0:
> /usr/include/freexl.h:573:24: note: declared here
> virtualXL.c: In function ‘vXL_column’:
> virtualXL.c:818:11: warning: passing argument 4 of
> ‘freexl_get_cell_value’ from incompatible pointer type [enabled by
> default]
> In file included from virtualXL.c:62:0:
> /usr/include/freexl.h:573:24: note: expected ‘struct
> FreeXL_CellValue *’ but argument is of type ‘unsigned char *’
> virtualXL.c:818:11: error: too many arguments to function
> ‘freexl_get_cell_value’
> In file included from virtualXL.c:62:0:
> /usr/include/freexl.h:573:24: note: declared here
> make[4]: *** [virtualXL.lo] Error 1
> 
> This bug does not affect the version in sid (unfortunately another
> rc bug does :( ).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 05-fix_libgeos_search.patch
Type: text/x-diff
Size: 3902 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20121125/da35b968/attachment.patch>


More information about the Pkg-grass-devel mailing list