[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

sqlite link errors

From: Hyrum K. Wright <hyrum_at_hyrumwright.org>
Date: Thu, 23 Jul 2009 09:33:51 -0700

Some of you may have noticed the now-failing tests on the x64-ubuntu
buildbot. I recently update the local sqlite version on that box, and
now Subversion is not loading the correct library. Here's the
relevant information:

config.log:
...
   $ ./configure --enable-javahl --enable-maintainer-mode --with-apxs=/
home/hwright/dev/svn-buildbot/usr/bin/apxs --without-berkeley-db --
with-apr=/usr/local/apr --with-jdk=/usr/lib/jvm/java-6-sun-1.6.0.14 --
with-junit=/usr/share/java/junit.jar --with-apr-util=/usr/local/apr --
with-sqlite=/usr/local --enable-shared --with-serf=/usr/local/serf/
...

hwright_at_orac:~/dev/svn-trunk$ make
/usr/local/apr/build-1/libtool --tag=CC --silent --mode=compile gcc -
DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -Wold-style-definition -Wpointer-
arith -Wwrite-strings -Wshadow -ansi -Wall -Wformat=2 -Wunused -
Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-
declarations -Wno-multichar -Wredundant-decls -Wnested-externs -
Wunreachable-code -Winline -Wno-long-long -DAPR_POOL_DEBUG -g -pthread
-Werror=implicit-function-declaration -DSVN_DEBUG -DAP_DEBUG -I./
subversion/include -I./subversion -I/usr/local/apr/include/apr-1 -I/
usr/local/apr/include/apr-1 -I/usr/local/serf//include/serf-0 -I/usr/
local/include -o subversion/libsvn_subr/sqlite.lo -c subversion/
libsvn_subr/sqlite.c
cd subversion/libsvn_subr && /usr/local/apr/build-1/libtool --tag=CC --
silent --mode=link gcc -Wold-style-definition -Wpointer-arith -Wwrite-
strings -Wshadow -ansi -Wall -Wformat=2 -Wunused -Waggregate-return -
Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-
multichar -Wredundant-decls -Wnested-externs -Wunreachable-code -
Winline -Wno-long-long -DAPR_POOL_DEBUG -g -pthread -Werror=implicit-
function-declaration -DSVN_DEBUG -DAP_DEBUG -rpath /usr/local/lib -
o libsvn_subr-1.la atomic.lo auth.lo cache-inprocess.lo cache-
memcache.lo cache.lo checksum.lo cmdline.lo compat.lo config.lo
config_auth.lo config_file.lo config_win.lo constructors.lo ctype.lo
date.lo debug.lo deprecated.lo dirent_uri.lo dso.lo error.lo hash.lo
io.lo iter.lo kitchensink.lo lock.lo log.lo macos_keychain.lo md5.lo
mergeinfo.lo nls.lo opt.lo patch.lo path.lo pool.lo prompt.lo
properties.lo quoprint.lo sha1.lo simple_providers.lo skel.lo sorts.lo
sqlite.lo ssl_client_cert_providers.lo ssl_client_cert_pw_providers.lo
ssl_server_trust_providers.lo stream.lo subst.lo svn_base64.lo
svn_string.lo target.lo time.lo user.lo username_providers.lo utf.lo
utf_validate.lo validate.lo version.lo win32_crashrpt.lo
win32_crypto.lo win32_xlate.lo xml.lo -L/usr/local/apr/lib -laprutil-1
-L/usr/local/apr/lib -lapr-1 -lexpat -lz -L/usr/local/lib -lsqlite3
...
cd subversion/svn && /usr/local/apr/build-1/libtool --tag=CC --silent
--mode=link gcc -Wold-style-definition -Wpointer-arith -Wwrite-
strings -Wshadow -ansi -Wall -Wformat=2 -Wunused -Waggregate-return -
Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-
multichar -Wredundant-decls -Wnested-externs -Wunreachable-code -
Winline -Wno-long-long -DAPR_POOL_DEBUG -g -pthread -Werror=implicit-
function-declaration -DSVN_DEBUG -DAP_DEBUG -rpath /usr/local/lib -
o svn add-cmd.lo blame-cmd.lo cat-cmd.lo changelist-cmd.lo checkout-
cmd.lo cleanup-cmd.lo commit-cmd.lo conflict-callbacks.lo copy-cmd.lo
delete-cmd.lo diff-cmd.lo export-cmd.lo help-cmd.lo import-cmd.lo info-
cmd.lo list-cmd.lo lock-cmd.lo log-cmd.lo main.lo merge-cmd.lo
mergeinfo-cmd.lo mkdir-cmd.lo move-cmd.lo notify.lo patch-cmd.lo
propdel-cmd.lo propedit-cmd.lo propget-cmd.lo proplist-cmd.lo props.lo
propset-cmd.lo resolve-cmd.lo resolved-cmd.lo revert-cmd.lo status-
cmd.lo status.lo switch-cmd.lo tree-conflicts.lo unlock-cmd.lo update-
cmd.lo upgrade-cmd.lo util.lo ../../subversion/libsvn_client/
libsvn_client-1.la ../../subversion/libsvn_wc/libsvn_wc-1.la ../../
subversion/libsvn_ra/libsvn_ra-1.la ../../subversion/libsvn_delta/
libsvn_delta-1.la ../../subversion/libsvn_diff/libsvn_diff-1.la ../../
subversion/libsvn_subr/libsvn_subr-1.la -L/usr/local/apr/lib -
laprutil-1 -L/usr/local/apr/lib -lapr-1
...

hwright_at_orac:~/dev/svn-trunk$ ldd subversion/svn/.libs/svn
        linux-vdso.so.1 => (0x00007ffff0dfe000)
        libsvn_client-1.so.0 => not found
        libsvn_wc-1.so.0 => not found
        libsvn_ra-1.so.0 => not found
        libsvn_diff-1.so.0 => not found
        libsvn_ra_local-1.so.0 => not found
        libsvn_repos-1.so.0 => not found
        libsvn_fs-1.so.0 => not found
        libsvn_fs_fs-1.so.0 => not found
        libsvn_fs_util-1.so.0 => not found
        libsvn_ra_svn-1.so.0 => not found
        libsvn_ra_serf-1.so.0 => not found
        libserf-0.so.0 => /usr/local/serf/lib/libserf-0.so.0
(0x00007f1ee88fa000)
        libm.so.6 => /lib/libm.so.6 (0x00007f1ee8675000)
        libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x00007f1ee8426000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x00007f1ee809d000)
        libsvn_delta-1.so.0 => not found
        libsvn_subr-1.so.0 => not found
        libexpat.so.0 => /usr/local/apr/lib/libexpat.so.0 (0x00007f1ee7e7c000)
        libz.so.1 => /lib/libz.so.1 (0x00007f1ee7c64000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007f1ee79dd000)
        libaprutil-1.so.0 => /usr/local/apr/lib/libaprutil-1.so.0
