With USE="ntl" and ntl-9.0.2 installed, flint fails to build: x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe -DFLINT_CPIMPORT=\"/usr/share/flint/CPimport.txt\" -I/var/tmp/portage/sci-mathematics/flint-2.4.5/work/flint-2.4.5 -I/usr/include -I/usr/include -I/usr/include -I/usr/include -c interfaces/NTL-interface.cpp -o build/interfaces/NTL-interface.lo; In file included from interfaces/NTL-interface.cpp:37:0: /usr/include/NTL/g_lip.h: In function ‘long int _ntl_gmaxalloc(_ntl_gbigint)’: /usr/include/NTL/g_lip.h:410:10: error: redefinition of ‘long int _ntl_gmaxalloc(_ntl_gbigint)’ long _ntl_gmaxalloc(_ntl_gbigint x) ^ In file included from /usr/include/NTL/lip.h:12:0, from /usr/include/NTL/ZZ.h:18, from interfaces/NTL-interface.cpp:32: /usr/include/NTL/g_lip.h:410:10: note: ‘long int _ntl_gmaxalloc(_ntl_gbigint)’ previously defined here long _ntl_gmaxalloc(_ntl_gbigint x) ^ Makefile:244: recipe for target 'build/interfaces/NTL-interface.lo' failed This is probably due to interface changes, so let's see what upstream has to say about it: https://github.com/wbhart/flint2/issues/131 Reproducible: Always
+ 03 Apr 2015; Patrick Lauer <patrick@gentoo.org> flint-2.4.5.ebuild: + Restrict ntl dep #545318
Now fixed for real by upstream patch. Thanks Francois. + 05 Apr 2015; Thomas Kahle <tomka@gentoo.org> +files/flint-2.4.5-ntl62.patch, + flint-2.4.5.ebuild: + Fix ntl compatibility (bug 545318)