When I try to emerge licq-1.3.0 compilation fails Reproducible: Always Steps to Reproduce: 1. emerge =licq-1.3.0 2. 3. Actual Results: /bin/sh ../libtool --silent --mode=link g++ -O2 -pipe -mtune=k8 -fno-rtti -fno-exceptions -fno-check-new -o licq_console.la -rpath /usr/lib/licq/ -module -avoid-version console.lo console_menu.lo console_print.lo console_tab.lo main.lo window.lo -lcdk -lncurses /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/../../../lib/libcdk.a(binding.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/../../../lib/libcdk.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [licq_console.la] Error 1 make[2]: Leaving directory `/home/var/tmp/portage/licq-1.3.0/work/licq-1.3.0/plugins/console/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/var/tmp/portage/licq-1.3.0/work/licq-1.3.0/plugins/console' make: *** [all] Error 2 !!! ERROR: net-im/licq-1.3.0 failed. !!! Function src_compile, Line 105, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. I've already tried to re-emerge cdk, it didn't do. Portage 2.0.51_rc7 (default-amd64-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r6 x86_64) ================================================================= System uname: 2.6.8-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -mtune=k8" 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 /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 /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -mtune=k8" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/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="X aalib acl acpi adns alsa amd64 apache2 apm app-crypt/gnupg:idea app-crypt/gpgme:smime arts audiofile avi berkdb bitmap-fonts caps cdr crypt cups curl debug dev-dotnet/mono:nptl dev-util/eric:idl divx4linux doc dvd dvdr encode esd foomaticdb gd gdbm gdm gif gnome gphoto2 gpm gtk gtk2 guile icq imap imlib ipv6 jabber jack java jpeg kde kde-base/kdeadmin:foreign-package kde-base/kdeadmin:foreign-sysvinit kde-base/kdemultimedia:cdparanoia ladcca ldap libg++ libwww maildir media-sound/museseq:fluidsynth mikmod motif mozilla mpeg multilib mysql ncurses net-misc/openssh:X509 net-misc/openssh:chroot net-misc/openssh:sftplogging net-misc/openssh:skey net-www/apache:threads net-www/mozilla-firefox:xprint net-www/mozilla:mozp3p net-www/mozilla:mozsvg nls nogcj nptl nsl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sasl sdl slang spell ssl sys-devel/libperl:threads tcltk tcpd tetex threads truetype unicode usb xml xml2 xmms xprint zeo zlib linguas_en linguas_it"
It looks like a cdk problem instead of a licq problem. Indeed, while trying to emerge cdk-perl I get: /usr/bin/perl5.8.5 /usr/lib/perl5/vendor_perl/5.8.4/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.5/ExtUtils/typemap -typemap typemap Cdk.xs > Cdk.xsc && mv Cdk.xsc Cdk.c gcc -c -I/usr/include/ncurses -I/usr/include/cdk -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -mtune=k8 -DVERSION=\"4.09010\" -DXS_VERSION=\"4.09010\" -fPIC "-I/usr/lib/perl5/5.8.5/x86_64-linux-thread-multi/CORE" Cdk.c Running Mkbootstrap for Cdk () chmod 644 Cdk.bs rm -f blib/arch/auto/Cdk/Cdk.so LD_RUN_PATH="" gcc -shared -L/usr/local/lib Cdk.o -o blib/arch/auto/Cdk/Cdk.so -L/usr/lib -lcdk -lcurses /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libcdk.a(alphalist.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with-fPIC /usr/lib/libcdk.a: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [blib/arch/auto/Cdk/Cdk.so] Error 1 !!! ERROR: dev-perl/cdk-perl-20031210 failed. !!! Function perl-module_src_compile, Line 65, Exitcode 2 !!! compilation failed !!! If you need support, post the topmost build error, NOT this status message. The problem appears to be that cdk install just a static .a library (no libcdk.so is on my system) and for some reason this is a problem for the linker.
confirmed, the problem is cdk not using libtool. I'm attaching a patch that solved the problem.
Created attachment 41178 [details, diff] proposed fix
committed in portage as cdk-4.9.11.20031210-r1 thanks, Simone