Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 31139

Summary: subversion-0.31.0 fails to compile: "undefined reference to `db_create_4000'"
Product: Gentoo Linux Reporter: Martin Ehmsen (RETIRED) <ehmsen>
Component: [OLD] DevelopmentAssignee: Paul de Vrieze (RETIRED) <pauldv>
Status: VERIFIED TEST-REQUEST    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin Ehmsen (RETIRED) gentoo-dev 2003-10-14 11:44:21 UTC
If I try to emerge subversion-0.31.0 I get the following error message:

cd subversion/mod_authz_svn && /bin/sh
/var/tmp/portage/subversion-0.31.0/work/subversion-0.31.0/libtool --silent
--mode=link gcc  -mcpu=athlon-xp -O3 -pipe   -pthread  -DNEON_ZLIB -DNEON_SSL 
-L/usr/lib  -rpath /usr/lib/apache2 -avoid-version -module -o mod_authz_svn.la
mod_authz_svn.lo ../../subversion/libsvn_subr/libsvn_subr-1.la 
cd subversion/tests/libsvn_diff && /bin/sh
/var/tmp/portage/subversion-0.31.0/work/subversion-0.31.0/libtool --silent
--mode=link gcc  -mcpu=athlon-xp -O3 -pipe   -pthread  -DNEON_ZLIB -DNEON_SSL 
-L/usr/lib  -rpath /usr/lib -o diff-test diff-test.o
../../../subversion/libsvn_diff/libsvn_diff-1.la
../../../subversion/libsvn_subr/libsvn_subr-1.la /usr/lib/libaprutil-0.la -lgdbm
-ldb -lexpat /usr/lib/libapr-0.la -lrt -lm -lcrypt -lnsl  -ldl 
cd subversion/tests/libsvn_diff && /bin/sh
/var/tmp/portage/subversion-0.31.0/work/subversion-0.31.0/libtool --silent
--mode=link gcc  -mcpu=athlon-xp -O3 -pipe   -pthread  -DNEON_ZLIB -DNEON_SSL 
-L/usr/lib  -rpath /usr/lib -o diff3-test diff3-test.o
../../../subversion/libsvn_diff/libsvn_diff-1.la
../../../subversion/libsvn_subr/libsvn_subr-1.la /usr/lib/libaprutil-0.la -lgdbm
-ldb -lexpat /usr/lib/libapr-0.la -lrt -lm -lcrypt -lnsl  -ldl 
/usr/lib/libaprutil-0.so: undefined reference to `db_create_4000'
/usr/lib/libaprutil-0.so: undefined reference to `db_strerror_4000'
collect2: ld returned 1 exit status
make: *** [subversion/tests/libsvn_diff/diff-test] Error 1
make: *** Waiting for unfinished jobs....
/usr/lib/libaprutil-0.so: undefined reference to `db_create_4000'
/usr/lib/libaprutil-0.so: undefined reference to `db_strerror_4000'
collect2: ld returned 1 exit status
make: *** [subversion/tests/libsvn_diff/diff3-test] Error 1

!!! ERROR: dev-util/subversion-0.31.0 failed.
!!! Function src_compile, Line 110, Exitcode 2
!!! make of subversion failed

I googled a little and found the following:
http://www.contactor.se/~dast/svn/archive-2003-01/0308.shtml
http://www.contactor.se/~dast/svn/archive-2003-01/0310.shtml
I have the following versions of sys-libs/db installed:
sys-libs/db-1.85-r1
sys-libs/db-3.2.9-r9 *
sys-libs/db-4.1.25_p1-r1 *
sys-libs/db-4.0.14-r2 *
It seems that it has something to do with versions that get mixed...

Reproducible: Always
Steps to Reproduce:




Portage 2.0.49-r13 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.22)
=================================================================
System uname: 2.4.22 i686 AMD Athlon(TM) XP1900+
Gentoo Base System version 1.4.3.10p1
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs notitles"
GENTOO_MIRRORS="http://gentoo.linux.no/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm
berkdb slang readline tetex svga tcltk java guile postgres X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis gtk qt motif opengl mozilla cdr
apache2 doc emacs fbcon flash gtk2 maildir mbox tiff xml -gnome -arts -kde"
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-14 14:25:27 UTC
Ok, this is due to the fact that apr was compiled with db-4.0 and you are
now probably using db-4.1. Try to rebuild apache2 and try again.
Comment 2 Martin Ehmsen (RETIRED) gentoo-dev 2003-10-14 23:31:42 UTC
A rebuild fixed it...
Sorry for not trying that before reporting.
Comment 3 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-15 01:45:52 UTC
No problem, this at least reminds us that someday portage should be able
to figure the rebuild requirement out itself.