Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] revdep-rebuild / berkeley db problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
lizardbrain
n00b
n00b


Joined: 03 Jun 2007
Posts: 63
Location: the swamp

PostPosted: Fri Jun 22, 2007 1:35 am    Post subject: [SOLVED] revdep-rebuild / berkeley db problem Reply with quote

I did an emerge --update --deep --newuse world, then an emerge --depclean, which removed syslibs/db-4.3.29-r2 and another package I stupidly didn't write down, so I've forgotten it in all the headaches since.

I ran revdep-rebuild, which chugged along nicely until it got to apr-util-0.9.12, when it quit. Here's the build log:

Code:
>>> Unpacking source...
>>> Unpacking apr-util-0.9.12.tar.gz to /var/tmp/portage/dev-libs/apr-util-0.9.12/work
 * Applying apr-util-0.9.12-linking.patch ...
  [ ok ]
 * Running elibtoolize in: apr-util-0.9.12/xml/expat/conftools
 *   Applying portage-1.5.10.patch ...
 *   Applying max_cmd_len-1.5.20.patch ...
 *   Applying sed-1.5.6.patch ...
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-libs/apr-util-0.9.12/work/apr-util-0.9.12 ...
 * Found db version 4.5
 * Found db version 4.5
include version 4.5
 * econf: updating apr-util-0.9.12/xml/expat/conftools/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating apr-util-0.9.12/xml/expat/conftools/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating apr-util-0.9.12/build/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating apr-util-0.9.12/build/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datadir=/usr/share/apr-util-0 --with-apr=/usr --with-expat=/usr --with-ldap --with-gdbm --with-dbm=db45 --with-berkeley-db=/usr/include/db4.5:/usr/lib64 --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for working mkdir -p... yes
APR-util Version: 0.9.12
checking for chosen layout... apr-util
Applying apr-util hints file rules for x86_64-pc-linux-gnu
checking for APR... yes
  setting CC to "x86_64-pc-linux-gnu-gcc"
  setting CPP to "x86_64-pc-linux-gnu-gcc -E"
  adding "-pthread" to CFLAGS
  setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE"
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for ldap support...
checking for ldap_init in -lldap50... no
checking for ldap_init in -lldapssl41... no
checking for ldap_init in -lldapssl40... no
checking for ldap_init in -lldapssl30... no
checking for ldap_init in -lldapssl20... no
checking for ldap_init in -lldap... yes
  setting APRUTIL_EXPORT_LIBS to "-lldap -llber"
  setting APRUTIL_LIBS to "-lldap -llber"
checking for ldapssl_install_routines in -lldap... no
checking for ldap_start_tls_s in -lldap... yes
checking for ber_init in -llber... yes
checking lber.h usability... yes
checking lber.h presence... yes
checking for lber.h... yes
checking for ldap.h... yes
checking ldap_ssl.h usability... no
checking ldap_ssl.h presence... no
checking for ldap_ssl.h... no
checking gdbm.h usability... yes
checking gdbm.h presence... yes
checking for gdbm.h... yes
checking for gdbm_open in -lgdbm... yes
configure: error: Berkeley DB not found.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/dev-libs/apr-util-0.9.12/work/apr-util-0.9.12/config.log

!!! ERROR: dev-libs/apr-util-0.9.12 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  apr-util-0.9.12.ebuild, line 50:   Called econf '--datadir=/usr/share/apr-util-0' '--with-apr=/usr' '--with-expat=/usr' '--with-ldap' '--with-gdbm' '--with-dbm=db45' '--with-berkeley-db=/usr/include/db4.5:/usr/lib64'
  ebuild.sh, line 578:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-libs/apr-util-0.9.12/temp/build.log'.


Revdep-rebuild also said that a number of broken packages needed either libdb-4.3.so or libgsf-1.so.114. After re-emerging "db" and getting the same message, I finally figured out how to re-emerge db-4.3.29-r2, even though it's now masked. I'm still getting the same message: Berkeley DB not found.

How do I get other packages to find Berkeley DB?

Thanx in advance.


Last edited by lizardbrain on Fri Jun 22, 2007 10:58 am; edited 1 time in total
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Fri Jun 22, 2007 2:12 am    Post subject: Reply with quote

apr-util-0.9.12 and berkdb don't get along right now. A lot of bug reports on this:
dev-libs/apr-util-0.9.12 doesn't compil with berkdb-4.5 (stabilize apr-util-0.9.12-r1)
(the typo is part of the bug report)

As to revdep-rebuild: if a package is broken and needs, say, libdb-4.3.so, you don't rebuild berkdb. That's probably what broke the package in the first place. Instead, you rebuild the broken package. And really, revdep-rebuild would have done that had it not died on apr-util. If you want to specifically rebuild packages that use a certain library then you can do:

Code:

revdep-rebuild --library=libdb-4.3.so

or

revdep-rebuild --library=libgsf-1.so.114


But, as I said, if you fix the apr-util thing, you shouldn't need to do that.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
lizardbrain
n00b
n00b


Joined: 03 Jun 2007
Posts: 63
Location: the swamp

PostPosted: Fri Jun 22, 2007 2:57 am    Post subject: Reply with quote

Quote:
But, as I said, if you fix the apr-util thing, you shouldn't need to do that.


Sorry if I appear slow (it's well past my bedtime here in Maine, and at my age that's not something I can easily ignore), but I'm not sure how I'd fix apr-util, given that it's buggy right now. I'm not being snotty when I ask if there was something in your reply that pointed me in the direction of fixing apr-util; I really can't see it there.

I appreciate the time and effort you took to actually reply to me. Thanx.
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Fri Jun 22, 2007 3:32 am    Post subject: Reply with quote

Well, the solution seems to be to upgrade, so you'd add:
Code:

=dev-libs/apr-util-0.9.12-r1


to /etc/portage/package.keywords. Another option is to disable the USE flag for the current stable version of the package in /etc/portage/package.use:
Code:

=dev-libs/apr-util-0.9.12 -berkdb


Since apr-util is slotted, it's better to restrict things to specific version numbers.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
lizardbrain
n00b
n00b


Joined: 03 Jun 2007
Posts: 63
Location: the swamp

PostPosted: Fri Jun 22, 2007 4:39 am    Post subject: Reply with quote

Thank you very much. As a matter of fact, that's exactly what I did. Eventually.

First I tried revdep-rebuild --library=libdb-4.3.so. That emerged db-4.3.29-r2 yet again. Then it choked on apr-utils again. That's when I added the =dev-libs/apr-util-0.9.12-r1 to my package.keywords file.

After that, I ran revdep-rebuild again, and it emerged all the packages it thought it needed without a problem.

I had just finished and was about to log out of X to see if I had my GUI completely back yet when I checked my email and saw that you had kindly responded to me again.

The problem appears to be solved (pending a restart of X), with your help. Now for my long-delayed bedtime.

Again, thank you.
Back to top
View user's profile Send private message
lizardbrain
n00b
n00b


Joined: 03 Jun 2007
Posts: 63
Location: the swamp

PostPosted: Fri Jun 22, 2007 4:47 am    Post subject: Oops. Reply with quote

Oops. Gnome doesn't seem to have a background or desktop icons anymore. But that's a problem for another day.
Back to top
View user's profile Send private message
lizardbrain
n00b
n00b


Joined: 03 Jun 2007
Posts: 63
Location: the swamp

PostPosted: Fri Jun 22, 2007 10:57 am    Post subject: Reply with quote

After another emerge --update --deep --newuse world, everything looks like it's working again. Now how do I mark this "solved"...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum