~x86 noatun-plugins won't build with ~x86 sys-libs/db I have db-4.4.20_p2 installed, and trying to update to kde-3.5.3 I get: /bin/sh ../../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpoin ter-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=athlon-xp -mfpmath=sse -mno-tls-direct-seg-refs -pipe -fforce-addr -fomit-frame-pointer -ftracer -Wformat-security -Wmissing-format-attribute -Wno-non-vi rtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_ NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o noatun_oblique.la -rpath /usr/kde/3.5/lib/kde3 -L/u sr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib -module -avoid-version -no-undefined -Wl,--no-undefine d -Wl,--allow-shlib-undefined base.lo kbuffer.lo query.lo oblique.lo tree.lo file.lo selector.lo me nu.lo cmodule.lo kdatacollection.lo view.lo -lkio -lnoatun -ldb_cxx-4.3 .libs/base.o: In function `Base::remove(File)': base.cpp:(.text+0x1706): undefined reference to `Dbt::Dbt()' base.cpp:(.text+0x1769): undefined reference to `Db::del(DbTxn*, Dbt*, unsigned int)' base.cpp:(.text+0x1784): undefined reference to `Db::sync(unsigned int)' base.cpp:(.text+0x1798): undefined reference to `Dbt::~Dbt()' .libs/base.o: In function `Base::find(unsigned int)': base.cpp:(.text+0x18a7): undefined reference to `Dbt::Dbt()' base.cpp:(.text+0x1912): undefined reference to `Dbt::Dbt()' base.cpp:(.text+0x1945): undefined reference to `Db::get(DbTxn*, Dbt*, Dbt*, unsigned int)' base.cpp:(.text+0x1961): undefined reference to `Dbt::~Dbt()' base.cpp:(.text+0x1979): undefined reference to `Dbt::~Dbt()' .libs/base.o: In function `Base::move(unsigned int, unsigned int)': base.cpp:(.text+0x1b06): undefined reference to `Dbt::Dbt()' base.cpp:(.text+0x1b78): undefined reference to `Dbt::Dbt()' base.cpp:(.text+0x1bba): undefined reference to `Db::get(DbTxn*, Dbt*, Dbt*, unsigned int)' base.cpp:(.text+0x1bd6): undefined reference to `Dbt::~Dbt()' base.cpp:(.text+0x1bee): undefined reference to `Dbt::~Dbt()' base.cpp:(.text+0x1d22): undefined reference to `Db::del(DbTxn*, Dbt*, unsigned int)' base.cpp:(.text+0x1db8): undefined reference to `Dbt::~Dbt()' # emerge --info Portage 2.1_rc4-r5 (default-linux/x86/2006.0, gcc-3.4.6/vanilla, glibc-2.3.6-r3, 2.6.16-gentoo-r6 i686) ================================================================= System uname: 2.6.16-gentoo-r6 i686 AMD Athlon(tm) XP 3000+ Gentoo Base System version 1.12.1 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.4.2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.17 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-r1 sys-devel/binutils: 2.16-r1, 2.16.1-r2 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -mfpmath=sse -mno-tls-direct-seg-refs -pipe -fforce-addr -fomit-frame-pointer -ftracer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/l7-protocols /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -mfpmath=sse -mno-tls-direct-seg-refs -pipe -fforce-addr -fomit-frame-pointer -ftracer -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig digest distlocks fixpackages metadata-transfer nostrip sandbox sfperms splitdebug strict userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages/desktop-athlon-xp" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/kolab2 /usr/portage/local/layman/voip /usr/portage/local/layman/php /usr/portage/local/layman/ecatmur /usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage/" USE="x86 3dnow 3dnowext X a52 aac aalib acct acl acpi alsa apache2 apm arts asf audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cairo cdparanoia cdr clamav cli cracklib crypt css cups curl dbus dlloader dri dts dv dvd dvdr dvdread emboss encode erandom examples exif exscalibar fam fame ffmpeg firefox flac fontconfig foomaticdb fortran gdbm gif gimp glitz gphoto2 gpm gs gstreamer gtk gtk2 guile gzip hal hardened hpn id3 ieee1394 imagemagick imlib ipod iproute2 ipv6 isdnlog jabber jack java javascript jbig jikes jpeg jpeg2k kde kdexdeltas kerberos lame lcms ldap libg++ libsamplerate libvisual libwww lm_sensors logrotate lzo mad madwifi mailwrapper matroska mikmod mjpeg mmap mmx mmxext mng modplug mono motif mozilla mp3 mp4 mpeg mpeg2 multislot musepack musicbrainz mysql mythtv nas ncurses nls nptl nsplugin ogg openexr opengl pam pccts pcre pdf pdflib perl pic png postgres ppds pppd python qt quicktime rar rdesktop readline real reflection rtc samba sametime sasl scanner sdl session slang slp smime sndfile snmp speex spell spl sse ssl svg svga tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode urandom usb userlocales utf8 v4l2 vcd visualization vorbis wifi win32codecs wma wmf wv x264 xamin xcomposite xinerama xml xml2 xmms xorg xpm xscreensaver xsl xv xvid xvmc yv12 zeroconf zip zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en userland_GNU video_cards_fglrx" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 88846 [details] noatun-plugins-3.5.3.ebuild w/ db-4.4 support Updated ebuild to use db-4.4*
Created attachment 88847 [details, diff] patch w/ db-4.4 support Patch to current noatun-plugins-3.5.3.ebuild w/ db-4.4* support
Thanks for reporting, your patch is indeed correct, although I'm probably just going to rewrite it to use the db-use eclass (unless you want to do that before I find time to ;) ), so that we don't have to update it every other release :)
Thanks for the db-use eclass tip, I didn't realize it existed. I'll have a look at it tonight.
Created attachment 88874 [details] noatun-plugins-3.5.3.ebuild (db-use eclass) noatun-plugins-3.5.3.ebuild using the db-use eclass. Kudos to the maintainer of dev-libs/apr-util-1.2.7 from whom I snaked the magic db-use incantation. :)
Created attachment 88876 [details, diff] ebuild patch (db-use eclass) patch from current portage
In cvs. Thanks for your report, Dean.
carlo: I don't know where you got the 'RDEPEND==${DEPEND}' line from, but please be careful with it, it broken the tree for nearly 11 hours I figure. I've fixed it now to have quotes as it should have.
Close, but not quite there yet. With current portage I still get the Dbt* errors: /bin/sh ../../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=athlon-xp -mfpmath=sse -mno-tls-direct-seg-refs -pipe -fforce-addr -fomit-frame-pointer -ftracer -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o noatun_oblique.la -rpath /usr/kde/3.5/lib/kde3 -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib -module -avoid-version -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined base.lo kbuffer.lo query.lo oblique.lo tree.lo file.lo selector.lo menu.lo cmodule.lo kdatacollection.lo view.lo -lkio -lnoatun -ldb-4.4 .libs/base.o: In function `Base::remove(File)': base.cpp:(.text+0x1706): undefined reference to `Dbt::Dbt()' base.cpp:(.text+0x1769): undefined reference to `Db::del(DbTxn*, Dbt*, unsigned int)' base.cpp:(.text+0x1784): undefined reference to `Db::sync(unsigned int)' base.cpp:(.text+0x1798): undefined reference to `Dbt::~Dbt()' I think the configure arg "--with-db-lib=" needs the db_cxx-${dbver} library, not db-${dbver}. The db-use/${myconf} incantation in the attachments built for me. Maybe go back to that? Or maybe my system is just screwy.
Just curious... Why include ${ROOT} in --with-extra-includes=${ROOT}$(db_includedir) ? $(db_includedir) is already an absolute path.
Same "undefined reference Dbt::" errors on a fresh KDE install using db-4.2 . Since this is an issue with how the db-use eclass is used, and not related only to db-4.4 should this be submitted as a new bug?
*** Bug 136775 has been marked as a duplicate of this bug. ***
Robin: I bet repoman would have caught the problem, if bug 132601 would not have stopped me using it. As stupidly as I broke the ebuild, I shouldn't have commited anything this early morning anyways. Sorry everyone.
Carsten: Thanks, and nice work. I just got the fixed ebuild from portage.