Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 309721 - dev-vcs/subversion-1.6.9 svnadmin errors with wrong sys-libs/db version
Summary: dev-vcs/subversion-1.6.9 svnadmin errors with wrong sys-libs/db version
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-16 09:04 UTC by Karl H
Modified: 2011-08-19 10:52 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,282.87 KB, text/plain)
2010-03-18 08:19 UTC, Karl H
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl H 2010-03-16 09:04:26 UTC
$ svnadmin help
svnadmin: Bad database version: compiled with 4.6.21, running against 4.7.25


ldd /usr/bin/svnadmin
        linux-gate.so.1 =>  (0xffffe000)
        libsvn_repos-1.so.0 => /usr/lib/libsvn_repos-1.so.0 (0xb786f000)
        libsvn_fs-1.so.0 => /usr/lib/libsvn_fs-1.so.0 (0xb7867000)
        libsvn_fs_fs-1.so.0 => /usr/lib/libsvn_fs_fs-1.so.0 (0xb7841000)
        libsvn_fs_base-1.so.0 => /usr/lib/libsvn_fs_base-1.so.0 (0xb7815000)
        libdb-4.7.so => /usr/lib/libdb-4.7.so (0xb76ba000)
        libsvn_delta-1.so.0 => /usr/lib/libsvn_delta-1.so.0 (0xb76ae000)
        libsvn_fs_util-1.so.0 => /usr/lib/libsvn_fs_util-1.so.0 (0xb76ab000)
        libsvn_subr-1.so.0 => /usr/lib/libsvn_subr-1.so.0 (0xb7663000)
        libz.so.1 => /lib/libz.so.1 (0xb7619000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb7593000)
        libaprutil-1.so.0 => /usr/lib/libaprutil-1.so.0 (0xb7572000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb754b000)
        libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0xb7522000)
        libuuid.so.1 => /lib/libuuid.so.1 (0xb751d000)
        librt.so.1 => /lib/librt.so.1 (0xb7514000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb74e2000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb74c9000)
        libdl.so.2 => /lib/libdl.so.2 (0xb74c4000)
        libc.so.6 => /lib/libc.so.6 (0xb737c000)
        /lib/ld-linux.so.2 (0xb7898000)


When compiling you see the correct -ldb-4.7

cd subversion/libsvn_fs_base && /bin/sh /var/tmp/portage/dev-util/subversion-1.6.9/work/subversion-1.6.9/libtool --tag=CC --silent --mode=link i686-pc-linux-gnu-gcc  -O2 -march=core2 -pipe -g   -pthread -D_LARGEFILE64_SOURCE -DNE_LFS     -Wl,-O1    -L/usr/lib -L/usr/lib/qt4   -L/usr/lib  -rpath /usr/lib -o libsvn_fs_base-1.la  bdb/bdb-err.lo bdb/bdb_compat.lo bdb/changes-table.lo bdb/checksum-reps-table.lo bdb/copies-table.lo bdb/dbt.lo bdb/env.lo bdb/lock-tokens-table.lo bdb/locks-table.lo bdb/miscellaneous-table.lo bdb/node-origins-table.lo bdb/nodes-table.lo bdb/reps-table.lo bdb/rev-table.lo bdb/strings-table.lo bdb/txn-table.lo bdb/uuids-table.lo dag.lo err.lo fs.lo id.lo key-gen.lo lock.lo node-rev.lo reps-strings.lo revs-txns.lo trail.lo tree.lo util/fs_skels.lo uuid.lo ../../subversion/libsvn_delta/libsvn_delta-1.la ../../subversion/libsvn_subr/libsvn_subr-1.la /usr/lib/libaprutil-1.la /usr/lib/libapr-1.la -ldb-4.7 ../../subversion/libsvn_fs_util/libsvn_fs_util-1.la 



Reproducible: Sometimes

Steps to Reproduce:
emerge dev-util/subversion-1.6.9

This happens on two different x86 boxes I have, but not on the AMD64/x86_64
Comment 1 Karl H 2010-03-16 09:10:04 UTC
note:  svn [update | add | commit | cp | etc ] all work fine, its only the svnadmin program with problems

Looking a the compile it looks like the include paths are wrong. 
-I/usr/include/db4.6 and -I/usr/include/db4.7 are both in the include paths.



