net-www/apache-2.0.54-r13 fails to compile during update when installing cacti and cacti-cactid Reproducible: Always Steps to Reproduce: 1. emerge cacti cacti-cactid -u 2. fails 3. Actual Results: /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 make[2]: *** Waiting for unfinished jobs.... /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]: *** [htdigest] Error 1 make[2]: Leaving directory `/var/tmp/portage/apache-2.0.54-r13/work/httpd- 2.0.54/support' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/apache-2.0.54-r13/work/httpd- 2.0.54/support' make: *** [all-recursive] Error 1 !!! ERROR: net-www/apache-2.0.54-r13 failed. !!! Function src_compile, Line 157, Exitcode 2 !!! problem compiling apache2 !!! If you need support, post the topmost build error, NOT this status message. Expected Results: Successfully update emerge cacti cacti-cactid -up These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] net-www/apache-2.0.54-r13 [2.0.54-r11] [ebuild U ] sys-process/cronbase-0.3.2 [0.3.1] [ebuild U ] sys-devel/gcc-config-1.3.12 [1.3.11-r4] [ebuild U ] sys-libs/glibc-2.3.5-r1 [2.3.5] [ebuild U ] media-libs/freetype-2.1.10 [2.1.9-r1] [ebuild U ] x11-misc/ttmkfdir-3.0.9-r3 [3.0.9-r2] [ebuild U ] x11-base/opengl-update-2.2.1 [2.1.1-r1] [ebuild U ] media-libs/fontconfig-2.3.2 [2.2.3] [ebuild U ] x11-base/xorg-x11-6.8.2-r2 [6.8.2-r1] [ebuild U ] app-arch/rpm2targz-9.0-r3 [9.0-r2] [ebuild U ] sys-apps/utempter-0.5.5.6 [0.5.5.5-r1] [ebuild U ] x11-terms/xterm-200-r3 [197] [ebuild U ] net-mail/mailbase-1 [0.00-r8] [ebuild U ] dev-db/mysql-4.0.25-r2 [4.0.24] [ebuild U ] dev-perl/PlRPC-0.2018 [0.2016-r1] [ebuild U ] dev-perl/DBI-1.48 [1.46] [ebuild U ] dev-perl/DBD-mysql-2.9007 [2.1027] [ebuild U ] mail-mta/exim-4.52 [4.50-r1] [ebuild U ] sys-process/vixie-cron-4.1-r8 [4.1-r7] [ebuild U ] dev-libs/cgilib-0.5-r1 [0.5] [ebuild U ] net-analyzer/rrdtool-1.2.11 [1.2.6-r1] [ebuild U ] dev-perl/TermReadKey-2.30 [2.21] [ebuild U ] sys-libs/db-1.85-r2 [1.85-r1] [ebuild U ] net-analyzer/net-snmp-5.2.1.2 [5.2.1-r1] [ebuild N ] net-analyzer/cacti-0.8.6f-r1 Linux shrek.isg.int 2.6.11-gentoo-r3 #4 SMP Mon Jul 18 14:07:01 MDT 2005 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz GenuineIntel GNU/Linux CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CXXFLAGS="${CFLAGS}" MAKEOPTS="-j2" ACCEPT_KEYWORDS="~x86" USE="apache2 ssl acl curl nocardbus pam php mysql mysqli gd gdb innodb readline sasl ssl svga tcpd snmp fastcgi zlib spell"
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc- 2.3.5-r0, 2.6.11-gentoo-r3 i686) ================================================================= System uname: 2.6.11-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/shar e/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/sh are/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acl alsa apache2 apm arts avi berkdb bitmap-fonts crypt cups curl eds emboss encode esd fam fastcgi foomaticdb fortran gd gdb gdbm gif gnome gpm gstreamer gtk gtk2 imlib innodb ipv6 java jpeg kde libg++ libwww mad mikmod motif mp3 mpeg mysql mysqli ncurses nls nocardbus ogg oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline samba sasl sdl snmp spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
see if rebuilding apr and apr-utils fixes this error. I suspect you have updated db and haven't rebuilt apr and apr-utils to use the new library.
That did the trick. I'd forgotten I had ACCEPT_KEYWORDS="~x86" in make.conf until a couple of hours later. Removed that, did an ACCEPT_KEYWORDS="~x86" emerge apr, and then was able to successfully install cacti and cacti-cactid. I blame my lack of attention to detail on 14 days straight of work and 20 hours of OT last week ;)
user error. resolving.