I am unable to install dev-util/subversion-1.5.0_rc4. First, I tried to emerge it with the berkdb USE flag set, but the subversion configure script said it couldn't find db4.0.13, though I have sys-libs/db-4.5.20_p2 installed. Next, I tried to emerge subversion without the berkdb USE flag set. This time the configure step succeeded and it tried to build it, but after a few minutes, there was a link error when an attempt was made to link with -ldb. Reproducible: Always Steps to Reproduce: 1a. USE=berkdb emerge subversion 1b. USE=-berkdb emerge subversion Actual Results: Failure for first part (berkdb USE flag set) -------------------------------------------- checking for availability of Berkeley DB... no configure: error: Berkeley DB 4.0.14 wasn't found. !!! Please attach the following file when seeking support: !!! /var/tmp/portage/dev-util/subversion-1.5.0_rc4/work/subversion-1.5.0-rc4/config.log * * ERROR: dev-util/subversion-1.5.0_rc4 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 5668: Called econf '--with-swig' '--with-apxs=/usr/sbin/apxs2' '--with-berkeley-db' '--enable-javahl' '--with-jdk=/opt/sun-jdk-1.6.0.06' '--enable-nls' '--with-sasl' '--with-neon=/usr' '--without-serf' '--with-apr=/usr/bin/apr-1-config' '--with-apr-util=/usr/bin/apu-1-config' '--disable-experimental-libtool' '--without-jikes' '--without-junit' '--disable-mod-activation' '--enable-runtime-module-search' * ebuild.sh, line 513: Called die * The specific snippet of code: * die "econf failed" Failure for second part (berkdb USE flag unset) ----------------------------------------------- cd subversion/tests/libsvn_subr && /bin/sh /var/tmp/portage/dev-util/subversion-1.5.0_rc4/work/subversion-1.5.0-rc4/libtool --tag=CC --silent --mode=link i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fno-strict-aliasing -pthread -D_LARGEFILE64_SOURCE -DNE_LFS -L/usr/lib -L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lssl -lcrypto -L/usr/local/lib -rpath /usr/lib -o target-test target-test.o ../../../subversion/libsvn_subr/libsvn_subr-1.la /usr/lib/libaprutil-1.la /usr/lib/libapr-1.la /usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldb collect2: ld returned 1 exit status make: *** [subversion/tests/libsvn_delta/svndiff-test] Error 1 make: *** Waiting for unfinished jobs.... /usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldb collect2: ld returned 1 exit status make: *** [subversion/tests/libsvn_subr/target-test] Error 1 * * ERROR: dev-util/subversion-1.5.0_rc4 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 5670: Called die * The specific snippet of code: * emake local-all || die "Building of core Subversion failed"; * The die message: * Building of core Subversion failed Expected Results: Subversion should emerge successfully both with berkdb set and unset. However, neither case works.
Created attachment 151522 [details] use=-berkdb :: emerge log
Created attachment 151524 [details] use=-berkdb :: emerge environment
Created attachment 151526 [details] use=+berkdb :: emerge log
Created attachment 151528 [details] use=+berkdb :: emerge environment
Created attachment 151530 [details] use=+berkdb :: config.log
Created attachment 151532 [details] emerge --info
Reinstall APR-util: emerge -1 apr-util
Ok, by re-emerging sys-libs/db-4.5.20_p2, it fixed things so subversion builds. I still think it's wrong that the Subversion build tried to link with libdb even when emerged with USE=-berkdb, but at least I have things working now.
(In reply to comment #8) > the Subversion build tried to link with libdb even when emerged with > USE=-berkdb I can't reproduce it.
(In reply to comment #7) > Reinstall APR-util: > emerge -1 apr-util > "emerge -1 apr-util" made subversion install (though I don't understand why svn-client needs a db at all).