Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215713 - net-misc/curl-7.18.1 fails with a Gentoo sanity check for libtool.
Summary: net-misc/curl-7.18.1 fails with a Gentoo sanity check for libtool.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-01 15:21 UTC by Erik Zeek
Modified: 2008-04-03 10:47 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,23.54 KB, text/plain)
2008-04-01 15:52 UTC, Erik Zeek
Details
emerge --info (emerge_info.txt,8.66 KB, text/plain)
2008-04-01 15:53 UTC, Erik Zeek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Zeek 2008-04-01 15:21:31 UTC
The current net-misc/curl-7.18.1 appears to have some sanity issues.

*** [Gentoo] sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.26, ltmain.sh = "1.5.26 Debian 1.5.26-1") ***

Please run:

  libtoolize --copy --force

if appropriate, please contact the maintainer of this
package (or your distribution) for help.


!!! Please attach the following file when seeking support:
!!! /gentoo/tmp/portage/net-misc/curl-7.18.1/work/curl-7.18.1/config.log
 *
 * ERROR: net-misc/curl-7.18.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2576:  Called econf 'src_compile' 'src_compile' '--enable-ldap' '--enable-ldaps' '--with-libidn' '--with-gssapi=/usr' '--with-libssh2' '--enable-ipv6' '--enable-http' '--enable-ftp' '--enable-gopher' '--enable-file' '--enable-dict' '--enable-manual' '--enable-telnet' '--enable-nonblocking' '--enable-largefile' '--enable-maintainer-mode' '--disable-sspi' '--without-krb4' '--without-spnego' '--disable-ares' '--without-ssl' '--with-gnutls'
 *               ebuild.sh, line  513:  Called die
 * The specific snippet of code:
 *                    die "econf failed"
 *  The die message:
 *   econf failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/net-misc:curl-7.18.1:20080401-151513.log'.
 * The ebuild environment file is located at '/gentoo/tmp/portage/net-misc/curl-7.18.1/temp/environment'.
Comment 1 Erik Zeek 2008-04-01 15:52:32 UTC
Created attachment 147980 [details]
config.log
Comment 2 Erik Zeek 2008-04-01 15:53:54 UTC
Created attachment 147981 [details]
emerge --info

For completeness.
Comment 3 Daniel Black (RETIRED) gentoo-dev 2008-04-01 15:55:37 UTC
don't know how this escaped me. I though I did enough to get past it but obviously not. SOrry for the inconvience.
package masked in the mean time.

Suggestions. on fixes welcome.
Comment 4 Olivier DOLE 2008-04-01 17:29:45 UTC
it seems to be a common bug: see this thread from Mike Frysinger for a clear explanation: http://thread.gmane.org/gmane.linux.gentoo.devel/23449 .
I'd like to test the fix but emerge installs curl-7.18.1 with no problems for me.
I see 2 possibilities: 
1) run elibtoolize later in the ebuild. I mean after eaclocal or eautoheader
2) If that still does not work, run "libtoolize --copy --force || die" before eautoconf step.
Comment 5 Xavian-Anderson Macpherson 2008-04-01 20:03:28 UTC
I have the same problem, and am posting my "emerge --info" also.
Comment 6 Xavian-Anderson Macpherson 2008-04-01 20:05:18 UTC
Here's my emerge --info.

http://bugs.gentoo.org/attachment.cgi?id=147983
Comment 7 teidakankan 2008-04-01 20:27:55 UTC
(In reply to comment #4)
> it seems to be a common bug: see this thread from Mike Frysinger for a clear
> explanation: http://thread.gmane.org/gmane.linux.gentoo.devel/23449 .
> I'd like to test the fix but emerge installs curl-7.18.1 with no problems for
> me.
> I see 2 possibilities: 
> 1) run elibtoolize later in the ebuild. I mean after eaclocal or eautoheader
> 2) If that still does not work, run "libtoolize --copy --force || die" before
> eautoconf step.
> 

I tried #2 and it compiled for me, but spit the following messages:

 * Running autoheader ...                                                                                                                      [ ok ]
 * QA Notice: 'libtoolize' called by src_unpack: net-misc/curl-7.18.1
 * Use autotools.eclass instead of calling 'libtoolize' directly.
 * Running autoconf ... 
