cschwan/sage-on-gentoo — Issue #99: sage-4.7.2 fails to build
Author: strogdon
Created: 2011-11-07 04:09:19+00:00
State: open

sage-4.7.2 fails to build here:

x86_64-pc-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,--as-needed -march=opteron -O2 -pipe -fno-strict-aliasing build/temp.linux-x86_64-2.7/sage/libs/mwrank/mwrank.o build/temp.linux-x86_64-2.7/sa
ge/libs/mwrank/wrap.o -L/usr//lib -L/usr/lib64 -lcsage -lcurvesntl -lg0nntl -ljcntl -lrankntl -lntl -lgmp -lgmpxx -lstdc++ -lm -lpari -lstdc++ -lntl -lpari -lgmp -lpython2.7 -o build/lib.linux-x8
6_64-2.7/sage/libs/mwrank/mwrank.so
In file included from sage/libs/singular/singular.cpp:229:0:
/usr/include/singular/factory.h:40:30: fatal error: factory/cf_gmp.h: No such file or directory
compilation terminated.

I believe this sed line

sed -e "s:factory/cf_gmp.h:singular/cf_gmp.h:" \
-i factory.h || die

needs to be restored to libsingular-3.1.3.3.ebuild