Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219937 - dev-util/subversion-1.5.0_rc4 fails to build, two problems w/ sys-libs/db (berkdb)
Summary: dev-util/subversion-1.5.0_rc4 fails to build, two problems w/ sys-libs/db (be...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-01 14:59 UTC by Colin Bennett
Modified: 2008-05-28 08:01 UTC (History)
0 users

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


Attachments
use=-berkdb :: emerge log (svn_noberkdb.log,176.36 KB, text/plain)
2008-05-01 15:06 UTC, Colin Bennett
Details
use=-berkdb :: emerge environment (svn_noberkdb.environment,212.65 KB, text/plain)
2008-05-01 15:07 UTC, Colin Bennett
Details
use=+berkdb :: emerge log (svn_berkdb.log,9.55 KB, text/plain)
2008-05-01 15:07 UTC, Colin Bennett
Details
use=+berkdb :: emerge environment (svn_berkdb.environment,212.66 KB, text/plain)
2008-05-01 15:07 UTC, Colin Bennett
Details
use=+berkdb :: config.log (svn_berkdb_config.log,44.65 KB, text/plain)
2008-05-01 15:08 UTC, Colin Bennett
Details
emerge --info (emerge.info,4.52 KB, text/plain)
2008-05-01 15:09 UTC, Colin Bennett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Bennett 2008-05-01 14:59:27 UTC
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.
Comment 1 Colin Bennett 2008-05-01 15:06:21 UTC
Created attachment 151522 [details]
use=-berkdb :: emerge log
Comment 2 Colin Bennett 2008-05-01 15:07:02 UTC
Created attachment 151524 [details]
use=-berkdb :: emerge environment
Comment 3 Colin Bennett 2008-05-01 15:07:35 UTC
Created attachment 151526 [details]
use=+berkdb :: emerge log
Comment 4 Colin Bennett 2008-05-01 15:07:54 UTC
Created attachment 151528 [details]
use=+berkdb :: emerge environment
Comment 5 Colin Bennett 2008-05-01 15:08:47 UTC
Created attachment 151530 [details]
use=+berkdb :: config.log
Comment 6 Colin Bennett 2008-05-01 15:09:02 UTC
Created attachment 151532 [details]
emerge --info
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-05-02 08:41:49 UTC
Reinstall APR-util:
emerge -1 apr-util
Comment 8 Colin Bennett 2008-05-02 13:41:57 UTC
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.
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-05-03 19:59:07 UTC
(In reply to comment #8)
> the Subversion build tried to link with libdb even when emerged with
> USE=-berkdb

I can't reproduce it.
Comment 10 fernseh.mann 2008-05-28 08:01:02 UTC
(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).