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