Re: Perl, the GMP library, and the Math::BigInt::GMP module
Hallo Peter, Am Donnerstag, 9. Oktober 2003 um 14:13 schriebst du: > I'll see if I can find the fix again and then will ask the maintainer > why it is still failing. >>> As a workaround try creating a symlink libgmp.dll.a libgmp.a or >>> create an empty libgmp.a in /usr/lib. >> I made the symlink >>/usr/lib/libgmp.a -> /usr/lib/libgmp.dll.a I fixed this in Kid.pm which is part of perl's MakeMaker, will release a new perl as soon as possible. >> and it now builds, but with many errors: > I wrote the maintainer about it, cannot say what the problem is. I figured that the GMP library on Cygwin is broken. Either wait until the maintainer releases a better version or compile GMP yourself. Regards, Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Perl, the GMP library, and the Math::BigInt::GMP module
Peter schrieb: > "Gerrit @ cygwin" <[EMAIL PROTECTED]> wrote: >> This ia a problem with MakeMaker. It just looks for .a >> libraries and doesn't see the .dll.a import library, I thought >> it was fixed, which version of perl are you using? > I am using Perl 5.8.0-5, with MakeMaker version 6.17. I'll see if I can find the fix again and then will ask the maintainer why it is still failing. >> As a workaround try creating a symlink libgmp.dll.a libgmp.a or >> create an empty libgmp.a in /usr/lib. > I made the symlink >/usr/lib/libgmp.a -> /usr/lib/libgmp.dll.a > and it now builds, but with many errors: I wrote the maintainer about it, cannot say what the problem is. Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Perl, the GMP library, and the Math::BigInt::GMP module
"Gerrit @ cygwin" <[EMAIL PROTECTED]> wrote: > This ia a problem with MakeMaker. It just looks for .a > libraries and doesn't see the .dll.a import library, I thought > it was fixed, which version of perl are you using? I am using Perl 5.8.0-5, with MakeMaker version 6.17. > As a workaround try creating a symlink libgmp.dll.a libgmp.a or > create an empty libgmp.a in /usr/lib. I made the symlink /usr/lib/libgmp.a -> /usr/lib/libgmp.dll.a and it now builds, but with many errors: Writing Makefile for Math::BigInt::GMP cp lib/Math/BigInt/GMP.pm blib/lib/Math/BigInt/GMP.pm /usr/bin/perl.exe /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap GMP.xs > GMP.xsc && mv GMP.xsc GMP.c gcc -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O3 -DVERSION=\"1.11\" -DXS_VERSION=\"1.11\" "-I/ usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE" GMP.c GMP.c: In function `XS_Math__BigInt__GMP_destroy': GMP.c:146: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP___stringify': GMP.c:176: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP__str': GMP.c:219: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP__as_hex': [...] GMP.c:1223: warning: cast to pointer from integer of different size GMP.c:1230: warning: cast to pointer from integer of different size Running Mkbootstrap for Math::BigInt::GMP () chmod 644 GMP.bs rm -f blib/arch/auto/Math/BigInt/GMP/GMP.dll LD_RUN_PATH="" ld2 -s -L/usr/local/lib GMP.o -o blib/arch/auto/Math/BigInt/GMP/GMP.dll /usr/lib/perl5/5.8.0/cygwin-mu lti-64int/CORE/libperl.dll.a -lgmp gcc -shared -o GMP.dll -Wl,--out-implib=libGMP.dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388 608 \ -s -L/usr/local/lib GMP.o /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a -lgmp Creating library file: libGMP.dll.a mv GMP.dll libGMP.dll.a blib/arch/auto/Math/BigInt/GMP/ chmod 755 blib/arch/auto/Math/BigInt/GMP/GMP.dll cp GMP.bs blib/arch/auto/Math/BigInt/GMP/GMP.bs chmod 644 blib/arch/auto/Math/BigInt/GMP/GMP.bs /usr/bin/make -- OK The "make test" step fails with zillion errors: Running make test /usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/bigfltpm# Test 1 got: 'Math::BigInt::Calc' (t/bigfltpm.inc at line 3) # Expected: 'Math::BigInt::GMP' t/bigfltpmFAILED test 1 Failed 1/1627 tests, 99.94% okay t/bigintg.Can't load '../blib/arch/auto/Math/BigInt/GMP/GMP.dll' for module Math::BigInt::GMP: dlopen: Win32 error 9 98 at /usr/lib/perl5/5.8.0/cygwin-multi-64int/DynaLoader.pm line 229. at t/bigintg.t line 18 Compilation failed in require at t/bigintg.t line 18. BEGIN failed--compilation aborted at t/bigintg.t line 18. t/bigintg.dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-117 Failed 117/117 tests, 0.00% okay t/bigintpmok 1/2365# Test 2 got: (bigintpm.inc at line 193) # Expected: '1234-345' # Test 3 got: (bigintpm.inc at line 193 fail #2) t/bigintpmNOK 3# Expected: '3' [...] Peter -- Peter J. Acklam - [EMAIL PROTECTED] - http://home.online.no/~pjacklam -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Perl, the GMP library, and the Math::BigInt::GMP module
Hallo Peter, Am Mittwoch, 8. Oktober 2003 um 07:50 schriebst du: > I have installed the latest versions of Perl and the GMP library, > and want to install the Math::BigInt::GMP Perl module which makes > use of this GMP library, but I can't make them play together. > There is a complaint "No library found for -lgmp", but I know the > library is installed. I can also see the files: >$ find /usr/lib /usr/local/lib -type f | grep -i gmp >/usr/lib/libgmp.dll.a >/usr/lib/libgmp.la >/usr/lib/w32api/libigmpagnt.a This ia a problem with MakeMaker. It just looks for .a libraries and doesn't see the .dll.a import library, I thought it was fixed, which version of perl are you using? As a workaround try creating a symlink libgmp.dll.a libgmp.a or create an empty libgmp.a in /usr/lib. > Below are the results from my attempt. What am I doing wrong? > What must I do to get it working? [...] Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Perl, the GMP library, and the Math::BigInt::GMP module
I have installed the latest versions of Perl and the GMP library, and want to install the Math::BigInt::GMP Perl module which makes use of this GMP library, but I can't make them play together. There is a complaint "No library found for -lgmp", but I know the library is installed. I can also see the files: $ find /usr/lib /usr/local/lib -type f | grep -i gmp /usr/lib/libgmp.dll.a /usr/lib/libgmp.la /usr/lib/w32api/libigmpagnt.a Below are the results from my attempt. What am I doing wrong? What must I do to get it working? cpan> install Math::BigInt::GMP Running install for module Math::BigInt::GMP Running make for T/TE/TELS/math/Math-BigInt-GMP-1.11.tar.gz Checksum for /.cpan/sources/authors/id/T/TE/TELS/math/Math-BigInt-GMP-1.11.tar.gz ok Math-BigInt-GMP-1.11/ Math-BigInt-GMP-1.11/t/ Math-BigInt-GMP-1.11/t/bigintg.t Math-BigInt-GMP-1.11/t/bigintpm.t Math-BigInt-GMP-1.11/t/bigintpm.inc Math-BigInt-GMP-1.11/t/bigfltpm.t Math-BigInt-GMP-1.11/t/bigfltpm.inc Math-BigInt-GMP-1.11/lib/ Math-BigInt-GMP-1.11/lib/Math/ Math-BigInt-GMP-1.11/lib/Math/BigInt/ Math-BigInt-GMP-1.11/lib/Math/BigInt/GMP.pm Math-BigInt-GMP-1.11/BUGS Math-BigInt-GMP-1.11/TODO Math-BigInt-GMP-1.11/GMP.xs Math-BigInt-GMP-1.11/SIGNATURE Math-BigInt-GMP-1.11/LICENSE Math-BigInt-GMP-1.11/README Math-BigInt-GMP-1.11/Makefile.PL Math-BigInt-GMP-1.11/typemap Math-BigInt-GMP-1.11/INSTALL Math-BigInt-GMP-1.11/CHANGES Math-BigInt-GMP-1.11/CREDITS Math-BigInt-GMP-1.11/MANIFEST Removing previously used /.cpan/build/Math-BigInt-GMP-1.11 CPAN.pm: Going to build T/TE/TELS/math/Math-BigInt-GMP-1.11.tar.gz Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lgmp Writing Makefile for Math::BigInt::GMP cp lib/Math/BigInt/GMP.pm blib/lib/Math/BigInt/GMP.pm /usr/bin/perl.exe /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap GMP.xs > GMP.xsc && mv GMP.xsc GMP.c gcc -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O3 -DVERSION=\"1.11\" -DXS_VERSION=\"1.11\" "-I/usr/lib/perl5/5.8.0/ cygwin-multi-64int/CORE" GMP.c GMP.c: In function `XS_Math__BigInt__GMP_destroy': GMP.c:146: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP___stringify': GMP.c:176: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP__str': GMP.c:219: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP__as_hex': GMP.c:262: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP__as_bin': GMP.c:302: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP__modpow': GMP.c:339: warning: cast to pointer from integer of different size GMP.c:346: warning: cast to pointer from integer of different size GMP.c:353: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP_mmod_gmp': GMP.c:381: warning: cast to pointer from integer of different size GMP.c:388: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP__add': GMP.c:417: warning: cast to pointer from integer of different size GMP.c:424: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP__inc': GMP.c:453: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP__dec': GMP.c:481: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP_sub_two': GMP.c:509: warning: cast to pointer from integer of different size GMP.c:516: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP__rsft': GMP.c:552: warning: cast to pointer from integer of different size GMP.c:559: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP__lsft': GMP.c:605: warning: cast to pointer from integer of different size GMP.c:612: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP__mul': GMP.c:651: warning: cast to pointer from integer of different size GMP.c:658: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP_div_two': GMP.c:687: warning: cast to pointer from integer of different size GMP.c:694: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP_bdiv_two': GMP.c:726: warning: cast to pointer from integer of different size GMP.c:733: warning: cast to pointer from integer of different size GMP.c: In function `XS_Math__BigInt__GMP__mod': GMP.c:766: warning: cast to poin