Subject: | Math::GMPz 0.27 uses __GMP_CC and __GMP_CFLAGS which require recent versions of GMP |
These flags were added to GMP on 2008-07-23, the relevant part of the
GMP Changelog:
2008-07-23 Torbjorn Granlund <tege@gmplib.org>
* gmp-h.in (__GMP_CC): New define, undocumented for now.
(__GMP_CFLAGS): Likewise.
I think this corresponds to version 4.2.3, since I have 4.2.2 and it I
do not have such defines in my gmp.h :
cp GMPz.pm blib/lib/Math/GMPz.pm
/usr/bin/perl5.10 /opt/local/lib/perl5/5.10.0/ExtUtils/xsubpp -typemap
/opt/local/lib/perl5/5.10.0/ExtUtils/typemap -typemap typemap GMPz.xs >
GMPz.xsc && mv GMPz.xsc GMPz.c
cc -c -I/opt/local/include -I/opt/local/include -fno-common
-DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe
-I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"0.27\"
-DXS_VERSION=\"0.27\"
"-I/opt/local/lib/perl5/5.10.0/darwin-2level/CORE" -DNEWPERL GMPz.c
GMPz.xs: In function ‘Rmpz_get_d_2exp’:
GMPz.xs:365: warning: pointer targets in passing argument 1 of
‘__gmpz_get_d_2exp’ differ in signedness
GMPz.xs: In function ‘___GMP_CC’:
GMPz.xs:3905: error: ‘__GMP_CC’ undeclared (first use in this function)
GMPz.xs:3905: error: (Each undeclared identifier is reported only once
GMPz.xs:3905: error: for each function it appears in.)
GMPz.xs: In function ‘___GMP_CFLAGS’:
GMPz.xs:3910: error: ‘__GMP_CFLAGS’ undeclared (first use in this function)
make: *** [GMPz.o] Error 1
Are the flags still undocumented in GMP? That kind of determines where
to go from here.