Ticket Hash: | 69946f68772215ba7716fbc7bd204efb429dc7c7 | |||
Title: | Patch to fix: undefined reference to symbol 'sqlite3_errmsg' | |||
Status: | Closed | Type: | Code_Defect | |
Severity: | Severe | Priority: | Immediate | |
Subsystem: | Resolution: | Fixed | ||
Last Modified: | 2023-07-25 11:00:07 | |||
Version Found In: | 5.1.0-rc0 | |||
User Comments: | ||||
anonymous added on 2023-07-25 04:19:29:
Tests fails to build on Debian unstable: libtool: link: gcc -I./../src/headers -I. -g -O2 "-ffile-prefix-map=/build/spatialite-5.1.0~rc0=." -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/check_init check_init.o -L../src -lpt hread /build/spatialite-5.1.0~rc0/src/.libs/libspatialite.so -lm -lxml2 -lminizip -lrttopo -lfreexl -lproj -lz -L/usr/lib/x86_64-linux-gnu -lgeos_c /usr/bin/ld: check_init.o: undefined reference to symbol 'sqlite3_errmsg' /usr/bin/ld: /lib/x86_64-linux-gnu/libsqlite3.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[5]: *** [Makefile:1575: check_init] Error 1 make[5]: Leaving directory '/build/spatialite-5.1.0~rc0/test'This patch resolves the issue: Description: Link to sqlite3 for sqlite3_errmsg. Author: Bas Couwenberg <sebastic@debian.org> Bug: https://groups.google.com/g/spatialite-users/c/hAJ2SgitN4M/m/N33-4IqNBAAJ --- a/test/Makefile.am +++ b/test/Makefile.am @@ -115,9 +115,9 @@ endif AM_CFLAGS = -I@srcdir@/../src/headers -I@srcdir@ if MINGW -AM_LDFLAGS = -L../src -lspatialite -lm -lxml2 $(GCOV_FLAGS) +AM_LDFLAGS = -L../src -lspatialite -lsqlite3 -lm -lxml2 $(GCOV_FLAGS) else -AM_LDFLAGS = -L../src -lpthread -lspatialite -lm -lxml2 $(GCOV_FLAGS) +AM_LDFLAGS = -L../src -lpthread -lspatialite -lsqlite3 -lm -lxml2 $(GCOV_FLAGS) endif TESTS = $(check_PROGRAMS) sandro added on 2023-07-25 11:00:07: path accepted, will be incorporated in 5.1.0-RC1 |