Emerging filelight-1.0_beta2 errors on compilation Reproducible: Always Steps to Reproduce: 1. Emerge filelight 2. 3. Actual Results: /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -I. ./../src -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long - Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar- subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O3 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-ne w -fno-common -c -o progressbox.lo `test -f 'progressbox.cpp' || echo './'`progressbox.cpp /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -I. ./../src -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long - Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar- subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O3 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o Config.lo `test -f 'Config.cpp' || echo './'`Config.cpp /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -I. ./../src -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long - Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar- subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O3 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-ne w -fno-common -c -o settingsdialog.lo `test -f 'settingsdialog.cpp' || echo './'`settingsdialog.cpp /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -I. ./../src -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long - Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar- subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O3 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-ne w -fno-common -c -o filetree.lo `test -f 'filetree.cpp' || echo './'`filetree.cpp /usr/qt/3/bin/moc dialog.h -o dialog.moc rm -f dialog.cpp echo '#include <kdialog.h>' > dialog.cpp echo '#include <klocale.h>' >> dialog.cpp /usr/qt/3/bin/uic -L /usr/kde/3.2/lib/kde3/plugins/designer -nounload -tr tr2i18n -i dialog.h ./dialog.ui > dialog.cpp.temp ; ret=$?; \ /usr/bin/perl -pe "s,tr2i18n( \"\" ),QString::null,g" dialog.cpp.temp | /usr/bin /perl -pe "s,tr2i18n( \"\"\, \"\" ),QString::null,g" | /usr/bin/perl -pe "s,image([0-9][0-9]*)_data,img\$1_dialog,g" >> dialog.cpp ;\ rm -f dialog.cpp.temp ;\ if test "$ret" = 0; then echo '#include "dialog.moc"' >> dialog.cpp; else rm -f dialog.cpp ; exit $ret ; fi /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -I. ./../src -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long - Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar- subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O3 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o dialog.lo `test -f 'dialog.cpp' || echo './'`dialog.cpp /bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wn o-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconve rsion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_D EBUG -O2 -O3 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -o libfilelight.la -rpath /usr/lib/kde3 -L/usr/X11 R6/lib -L/usr/qt/3/lib -L/usr/kde/3.2/lib -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/kde/3.2/lib -R /usr/qt/3/ lib -R /usr/X11R6/lib part.lo scanthread.lo progressbox.lo Config.lo settingsdi alog.lo filetree.lo dialog.lo ./radialmap/libradialmap.a -lkio -lkparts -lkdeui -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread *** Warning: Linking the shared library libfilelight.la against the *** static library ./radialmap/libradialmap.a is not portable! /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.3/../../../../x86_64-pc-linux-gnu/bin/l d: ./radialmap/libradialmap.a(widget.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC ./radialmap/libradialmap.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[4]: *** [libfilelight.la] Error 1 make[4]: Leaving directory `/var/tmp/portage/filelight-1.0_beta2/work/filelight-1.0-beta2/src/part' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/filelight-1.0_beta2/work/filelight-1.0-beta2/src/part' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/filelight-1.0_beta2/work/filelight-1.0-beta2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/filelight-1.0_beta2/work/filelight-1.0-beta2' make: *** [all] Error 2 !!! ERROR: sys-apps/filelight-1.0_beta2 failed. !!! Function kde_src_compile, Line 129, Exitcode 2 !!! died running emake, kde_src_compile:make Expected Results: Emerged successfully I can't find anyone else with this issue so here's a new bug... If you need any more info lemme know...
emerge info?
Does -r1 work for you Martin?
I hadn't the -r1 version, it must have only appeared for amd64 last night hehe.. It works perfectly, thanks :)
It appeared after your bug report... ;)
I am now seeing the same error with the new kde-misc/filelight-1.0_beta5 ebuild. Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r4 x86_64) ================================================================= System uname: 2.6.9-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.6 distcc 2.18.2 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -funit-at-a-time" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -funit-at-a-time" DISTDIR="/mnt/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/mnt/portage/packages/hactar" PORTAGE_TMPDIR="/mnt/scratch" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/mnt/portage/local /mnt/portage/bmg-main" SYNC="rsync://desatio/gentoo" USE="amd64 X aalib acpi alsa apache2 arts artswrappersuid avi berkdb bitmap-fonts bonobo cdr crypt cups directfb divx4linux dv dvd dvdr encode esd f77 fam flac foomaticdb fortran gdbm gif gimpprint gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 jabber java jbig jp2 jpeg junit kde ldap lesstif libwww lzw lzw-tiff mad mailwrapper mikmod mozilla mpeg multilib mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba scanner sdl slang slp spell sqlite ssl tcltk tcpdtiff truetype usb userlocales xfs xml xml2 xmms xpm xprint xrandr xv xvid zlib video_cards_nvidia linguas_en_GB"
the name of the directory changed and the sed line now fails... quick fix: - sed -e '/^CPPFLAGS/s/$/ -fPIC/' -i src/part/radialmap/Makefile.in + sed -e '/^CPPFLAGS/s/$/ -fPIC/' -i src/part/radialMap/Makefile.in However, I think it's better the following patch that properly handles libtool convenience libraries.
Created attachment 44990 [details, diff] filelight-pic.patch Not tested as I don't have an amd64, but should work. By the way, it seems I cannot compile beta5 without this other patch, am I alone?
Created attachment 44991 [details, diff] filelight-compile-for-me.patch If someone says they work, I'm going to submit these to the author.
I should really learn to use sed nly in conjunction with || die... Gregorio, beta5 compiled fine for me and so does beta6. You'll may have a look at the latter, before reporting an already fixed issue upstream, maybe. btw.: If you have time to join #gentoo-dev, I could try to poke some devrel guy. :)
committed beta6, which should hopefully work