i686-pc-linux-gnu-gcc -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DQT_SHARED  -O2 -march=core2 -pipe -g   -pthread -D_LARGEFILE64_SOURCE -DNE_LFS     -I./subversion/include -I./subversion -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db4.6 -I/usr/include/db4.7  -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtGui   -I/usr/include -I/usr/include/neon -I/usr/include  -o subversion/svnadmin/main.o -c subversion/svnadmin/main.c
Comment 2 Karl H 2010-03-16 09:13:28 UTC
# emerge --info
Portage 2.2_rc67 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32.8 i686)
=================================================================
System uname: Linux-2.6.32.8-i686-Intel-R-_Core-TM-2_CPU_T5500_@_1.66GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 15 Mar 2010 22:30:08 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.5.4-r3, 2.6.4-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r4
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       3.4.6-r2, 4.1.2, 4.2.4-r1, 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -g"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.rnl.ist.utl.pt/pub/gentoo/gentoo-distfiles/ http://darkstar.ist.utl.pt/gentoo/ http://ftp.dei.uc.pt/pub/linux/gentoo/ http://cesium.di.uminho.pt/pub/gentoo/ http://gentoo-euetib.upc.es/mirror/gentoo/ http://ftp.udc.es/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ "
LC_ALL="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en es en_US en_GB es_ES"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/embedded_gentoo_portage /usr/local/portage/karl_packages /usr/local/portage/layman/trauma"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X X509 a52 aac acl acpi addbookmarks alias alsa amr amrr ao apache2 aspnet aspnet2 aspnetedit async atm audiofile autoreplace bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdb cdda cddb cdparanoia cdr cgi cli connectionstatus consolekit contactnotes cpudetection cracklib crypt css ctype cups cxx daap dbus dell dhcp dns dri dts dv dvb dvd dvdr dvdread eds embedded emboss encode epydoc evo exif extensions extraengine fam fame ffmpeg firefox flac flash foomaticdb fortran fts3 fuse gd gdbm gif gimp gimpprint git glade glib glitz gnuplot gnutls gphoto2 gpm graphviz gstreamer gtk h224 h323 hal highlight history howl iconv ieee1394 ifp image imagemagick imap imlib imq inherit-graph injection innodb inotify intl ipod ipsec iptv ipv6 irc jabber java javascript jingle jpeg jpeg2k kcal kde kipi kpathsea kqemu ladspa lcms ldap libnotify libsamplerate libv4l2 lightning live lua lzma lzo mad madwifi matroska mdb mdnsresponder-compat meanwhile melt mikmod mjpeg mmap mmx mng mod modplug modules mono mozbranding mozdevelop mp3 mp4 mp4live mpeg mpeg2 mplayer mschap msn mtp mudflap musepack music musicbrainz mysql nagios-dns nagios-ping nagios-ssh ncurses neXt netmeeting network nls nowlistening nptl nptlonly nsplugin nvidia oav office ogg openexr opengl openmp oscar p2p pam patented pcap pcapnav pch pcmcia pcre pdf perl php pipechan plotutils plugin plugins png postscript povray ppds pppd prediction pregen python qq qt3support qt4 quicktime rar rdesktop readline realmedia reflection rtsp ruby samba sametime sasl sdl secure-delete semantic-desktop sensord serial session sftp shout sip skype slp smbclient smp sms smtp sndfile snmp spamassassin spell spl sql sqlite sqlite3 sse sse2 sse3 ssl startup-notification static-libs statistics stream subtitles subversion svg swat sysfs syslog tcl tcpd tetex texteffect theora threads thunar tiff tk transcode translator truetype type1 uclibc-compat unicode upnp usb utempter v4l v4l2 valgrind vcd video videos visualization vnc vncviewer vorbis vorbis-psy wav webkit webpresence wifi win32codecs winpopup wireshark wma wmf wxwindows x264 x86 xanim xcb xcomposite xforms xine xinerama xml xorg xosd xprint xrandr xrender xscreensaver xulrunner xv xvid xvmc yahoo zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="*" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics vmmouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en es en_US en_GB es_ES" QEMU_SOFTMMU_TARGETS="arm i386 mips mips64 mips64el mipsel ppc ppc64 x86_64" QEMU_USER_TARGETS="alpha arm armeb i386 mips mips64 mips64el mipsel ppc ppc64 ppc64abi32 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vga vmware" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Rafał Mużyło 2010-03-17 23:13:53 UTC
Attach build log from the build, where both db were installed
and subversion linked to 4.6.
Comment 4 Karl H 2010-03-18 08:19:51 UTC
Created attachment 224077 [details]
build.log
Comment 5 Rafał Mużyło 2010-03-20 16:35:14 UTC
To take a guess: what's the output of 'ldd /usr/lib/apr-util-1/apr_dbm_db.so' ?
Comment 6 Priit Laes (IRC: plaes) 2010-03-25 09:34:11 UTC
Also bit by this issue on amd64 stable.

(In reply to comment #5)
> To take a guess: what's the output of 'ldd /usr/lib/apr-util-1/apr_dbm_db.so' ?
> 

# ldd /usr/lib/apr-util-1/apr_dbm_db.so
        linux-vdso.so.1 =>  (0x00007fff291ff000)
        libdb-4.6.so => /usr/lib/libdb-4.6.so (0x00007f8920bba000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f892099e000)
        libc.so.6 => /lib/libc.so.6 (0x00007f8920643000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f8921101000)
Comment 7 Rafał Mużyło 2010-03-25 16:06:03 UTC
I'd say that the problem lies in the libaprutil-1.so.0 check
- instead it should check if apr-util was built with berkdb use
and then run that check on apr_dbm_db.so
Comment 8 Henrik Wennergren 2010-04-01 19:09:34 UTC
A temporary fix that worked for me:
env SVN_BDB_VERSION=4.6 emerge subversion
Comment 9 Tony Vroon (RETIRED) gentoo-dev 2011-08-19 10:52:32 UTC
I see logic in the ebuild to at least partially deal with this; please open a new bug against 1.6.17 or 1.6.17-r2 if this is still an issue. My apologies for the lack of response on this report.