Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-devhelp
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-devhelp@g.o
From: Mike Frysinger <vapier@g.o>
Subject: Re: autotools and as-needed
Date: Fri, 21 Aug 2009 04:43:17 -0400
On Friday 21 August 2009 03:48:27 Thomas Kahle wrote:
> Mike Frysinger wrote:
> > On Wednesday 19 August 2009 17:01:27 Thomas Kahle wrote:
> >> Peter Volkov wrote:
> >>> В Срд, 12/08/2009 в 00:03 +0200, Thomas Kahle пишет:
> >>>> the following check in configure.ac fails with --as-needed but works
> >>>> without it. Any hints what is wrong ? Thanks / Thomas
> >>>
> >>> Common reason for failure with --as-needed is the order of libraries.
> >>> In you previous mail you wrote that with
> >>>
> >>> sed "s/\"-lntl\"/\"-lntl\" \"-lgf2x -lntl\"/" -i "${S}/configure.ac"
> >>>
> >>> it works but here:
> >>>> for lib in "" "-lntl" "-lntl -lgf2x"
> >>>
> >>> I see different order. Try to change order of -lgf2x and -lntl inside
> >>> ebuild. Also
> >>
> >> This change of order is actually since I tried what you suggested. I
> >> find that this check fails just because the compile fails. It has
> >> nothing to do with configure. So here is my problem stripped down:
> >>
> >> $cat ntlcheck.c
> >> #include <NTL/tools.h>
> >> int main () { _ntl_GetTime(); }
> >>
> >> g++ ntlcheck.c -lntl -lgf2x
> >> works
> >
> > this is a bug in libntl.so.  it uses gf2x symbols but doesnt link against
> > it in libntl.so.  you shouldnt have to also link against libgf2x.so.
>
> Thanks => bug #282174

i'm not suggesting this will fix your original problem btw.  you might want to 
test to see if it does.
-mike
Attachment:
signature.asc (This is a digitally signed message part.)
References:
autotools and as-needed
-- Thomas Kahle
Re: autotools and as-needed
-- Mike Frysinger
Re: autotools and as-needed
-- Thomas Kahle
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: autotools and as-needed
Next by thread:
new app - cafe text editor
Previous by date:
Re: autotools and as-needed
Next by date:
installing optional parts of other packages


Updated Jun 03, 2012

Summary: Archive of the gentoo-devhelp mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.