Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92212 - apache-2.0.53 can't start or build when db-4.2.52_p2 is installed
Summary: apache-2.0.53 can't start or build when db-4.2.52_p2 is installed
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
: 100319 134117 177942 179647 180739 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-10 23:13 UTC by Adam Breitkreutz
Modified: 2007-06-03 15:03 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Breitkreutz 2005-05-10 23:13:52 UTC
When sys-libs/db-4.2.52_p2 is installed, net-www/apache-2.0.53 will neither start nor emerge without error.  Apache looks for libdb-4.1.so when it should be libdb-4.2.so.

Reproducible: Didn't try
Steps to Reproduce:
1. USE="java" emerge =sys-libs/db-4.2.52_p2
2. USE="apache2 ssl" emerge =net-www/apache-2.0.53

Actual Results:  
apache ebuild errors out with: /usr/lib/libaprutil-0.la -lgdbm -ldb -lexpat
/usr/lib/libapr-0.la -lrt -lm -lcr        ypt -lnsl -lpthread -ldl
/usr/lib/libaprutil-0.so: undefined reference to `db_create_4001'
/usr/lib/libaprutil-0.so: undefined reference to `db_strerror_4001'
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1

If apache is already installed it will not start with error: Apache2 has
detected a syntax error in your configuration files:
/usr/sbin/apache2: error while loading shared libraries: libdb-4.1.so: cannot op
       en shared object file: No such file or directory

Expected Results:  
Apache should point to libdb-4.2.so instead of libdb-4.1.so and should
emerge/start properly

emerge -pv =sys-libs/db-4.1.25_p1-r4
Will fix the problem, but since net-www/apache-2.0.53 and sys-libs/db-4.2.52_p2
were the default versions for emerge apache db, I thought it should be mentioned.
Comment 1 Brian Harring (RETIRED) gentoo-dev 2005-05-10 23:18:14 UTC
Tried rebuilding apache by chance? Pwning this off to the responsible group...
Comment 2 Paul de Vrieze (RETIRED) gentoo-dev 2005-05-15 02:24:33 UTC
Do you have seperate apr/apr-util packages? In that case please remerge them.
Comment 3 Maurice Volaski 2005-06-01 15:09:30 UTC
I had the same problem and re-emerging apr/apr-util fixed it, a situation where portage needs more 
intelligence.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-06-10 04:10:08 UTC
I have seen this several times and re-emerging of apr/apr-utils always fixed
that; revdep-rebuild always failed miserably. Maybe some ewarn should be put
into apache ebuilds. 
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-07-25 23:34:54 UTC
*** Bug 100319 has been marked as a duplicate of this bug. ***
Comment 6 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-09-17 19:16:44 UTC
seems the solution is to recompile apr and apr-util
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-05-23 07:59:14 UTC
*** Bug 134117 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-05-10 15:54:56 UTC
*** Bug 177942 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-05-10 16:00:03 UTC
*** Bug 177942 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-05-24 18:36:08 UTC
*** Bug 179647 has been marked as a duplicate of this bug. ***
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-06-03 15:03:51 UTC
*** Bug 180739 has been marked as a duplicate of this bug. ***