I had exactly the same problem under Kubuntu Natty and using g++ 4.4 did fix the problem.
More precisely, I changed the symbolic links in /usr/bin to the older version ,
i.e. did a
$ rm /usr/bin/g++
$ ln -s /usr/bin/g++-4.4 /usr/bin/g++
(and the same for gcc)
Afterwards, with make distclean; ./configure; make; everything compiled and installed perfectly.
It did, however, not solve a different problem I'm having, which might be related (since it works perfectly on my office PC with Ubuntu Lucid, but not on my laptop with Kubuntu Natty):
I imported an extension that I wrote on my office PC (build... directory and Makefile were removed before importing). When I call a specific c++ function with signature
Code: Select all
perl::Object divisorByValueVector(perl::Object fan, Vector<Rational> values)
that is wrapped via
Code: Select all
Function4perl(&divisorByValueVector,"divisorByValueVector(fan::PolyhedralFan, Vector<Rational>)");
I get the following error message:
polymake: ERROR: Shared module compilation failed; see the error log below
/tmp/poly15024Taaaa0001.cc: In static member function âstatic sv* polymake::tropical::IndirectFunctionWrapper<Fptr>::call(Fptr*, sv**, char*) [with Fptr = pm::type2type<pm::perl::Object(pm::perl::Object, pm::Vector<pm::Rational>)>]â:
/tmp/poly15024Taaaa0001.cc:7: error: âfuncâ cannot be used as a function
make: *** [/tmp/poly15024Taaaa0001.o] Error 1
Again, I have no such problems on my office PC. Changing the wrapper to UserFunction4Perl also has no effect. I have several other c++ functions that all seem to work perfectly. Did someone experience similar problems? Might this be related to the OS update or am I missing something?