Bug # 53403 is similar, but not the same, I think. Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: ake[2]: Leaving directory `/var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/examples/customlayout' cd demo && make -f Makefile make[2]: Entering directory `/var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/examples/demo' Some of the required modules (nocrosscompiler) are not available. Skipped. make[2]: Leaving directory `/var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/examples/demo' cd dirview && make -f Makefile make[2]: Entering directory `/var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/examples/dirview' g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -I/usr/include/mysql -fno-exceptions -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/mkspecs/qws/linux-x86-g++ -I. -I../../include -I.moc/release-shared-mt-emb-x86/ -o .obj/release-shared-mt-emb-x86/dirview.o dirview.cpp g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -I/usr/include/mysql -fno-exceptions -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/mkspecs/qws/linux-x86-g++ -I. -I../../include -I.moc/release-shared-mt-emb-x86/ -o .obj/release-shared-mt-emb-x86/main.o main.cpp /var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/bin/moc dirview.h -o .moc/release-shared-mt-emb-x86/moc_dirview.cpp g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -I/usr/include/mysql -fno-exceptions -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/mkspecs/qws/linux-x86-g++ -I. -I../../include -I.moc/release-shared-mt-emb-x86/ -o .obj/release-shared-mt-emb-x86/moc_dirview.o .moc/release-shared-mt-emb-x86/moc_dirview.cpp make[2]: Leaving directory `/var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/examples/dclock' cd distributor && make -f Makefile make[2]: Entering directory `/var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/examples/distributor' /var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/bin/uic -L /var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/plugins distributor.ui -o distributor.h /var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/bin/uic: error while loading shared libraries: libqte-mt.so.3: cannot open shared object file: No such file or directory make[2]: *** [distributor.h] Error 127 make[2]: Leaving directory `/var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/examples/distributor' make[1]: *** [sub-distributor] Error 2 make[1]: *** Waiting for unfinished jobs.... g++ -fno-exceptions -Wl,-rpath,/usr/qt/3-embedded/lib -o dirview .obj/release-shared-mt-emb-x86/dirview.o .obj/release-shared-mt-emb-x86/main.o .obj/release-shared-mt-emb-x86/moc_dirview.o -L/usr/lib/mysql -L/var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/lib -lqte-mt -lz -ldl -lpthread make[2]: Leaving directory `/var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/examples/dirview' make[1]: Leaving directory `/var/tmp/portage/qt-embedded-3.3.2-r1/work/qt-embedded-free-3.3.2/examples' make: *** [sub-examples] Error 2 !!! ERROR: x11-libs/qt-embedded-3.3.2-r1 failed. !!! Function src_compile, Line 86, Exitcode 2 !!! making examples OdysseusGentoo root # emerge info Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r8) ================================================================= System uname: 2.6.7-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz Gentoo Base System version 1.5.1 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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/qmail/control /var/www/localhost/htdocs//mythweb/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://GentooMirror/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://GentooMirror/gentoo-portage" USE="S3TC X X509 aalib acpi acpi4linux alsa apache2 apm arts artswrappersuid avi berkdb bsh cdr cgi cjk crypt cups curl dga directfb divx4linux doc dvd encode esd fbcon foomaticdb foreign-package foreign-sysvinit freetype fs gdbm gif gphoto2 gpm gtk2 ieee1394 imap imlib innodb ipv6 irda irmc java javascript joystick jpeg kde kerberos krb4 lcd ldap libg++ libwww mad md5sum memlimit mikmod mmx motif mozilla mpeg msn mysql nas ncurses nls nvidia oav odbc offensive oggvorbis opengl openssh oss pam pcap pdflib perl png pnp ppds python qt quicktime readline samba scanner sdl skey slang slp snmp spell sse ssl svg svga tcpd tetex tiff transcode truetype trusted type1 unicode usb wifi wmf x86 xml xml2 xmms xv xvid zli
The heart of the problem is this section at the bottom of the src_compile() section of qt-embedded-3.3.2-r1.ebuild (the same problem also exists in qt-embedded-3.3.2.ebuild...): if use doc; then cd ${S} && emake sub-tutorial || die "making tutorial" LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" \ cd ${S} && emake sub-examples || die "making examples" fi The problem is that the LD_LIBRARY_PATH assignment is not being done properly: it isn't making it to the "make sub-examples" section. This is a fixed version: if use doc; then cd ${S} && emake sub-tutorial || die "making tutorial" cd ${S} && \ LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" emake sub-examples \ || die "making examples" fi As a work-around, you can remove "doc" from your USE variables when emerging. This bug is currently assigned to mythtv; it should probably go to x11-libs or someone responsible for qt...
Created attachment 35205 [details, diff] proposed patch for problem A patch to qt-embedded-3.3.2-r1.ebuild
Do you want me to test this patch? If so, can you please briefly describe the patching procedure, including how to revert to any updated ebuild...
If you want to test it for yourself the easiest way is probably to hand edit /usr/portage/x11-libs/qt-embedded/qt-embedded-3.3.2-r1.ebuild and modify the section show in comment one. Note: if you test this way then the patch will go away the next time you run "emerge sync". A longer term way is to use the PORTDIR_OVERLAY make.conf variable, and make a copy of the ebuild file in $PORTDIR_OVERLAY/x11-libs/qt-embedded. You will need to run ebuild qt-embededded-3.3.2-r1.ebuild digest first to regenerate the digest files if you go that way.
Ok thx for the patch, it worked. I suppose I'll leave this bug open until the patch has been adopted by the developers.
Thanks for the fix, I've added it to the build.