1 |
On Friday 21 August 2009 03:48:27 Thomas Kahle wrote: |
2 |
> Mike Frysinger wrote: |
3 |
> > On Wednesday 19 August 2009 17:01:27 Thomas Kahle wrote: |
4 |
> >> Peter Volkov wrote: |
5 |
> >>> В Срд, 12/08/2009 в 00:03 +0200, Thomas Kahle пишет: |
6 |
> >>>> the following check in configure.ac fails with --as-needed but works |
7 |
> >>>> without it. Any hints what is wrong ? Thanks / Thomas |
8 |
> >>> |
9 |
> >>> Common reason for failure with --as-needed is the order of libraries. |
10 |
> >>> In you previous mail you wrote that with |
11 |
> >>> |
12 |
> >>> sed "s/\"-lntl\"/\"-lntl\" \"-lgf2x -lntl\"/" -i "${S}/configure.ac" |
13 |
> >>> |
14 |
> >>> it works but here: |
15 |
> >>>> for lib in "" "-lntl" "-lntl -lgf2x" |
16 |
> >>> |
17 |
> >>> I see different order. Try to change order of -lgf2x and -lntl inside |
18 |
> >>> ebuild. Also |
19 |
> >> |
20 |
> >> This change of order is actually since I tried what you suggested. I |
21 |
> >> find that this check fails just because the compile fails. It has |
22 |
> >> nothing to do with configure. So here is my problem stripped down: |
23 |
> >> |
24 |
> >> $cat ntlcheck.c |
25 |
> >> #include <NTL/tools.h> |
26 |
> >> int main () { _ntl_GetTime(); } |
27 |
> >> |
28 |
> >> g++ ntlcheck.c -lntl -lgf2x |
29 |
> >> works |
30 |
> > |
31 |
> > this is a bug in libntl.so. it uses gf2x symbols but doesnt link against |
32 |
> > it in libntl.so. you shouldnt have to also link against libgf2x.so. |
33 |
> |
34 |
> Thanks => bug #282174 |
35 |
|
36 |
i'm not suggesting this will fix your original problem btw. you might want to |
37 |
test to see if it does. |
38 |
-mike |