imagemagick is failing to link against libperl, claiming that it can't find it, despite it existing, and perl-cleaner reporting that everything is fine. Secondly, why is it doing ANY linking during src_install? All compiling and linking should be in src_compile. libtool: install: /usr/bin/install -c utilities/.libs/stream /var/tmp/portage/media-gfx/imagemagick-6.5.9.4-r1/image//usr/bin/stream test -z "/usr/bin" || /bin/mkdir -p "/var/tmp/portage/media-gfx/imagemagick-6.5.9.4-r1/image//usr/bin" /usr/bin/install -c magick/Magick-config magick/MagickCore-config wand/Wand-config wand/MagickWand-config Magick++/bin/Magick++-config '/var/tmp/portage/media-gfx/imagemagick-6.5.9.4-r1/image//usr/bin' cd PerlMagick && /usr/bin/perl Makefile.PL INSTALLDIRS=vendor Checking if your kit is complete... Looks good Warning: -L../magick/.libs changed to -L/var/tmp/portage/media-gfx/imagemagick-6.5.9.4-r1/work/ImageMagick-6.5.9-4/PerlMagick/../magick/.libs Writing Makefile for Image::Magick ( cd PerlMagick && make CC='x86_64-pc-linux-gnu-gcc -std=gnu99' && \ make CC='x86_64-pc-linux-gnu-gcc -std=gnu99' install && \ make clean && rm -f Makefile.old ) make[3]: Entering directory `/var/tmp/portage/media-gfx/imagemagick-6.5.9.4-r1/work/ImageMagick-6.5.9-4/PerlMagick' cp Magick.pm blib/lib/Image/Magick.pm AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick) /usr/bin/perl5.8.8 /usr/lib64/perl5/vendor_perl/5.8.8/ExtUtils/xsubpp -typemap /usr/lib64/perl5/5.8.8/ExtUtils/typemap Magick.xs > Magick.xsc && mv Magick.xsc Magick.c x86_64-pc-linux-gnu-gcc -std=gnu99 -c -I../ -I.. -I/usr/include/freetype2 -I/usr/include/libxml2 -I"/usr/include/ImageMagick" -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fopenmp -march=nocona -O2 -g -pipe -Wall -W -pthread -march=nocona -O2 -g -pipe -DVERSION=\"6.5.9\" -DXS_VERSION=\"6.5.9\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c Magick.xs:230: warning: missing initializer Magick.xs:230: warning: (near initialization for 'Methods[8].arguments') Magick.xs:234: warning: missing initializer Magick.xs:234: warning: (near initialization for 'Methods[11].arguments') Magick.xs:235: warning: missing initializer Magick.xs:235: warning: (near initialization for 'Methods[12].arguments') Magick.xs:236: warning: missing initializer Magick.xs:236: warning: (near initialization for 'Methods[13].arguments') ... Magick.xs:466: warning: missing initializer Magick.xs:466: warning: (near initialization for 'Methods[103].arguments') Magick.c: In function 'XS_Image__Magick_Animate': Magick.c:2465: warning: unused variable 'ref' Magick.c:2459: warning: unused variable 'ix' ... Magick.c: In function 'XS_Image__Magick_Compare': Magick.xs:3098: warning: 'sv' may be used uninitialized in this function Magick.xs:3098: note: 'sv' was declared here Running Mkbootstrap for Image::Magick () chmod 644 Magick.bs rm -f blib/arch/auto/Image/Magick/Magick.so x86_64-pc-linux-gnu-gcc -march=nocona -O2 -g -pipe -L../magick/.libs -lMagickCore -shared -L/usr/local/lib64 -Wl,-O1 Magick.o -o blib/arch/auto/Image/Magick/Magick.so \ -L/var/tmp/portage/media-gfx/imagemagick-6.5.9.4-r1/work/ImageMagick-6.5.9-4/PerlMagick/../magick/.libs -lMagickCore -lperl -lm \ /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lperl collect2: ld returned 1 exit status make[3]: *** [blib/arch/auto/Image/Magick/Magick.so] Error 1 make[3]: Leaving directory `/var/tmp/portage/media-gfx/imagemagick-6.5.9.4-r1/work/ImageMagick-6.5.9-4/PerlMagick' make[2]: *** [install-exec-perl] Error 2 make[2]: Leaving directory `/var/tmp/portage/media-gfx/imagemagick-6.5.9.4-r1/work/ImageMagick-6.5.9-4' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/media-gfx/imagemagick-6.5.9.4-r1/work/ImageMagick-6.5.9-4' make: *** [install] Error 2 * ERROR: media-gfx/imagemagick-6.5.9.4-r1 failed: Portage 2.2_rc63 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.11-r1, 2.6.29-hardened x86_64) ================================================================= System uname: Linux-2.6.29-hardened-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1 Timestamp of tree: Unknown ccache version 2.4 [enabled] app-shells/bash: 4.1_p2 dev-lang/python: 2.5.4-r4, 2.6.4-r1, 3.1.1-r1 dev-python/pycrypto: 2.1.0 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.8.0-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.0-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20 sys-devel/gcc: 4.2.4-r1, 4.3.4, 4.4.3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.32 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -g -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/qpsmtpd/plugins /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=nocona -O2 -g -pipe" DISTDIR="/home/gentoo/distfiles" FEATURES="assume-digests buildpkg ccache collision-protect distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1" LINGUAS="en en_CA en_US en_GB en_ZA" MAKEOPTS="-j6 -l5" PKGDIR="/home/gentoo/packages/" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/cvs" PORTDIR_OVERLAY="/usr/local/portage" SYNC="" USE="3dnow aalib acl acpi adns aio alsa amd amd64 apache2 apm ares audit berkdb bzip2 cairo cdr cgi clearpasswd cli cracklib crypt cscope curl cxx divx4linux dri dvd dvdr encode f77 fam foomaticdb fortran frxp gcj gd gdbm geoip gif glitz gnutls gpgme hpn iconv idn imap innodb ipalias ipv6 jikes jpeg junit latex libwww logrotate mad maildir mcal md5sum mikmod mmx modules mp3 mpeg mpm-prefork mudflap multicall multilib multitarget mysql ncurses nls nptl nptlonly objc offensive ogg openmp pam pcap pcre pdf pdflib perl pic plotutils png pnp postgres ppds pppd python qmail readline reflection samba scanner session slp smime sni snmp socks5 spell spl sse sse2 ssl svg sysfs tetex tiff truetype truetype-fonts type1 type1-fonts udev ungif unicode urandom usb userlocales v4l v4l2 vhosts vim-syntax vorbis xattr xcb xinetd xml xml2 xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias asis auth_digest imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http" APACHE2_MPMS="prefork" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="evdev keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_CA en_US en_GB en_ZA" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev vga vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS # ls -la /usr/lib64/libperl* lrwxrwxrwx 1 root root 16 Feb 21 00:55 /usr/lib64/libperl.so.1 -> libperl.so.1.5.8 -rwxr-xr-x 1 root root 1273784 Feb 21 00:54 /usr/lib64/libperl.so.1.5.8
This is most likely caused by MAKEOPTS being != -j1. Had similar issues, only failing library was -lMagickCore instead of -lperl and clearing MAKEOPTS "worked" (or rather walked the problem around). Moving linking from src_install phase to src_compile could make it work properly maybe?
*** Bug 311213 has been marked as a duplicate of this bug. ***
(In reply to comment #1) > This is most likely caused by MAKEOPTS being != -j1. Had similar issues, only > failing library was -lMagickCore instead of -lperl and clearing MAKEOPTS > "worked" (or rather walked the problem around). > > Moving linking from src_install phase to src_compile could make it work > properly maybe? > I have the same problem and changing MAKEOPTS to '-j1' didn't solved anything. How can I move linking from src_compile to src_install to test that solution ?
@Truchi Have you tried running perl-cleaner first? @robbat2 Could you confirm that clearing MAKEOPTS does not resolve this problem?
Yep, I've tried before and after running 'perl-cleaner all' and results were the same.
I finally managed to resolve this bug on my environment. I re-emerged sys-devel/libperl. Then the emerge of imagemagick didn't failed... I don't remember exactly but it seems to me that I already have re-emerged libperl...