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
Should be fixed in ntl-5.5.2. Re-open if not.