Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282174 - dev-libs/ntl-5.5.1 uses gf2x symbols but doesnt link against it in libntl.so
Summary: dev-libs/ntl-5.5.1 uses gf2x symbols but doesnt link against it in libntl.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-21 07:47 UTC by Thomas Kahle (RETIRED)
Modified: 2009-08-26 18:36 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kahle (RETIRED) gentoo-dev 2009-08-21 07:47:18 UTC
If the gf2x use flag is set ntl links against dev-libs/gf2x. 

The final library libntl.so. uses gf2x symbols but does not link against it. 

Here is a sample file:
$cat ntlcheck.c
#include <NTL/tools.h>
int main () { _ntl_GetTime(); }

$ g++ ntlcheck.c -lntl                                                        09:42:01 Fri,21.Aug
/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../libntl.so: undefined reference to `gf2x_mul'
collect2: ld returned 1 exit status

$g++ ntlcheck.c -lntl -lgf2x
works, but -lg2x should not be necessary. 

In particular 
$g++ -Wl,--as-needed ntlcheck.c -lntl -lgf2x 
will fail !

Reproducible: Always
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2009-08-26 18:36:00 UTC
Should be fixed in ntl-5.5.2. Re-open if not.