Comment 8 Olivier DOLE 2008-04-01 21:27:50 UTC
(In reply to comment #7)
> (In reply to comment #4)
> > it seems to be a common bug: see this thread from Mike Frysinger for a clear
> > explanation: http://thread.gmane.org/gmane.linux.gentoo.devel/23449 .
> > I'd like to test the fix but emerge installs curl-7.18.1 with no problems for
> > me.
> > I see 2 possibilities: 
> > 1) run elibtoolize later in the ebuild. I mean after eaclocal or eautoheader
> > 2) If that still does not work, run "libtoolize --copy --force || die" before
> > eautoconf step.
> > 
> 
> I tried #2 and it compiled for me, but spit the following messages:
> 
>  * Running autoheader ...                                                      
>                                                                [ ok ]
>  * QA Notice: 'libtoolize' called by src_unpack: net-misc/curl-7.18.1
>  * Use autotools.eclass instead of calling 'libtoolize' directly.
>  * Running autoconf ... 
> 
Considering QA warning, I think eautoreconf may fix the problem. I had a look at eautoreconf definition in autotools.eclass and it seems that it does "libtoolize --copy --force step". Moreover it also run eaclocal, eautoconf and eautoheader.
So with this method, src-unpack() may look like this:
src_unpack() {
    unpack ${A}
    cd "${S}"
    epatch "${FILESDIR}"/curl-7.17.0-strip-ldflags.patch
    /usr/bin/perl -i.bak -pe 's/\bmv +([^-\s])/mv -f $1/g' aclocal.m4
    cp lib/config.h.in src/config.h.in
    eautoreconf
    eautomake
}

Comment 9 teidakankan 2008-04-01 23:09:42 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #4)
> > > it seems to be a common bug: see this thread from Mike Frysinger for a clear
> > > explanation: http://thread.gmane.org/gmane.linux.gentoo.devel/23449 .
> > > I'd like to test the fix but emerge installs curl-7.18.1 with no problems for
> > > me.
> > > I see 2 possibilities: 
> > > 1) run elibtoolize later in the ebuild. I mean after eaclocal or eautoheader
> > > 2) If that still does not work, run "libtoolize --copy --force || die" before
> > > eautoconf step.
> > > 
> > 
> > I tried #2 and it compiled for me, but spit the following messages:
> > 
> >  * Running autoheader ...                                                      
> >                                                                [ ok ]
> >  * QA Notice: 'libtoolize' called by src_unpack: net-misc/curl-7.18.1
> >  * Use autotools.eclass instead of calling 'libtoolize' directly.
> >  * Running autoconf ... 
> > 
> Considering QA warning, I think eautoreconf may fix the problem. I had a look
> at eautoreconf definition in autotools.eclass and it seems that it does
> "libtoolize --copy --force step". Moreover it also run eaclocal, eautoconf and
> eautoheader.
> So with this method, src-unpack() may look like this:
> src_unpack() {
>     unpack ${A}
>     cd "${S}"
>     epatch "${FILESDIR}"/curl-7.17.0-strip-ldflags.patch
>     /usr/bin/perl -i.bak -pe 's/\bmv +([^-\s])/mv -f $1/g' aclocal.m4
>     cp lib/config.h.in src/config.h.in
>     eautoreconf
>     eautomake
> }
> 

Okay, that worked here.  Cleaner.
Comment 10 Rafał Mużyło 2008-04-02 07:36:59 UTC
Two questions:
1. Why do you run eautomake after eautoreconf, when eautoreconf runs it anyway ?
2. What is the reason for this step: 
/usr/bin/perl -i.bak -pe 's/\bmv +([^-\s])/mv -f $1/g' aclocal.m4
Besides, this
cp lib/config.h.in src/config.h.in
seems pointless, cause those files seem to be the same before eutoreconf,
the problem is that autoheader modifies only one of them (first from AC_CONFIG_HEADERS), maybe this step should be moved after eautoreconf. You should ask somebody, who knows more about autotools, about this behavior.
Comment 11 Olivier DOLE 2008-04-02 08:25:42 UTC
(In reply to comment #10)
> Two questions:
> 1. Why do you run eautomake after eautoreconf, when eautoreconf runs it anyway
> ?
You are right. I did not see that eautomake was run by eautoreconf.

> 2. What is the reason for this step: 
> /usr/bin/perl -i.bak -pe 's/\bmv +([^-\s])/mv -f $1/g' aclocal.m4
The primary reason was due to bug #193149

> Besides, this
> cp lib/config.h.in src/config.h.in
> seems pointless, cause those files seem to be the same before eutoreconf,
> the problem is that autoheader modifies only one of them (first from
> AC_CONFIG_HEADERS), maybe this step should be moved after eautoreconf. You
> should ask somebody, who knows more about autotools, about this behavior.
> 
You are right I am very far from being an autotools expert. So any feedback from somebody who has autotools knowledge is welcome.
Comment 12 Daniel Black (RETIRED) gentoo-dev 2008-04-02 10:59:03 UTC
got away with a eautoreconf. 
curl-7.18.1 recommited.
if no errors by tommorrow i'll unmask it.

thanks all for you suggestions
Comment 13 Daniel Black (RETIRED) gentoo-dev 2008-04-03 10:47:27 UTC
unmasked and no comments that it doesn't work. sorry for the inconvenience caused.