Subject: | [FIX] compilation error fixed on cygwin |
The default install fails to compile on Cygwin:
gcc -c -I ./pari-2.1.7/src -I./pari-2.1.7/src/headers
-I./pari-2.1.7/src -I./libPARI -DPERL_USE_SAFE_PUTENV
-fno-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O3
-DVERSION=\"2.010706\" -DXS_VERSION=\"2.010706\"
"-I/usr/lib/perl5/5.8/cygwin/CORE" -DPARI_VERSION_EXP=2001007
-DDEBUG_PARI -DLSB_in_U32=0 -DLONG_SHORTER_THAN_IV -Derr=pari_err
-DGCC_INLINE Pari.c
make[1]: Entering directory `/cygdrive/c/Documents and
Settings/jrockway/Application
Data/.cpanplus/5.8.7/build/Math-Pari-2.010706/libPARI'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/cygdrive/c/Documents and
Settings/jrockway/Application
Data/.cpanplus/5.8.7/build/Math-Pari-2.010706/libPARI'
Pari.xs: In function `findVariable':
Pari.xs:422: warning: cast to pointer from integer of different size
Pari.xs:438: warning: cast to pointer from integer of different size
Pari.xs:661:4: #error "LONG_SHORTER_THAN_IV not implemented"
However, if you uncomment the error and fix the syntax of what's inside
the block:
(line 667)
- GEN a = my_ulongtoi((ulong)(uv>>(8*sizeof(ulong)));
+ GEN a = my_ulongtoi((ulong)(uv>>(8*sizeof(ulong))));
Everything compiles fine and all the tests pass. If this is a broken
workaround, then there's a bug in your test suite :)
--
Jonathan Rockway <jrockway@cpan.org>