home ~ # emerge -pv apache These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] net-www/apache-2.0.55-r1 USE="apache2 doc ldap ssl threads -debug -mpm-leader -mpm-peruser -mpm-prefork -mpm-threadpool -mpm-worker -no-suexec -static-modules" 0 kB Total size of downloads: 0 kB Installed db versions are 4.1.25_p2 4.3.29 me ~ # emerge -1 apache Calculating dependencies ...done! >>> emerge (1 of 1) net-www/apache-2.0.55-r1 to / ... /usr/share/apr-0/build/libtool --silent --mode=link i686-pc-linux-gnu-gcc -pthread -O2 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -I/usr/include/apr-0 -I/usr/include/db4.2 -I. -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/os/unix -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/server/mpm/worker -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/modules/http -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/modules/filters -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/modules/proxy -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/modules/generators -I/usr/include/openssl -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/modules/dav/main -export-dynamic -L/usr/lib -o htpasswd htpasswd.lo -lz -lssl -lcrypto -ldl /var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/srclib/pcre/libpcre.la /usr/lib/libaprutil-0.la -lldap -llber -lgdbm -ldb-4.2 -lexpat /usr/lib/libapr-0.la -lrt -lm -lcrypt -lnsl -lpthread -ldl /usr/share/apr-0/build/libtool --silent --mode=link i686-pc-linux-gnu-gcc -pthread -O2 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -I/usr/include/apr-0 -I/usr/include/db4.2 -I. -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/os/unix -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/server/mpm/worker -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/modules/http -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/modules/filters -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/modules/proxy -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/include -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/modules/generators -I/usr/include/openssl -I/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/modules/dav/main -export-dynamic -L/usr/lib -o htdigest htdigest.lo -lz -lssl -lcrypto -ldl /var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/srclib/pcre/libpcre.la /usr/lib/libaprutil-0.la -lldap -llber -lgdbm -ldb-4.2 -lexpat /usr/lib/libapr-0.la -lrt -lm -lcrypt -lnsl -lpthread -ldl /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldb-4.2 collect2: ld returned 1 exit status make[2]: *** [htpasswd] Error 1 make[2]: *** Waiting for unfinished jobs.... /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldb-4.2 collect2: ld returned 1 exit status make[2]: *** [htdigest] Error 1 make[2]: Leaving directory `/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/support' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/apache-2.0.55-r1/work/httpd-2.0.55/support' make: *** [all-recursive] Error 1 !!! ERROR: net-www/apache-2.0.55-r1 failed. Call stack: ebuild.sh, line 1894: Called dyn_compile ebuild.sh, line 941: Called src_compile !!! problem compiling apache2 !!! If you need support, post the topmost build error, and the call stack if relevant.
Run revdep-rebuild and/or re-emerge apr and apr-util...
I am really confused as to why revdep-rebuild did not report any problems, it is supposed so solve this kind of breakage... :-/ Manually reemergeing apr and apr-util fixed it, thanks.