Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 383929

Summary: sys-devel/libtool-2.4-r2 doesn't install libltdl.la (which breaks ltdl users at configure time like imagemagick)
Product: Gentoo Linux Reporter: Francesco Riosa <vivo75>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: elliotdit, manuel.lauss, me
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 293921    
Bug Blocks:    
Attachments: imagemagick-6.7.2.6:20110920-234133.log.gz
imagemagick-6.7.2.6:20110920-234133.log.gz
config.log

Description Francesco Riosa 2011-09-21 10:59:35 UTC
see also bug #354479
same as bug #383915
Comment 1 Francesco Riosa 2011-09-21 11:00:28 UTC
Created attachment 287265 [details]
imagemagick-6.7.2.6:20110920-234133.log.gz
Comment 2 Rafał Mużyło 2011-09-21 11:47:11 UTC
1. be more careful, while attaching - it's another one of your logs that's actually .gz.gz
2. what's the error in the relevant config.log ?
Comment 3 Francesco Riosa 2011-09-21 12:24:48 UTC
Created attachment 287275 [details]
imagemagick-6.7.2.6:20110920-234133.log.gz

upload again, 1st time the file got messed up, chosen application/octet-stream instead of auto-detect as content type
Comment 4 Francesco Riosa 2011-09-21 12:28:27 UTC
(In reply to comment #2)
> 1. be more careful, while attaching - it's another one of your logs that's
> actually .gz.gz

Should be "be more careful, while reporting a bug", seem to be not related to libpng at all, I've no time to investigate this immediately, could we suspend this until friday?

> 2. what's the error in the relevant config.log ?


checking whether lt_dlinterface_register is declared... yes
checking for lt_dladvise_preload in -lltdl... yes
configure: error: invalid ltdl library directory: `/usr/lib64'

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-gfx/imagemagick-6.7.2.6/work/ImageMagick-6.7.2-6/config.log
 * ERROR: media-gfx/imagemagick-6.7.2.6 failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *          ebuild.sh, line   91:  Called src_configure
 *        environment, line 2616:  Called econf '--docdir=/usr/share/doc/imagemagick-6.7.2.6' '--enable-static' '--enable-hdri' '--disable-opencl' '--with-threads' '--without-included-ltdl' '--with-ltdl-include=/usr/include' '--with-ltdl-lib=/usr/lib64' '--with-modules' '--with-quantum-depth=16' '--with-magick-plus-plus' '--with-perl' '--with-perl-options=INSTALLDIRS=vendor' '--with-gs-font-dir=/usr/share/fonts/default/ghostscript' '--with-bzlib' '--without-x' '--with-zlib' '--with-autotrace' '--without-dps' '--with-djvu' '--with-dejavu-font-dir=/usr/share/fonts/dejavu' '--with-fftw' '--without-fpx' '--without-fontconfig' '--with-freetype' '--without-gslib' '--with-gvc' '--with-jbig' '--with-jpeg' '--with-jp2' '--without-lcms' '--with-lcms2' '--without-lqr' '--with-lzma' '--with-openexr' '--with-png' '--with-rsvg' '--with-tiff' '--with-webp' '--with-windows-font-dir=/usr/share/fonts/corefonts' '--without-wmf' '--with-xml' '--enable-openmp'
 *   phase-helpers.sh, line  454:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
Comment 5 Rafał Mużyło 2011-09-21 14:25:17 UTC
OK, maybe I didn't typed it clearly enough the first time:
...the relevant *config.log*...
Comment 6 Francesco Riosa 2011-09-21 19:54:48 UTC
Created attachment 287357 [details]
config.log

Not needed anyway here it is.

The problem was libtool related, re-emerging sys-devel/libtool-2.4-r1 fixed the compile failure.
Comment 7 Rafał Mużyło 2011-09-21 20:03:21 UTC
I can make a pretty good guess - you've removed libltdl.la file - that's one of the few you should leave alone (those for imagemagick modules are another alike set).
Comment 8 Martin Gysel (bearsh) 2011-09-23 14:03:48 UTC
but then please make sure libtool has been built with USE=static-libs as latest revision doesn't install .la files anymore without USE=static-libs
Comment 9 SpanKY gentoo-dev 2011-09-24 06:39:49 UTC
should be all set now in the tree; thanks for the report!

Commit message: Restore libltdl.la and add a comment noting its requirement to prevent future screw-ups
http://sources.gentoo.org/sys-devel/libtool/libtool-2.4-r3.ebuild?rev=1.1
http://sources.gentoo.org/sys-devel/libtool/libtool-9999.ebuild?r1=1.7&r2=1.8
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2011-09-24 07:44:59 UTC
*** Bug 384283 has been marked as a duplicate of this bug. ***
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2011-09-27 08:00:13 UTC
*** Bug 384621 has been marked as a duplicate of this bug. ***
Comment 12 Luke 2012-03-09 09:03:24 UTC
why fix this by restoring the .la file? I found this fix in the forums, and it seems to fix the problem nicely in the imagemacgick ebuild:

add next line to src_prepare() in ebuild

sed 's/with_ltdl_lib\/libltdl.la/with_ltdl_lib\/libltdl.so/g' -i configure
Comment 13 SpanKY gentoo-dev 2013-01-21 03:42:58 UTC
Commit message: Disable search of libtool files (like ltdl.la) as well as -I/-L build paths
http://sources.gentoo.org/media-gfx/imagemagick/imagemagick-6.7.8.7.ebuild?r1=1.8&r2=1.9
http://sources.gentoo.org/media-gfx/imagemagick/imagemagick-6.7.9.9.ebuild?r1=1.1&r2=1.2