(0x00007f1ee77bb000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f1ee7591000)
        libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0 (0x00007f1ee7364000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x00007f1ee715f000)
        librt.so.1 => /lib/librt.so.1 (0x00007f1ee6f57000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007f1ee6d1f000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f1ee6b03000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f1ee68ff000)
        libc.so.6 => /lib/libc.so.6 (0x00007f1ee658d000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f1ee8b0b000)

hwright_at_orac:~/dev/svn-trunk$ ldd subversion/libsvn_subr/.libs/
libsvn_subr-1.so
        linux-vdso.so.1 => (0x00007fff94dfe000)
        libaprutil-1.so.0 => /usr/local/apr/lib/libaprutil-1.so.0
(0x00007ffc8c7d2000)
        libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0 (0x00007ffc8c5a5000)
        libexpat.so.0 => /usr/local/apr/lib/libexpat.so.0 (0x00007ffc8c383000)
        libz.so.1 => /lib/libz.so.1 (0x00007ffc8c152000)
        libsqlite3.so.0 => /usr/local/lib/libsqlite3.so.0 (0x00007ffc8bedb000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007ffc8bcbe000)
        libc.so.6 => /lib/libc.so.6 (0x00007ffc8b94c000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007ffc8b722000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x00007ffc8b51c000)
        librt.so.1 => /lib/librt.so.1 (0x00007ffc8b314000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007ffc8b0dc000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007ffc8aed7000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ffc8cc5e000)

The errors produced by the test:
hwright_at_orac:~/dev/svn-trunk$ subversion/tests/libsvn_wc/db-test 1
subversion/tests/libsvn_wc/db-test.c:372: (apr_err=200030)
subversion/tests/libsvn_wc/db-test.c:317: (apr_err=200030)
subversion/libsvn_subr/sqlite.c:782: (apr_err=200030)
subversion/libsvn_subr/sqlite.c:591: (apr_err=200030)
svn_tests: SQLite compiled for 3.6.16, but running with 3.6.10
FAIL: lt-db-test 1: get information from wc.db

So, I point configure at the library in /usr/local/lib, and it looks
like libsvn_subr finds that version, but somewhere the linker gets
confused and svn links against the system version. Any hints?

-Hyrum

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2374894
Received on 2009-07-23 18:34:11 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.