Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545318 - sci-mathematics/flint - Incompatible with ntl-9.*
Summary: sci-mathematics/flint - Incompatible with ntl-9.*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL: https://github.com/wbhart/flint2/issu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-02 12:31 UTC by Thomas Kahle (RETIRED)
Modified: 2015-04-05 11:19 UTC (History)
1 user (show)

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 2015-04-02 12:31:57 UTC
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
Comment 1 Patrick Lauer gentoo-dev 2015-04-03 06:31:15 UTC
+  03 Apr 2015; Patrick Lauer <patrick@gentoo.org> flint-2.4.5.ebuild:
+  Restrict ntl dep #545318
Comment 2 Thomas Kahle (RETIRED) gentoo-dev 2015-04-05 11:19:54 UTC
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)