Re: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-07 Thread Marc Girod


Marc Girod wrote:
 
 Thanks, because my own (naive) attempt failed on the configure stage,
 because of expr dumping core.
 
Thanks to the fixes to libgmp-3 by Bill, expr works for me now,
and I could successfully build and install libssh2-1.1 from the sources.
Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Re%3A-Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23850368p23909246.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-07 Thread Marc Girod


Marc Girod wrote:
 
 Thanks to the fixes to libgmp-3 by Bill[...]
 
I meant David! Sorry.
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Re%3A-Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23850368p23909269.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-07 Thread Marc Girod


Reini Urban wrote:
 
 I successfully ran all Net-SSH-Perl-1.34 tests.
 
Now I could build Math::GMP, so I did as well.
Same problems with make tests for Math::Pari
Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Re%3A-Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23850368p23913594.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-06 Thread Marc Girod


Dave Korn-6 wrote:
 
 As Larry says, I meant reinstall the standard distro versions.
 
Sorry, did that now, but I couldn't find from the mirror (kernel.org)
a new (-2) version of gmp... I still have 4.3.1-1.
Reinstall gave me the same versions again.
Running the rebase/peflags, I got btw 2 errors:
- /usr/bin/b2m.exe: skipped because nonexistent
- Warning: setting dynbase on file with no relocation info
(/usr/bin/tclpip84.dll)

Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Re%3A-Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23850368p23900362.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-06 Thread Marc Girod


Marc Girod wrote:
 
 Reinstall gave me the same versions again.
 
The last reinstall was thus a noop, but no, my perl broke.

  2 [main] perl5.10.0 3236 C:\cygwin2\bin\perl5.10.0.exe: *** fatal
error - unable to remap
\\?\C:\cygwin2\lib\perl5\5.10\i686-cygwin\auto\Socket\Socket.dll to same
address as parent(0x8B) != 0x153
  5 [main] perl5.10.0 3580 child_info::sync: wait failed, pid 3236,
Win32 error 183
284 [main] perl5.10.0 3580 fork: child 3236 - died waiting for dll
loading, errno 11
5095427 [main] perl5.10.0 3056 C:\cygwin2\bin\perl5.10.0.exe: *** fatal
error - unable to remap
\\?\C:\cygwin2\lib\perl5\5.10\i686-cygwin\auto\List\Util\Util.dll to same
address as parent(0x87) != 0x14D
305087457 [main] perl5.10.0 3580 child_info::sync: wait failed, pid 3056,
Win32 error 183
305087776 [main] perl5.10.0 3580 fork: child 3056 - died waiting for dll
loading, errno 11
...

I assume it must have been rebaseall/peflagsall...?
It worked before the last install.

Marc http://www.nabble.com/file/p23900479/cygcheck.090606 cygcheck.090606 
http://www.nabble.com/file/p23900479/setup.log.full setup.log.full 
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Re%3A-Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23850368p23900479.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-05 Thread Marc Girod


Yaakov (Cygwin/X) wrote:
 
 I'm just taking over libssh2, and it will be updated to 1.0 very soon.
 
Thanks, because my own (naive) attempt failed on the configure stage,
because of expr dumping core.

Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Re%3A-Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23850368p23890972.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-05 Thread Dave Korn
Marc Girod wrote:
 
 Yaakov (Cygwin/X) wrote:
 I'm just taking over libssh2, and it will be updated to 1.0 very soon.

 Thanks, because my own (naive) attempt failed on the configure stage,
 because of expr dumping core.
 
 Marc

  If you have rebased, please reinstall libgmp/libmpfr.  This looks like the
same as:

  http://cygwin.com/ml/cygwin/2009-06/msg00209.html

cheers,
  DaveK



--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-05 Thread Marc Girod


Dave Korn-6 wrote:
 
   If you have rebased, please reinstall libgmp/libmpfr.
 
Er... rebased what?
I have rebased all, only expr cannot be rebased (no symbols).
Can one rebase optimized executables?

Anyway, I used wget as advertised, but what then?
And besides...

gmp tar jft gmp-4.3.1-2.tar.bz2 

bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Child returned status 2
tar: Exiting with failure status due to previous errors
gmp bzip2 -tvv gmp-4.3.1-2.tar.bz2 
  gmp-4.3.1-2.tar.bz2: 
[1: huff+mtf data integrity (CRC) error in data

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

gmp bzip2recover gmp-4.3.1-2.tar.bz2 
bzip2recover 1.0.5: extracts blocks from damaged .bz2 files.
bzip2recover: searching for block boundaries ...
   block 1 runs from 80 to 0
   block 2 runs from 2169475 to 0
bzip2recover: splitting into blocks
   writing block 1 to `rec1gmp-4.3.1-2.tar.bz2' ...
   writing block 2 to `rec2gmp-4.3.1-2.tar.bz2' ...
bzip2recover: finished
gmp bzip2 -tvv gmp-4.3.1-2.tar.bz2 
  gmp-4.3.1-2.tar.bz2: 
[1: huff+mtf data integrity (CRC) error in data

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.



Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Re%3A-Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23850368p23892886.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-05 Thread Larry Hall (Cygwin)

Marc Girod wrote:


Dave Korn-6 wrote:

  If you have rebased, please reinstall libgmp/libmpfr.


Er... rebased what?
I have rebased all, only expr cannot be rebased (no symbols).
Can one rebase optimized executables?

Anyway, I used wget as advertised, but what then?


I think Dave was suggesting that you use 'setup.exe' to reinstall
these packages.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-05 Thread Dave Korn
Marc Girod wrote:
 
 Dave Korn-6 wrote:
   If you have rebased, please reinstall libgmp/libmpfr.

 Er... rebased what?
 I have rebased all, only expr cannot be rebased (no symbols).
 Can one rebase optimized executables?

  No, but expr.exe depends on libgmp and that's where the problem probably lies.

 Anyway, I used wget as advertised, but what then?

  As Larry says, I meant reinstall the standard distro versions.


cheers,
  DaveK

--
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: Re: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-04 Thread Marc Girod


Sisyphus wrote:
 
 Without checking, I think it's just that the version of libssh2 is too old
 for Net-SSH2-0.20.
 Net-SSH2-0.20 should build against libssh2 versions 0.19 and 1.0. What
 version of the library do you have ? You should be able to build
 libssh2-1.0 from source, if the binary being distributed by cygwin is too
 old ... it's just a question of how many  different roads you want to
 investigate, and how far down those different roads you're prepared to
 travel :-)
 
Indeed...
I am using the cygwin version, and it is 0.15-1.
I can look into the option of building from sources...
Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Re%3A-Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23850368p23865726.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-04 Thread Marc Girod


Reini Urban wrote:
 
 Since Math::Pari does not work, you need Math::GMP, right.
 But with this and selecting IDEA and Crypt::RSA
 I successfully ran all Net-SSH-Perl-1.34 tests.
 
 BTW: for reference the pari error:
 gcc-4 -c  -I ../pari-2.1.7/src -I../pari-2.1.7/src/headers 
 -I../pari-2.1.7/src/graph -I. -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ 
 -fno-strict-aliasing -pipe -fstack-protector -DUSEIMPORTLIB -O3 
 -DVERSION=\\ -DXS_VERSION=\\  -Derr=pari_err -DASMINLINE 
 -DGCC_INLINE -DDYNAMIC_PLOTTING -o mp.o ../pari-2.1.7/src/kernel/none/mp.c
 {standard input}: Assembler messages:
 {standard input}:4825: Error: suffix or operands invalid for `div'
 make[1]: *** [mp.o] Error 1
 make[1]: Leaving directory 
 `/cygdrive/f/cygwin/home/rurban/.cpan/build/Math-Pari-2.010801-Qx0008/libPARI'
 
I am sorry, but I don't quite follow you.
I could build Math::Pari...
I did it with the default gcc:

Math-Pari-2.010801 gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

My make test fails however:

Test Summary Report
---
t/00_Pari.t(Wstat: 65280 Tests: 30 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 546 tests but ran 30.
t/55_elliptic.t (Wstat: 2304 Tests: 3 Failed: 0)
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 46 tests but ran 3.
t/55_graph.t   (Wstat: 512 Tests: 16 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 28 tests but ran 16.
t/55_linear.t  (Wstat: 2304 Tests: 6 Failed: 0)
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 105 tests but ran 6.
t/55_nfields.t (Wstat: 2304 Tests: 16 Failed: 2)
  Failed tests:  5-6
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 161 tests but ran 16.
t/55_number.t  (Wstat: 2304 Tests: 8 Failed: 0)
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 83 tests but ran 8.
t/55_ploth.t   (Wstat: 512 Tests: 22 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 34 tests but ran 22.
Files=15, Tests=343, 37 wallclock secs ( 0.19 usr  0.09 sys + 19.34 cusr 
9.44 csys = 29.06 CPU)
Result: FAIL
Failed 7/15 test programs. 2/343 subtests failed.
make: *** [test_dynamic] Error 255


Er... in fact, I can see now that I installed it.
I shall remove it now.

Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Re%3A-Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23850368p23867664.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-04 Thread Marc Girod


Marc Girod wrote:
 
 My make test fails however:
 
 Test Summary Report
 ---
 t/00_Pari.t(Wstat: 65280 Tests: 30 Failed: 0)
   Non-zero exit status: 255
   Parse errors: Bad plan.  You planned 546 tests but ran 30.
 ...
 
If I run this first test alone, I reproducibly get it to fail after test 30:

Math-Pari-2.010801 perl -Iblib/lib -Iblib/arch t/00_Pari.t
1..546
ok 1
...
ok 30
panic: PARI narg value not attached at t/00_Pari.t line 97.
(in cleanup) panic: PARI narg value not attached during global 
destruction.

If I run it under the debugger, giving a 'continue', the error,
as it seems as reproducible, is after test 33:

Math-Pari-2.010801 make testdb TEST_FILE=t/00_Pari.t
...
/usr/bin/perl.exe -d -Iblib/lib -Iblib/arch t/00_Pari.t

Loading DB routines from perl5db.pl version 1.3
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(t/00_Pari.t:7):  $test = 0;
  DB1 c
1..546
ok 1
...
ok 33
panic: PARI narg value not attached at t/00_Pari.t line 106.
 at t/00_Pari.t line 106
Debugged program terminated.  Use q to quit or R to restart,
  use o inhibit_exit to avoid stopping after program termination,
  h q, h R or h o to get additional info.  
  DB1 q
make: *** [testdb_dynamic] Error 255


If I continue to test 33, then step a bit, and continue,
I get all the tests to pass:

Math-Pari-2.010801 perl -d -Iblib/lib -Iblib/arch t/00_Pari.t

Loading DB routines from perl5db.pl version 1.3
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(t/00_Pari.t:7):  $test = 0;
  DB1 c 104
1..546
ok 1
...
ok 33
main::(t/00_Pari.t:104):$g=(new Math::Pari [1,2;3,2])**-1;
  DB2 s
Math::Pari::new(blib/lib/Math/Pari.pm:1030):
1030: shift;
  DB2 r
scalar context return from Math::Pari::new: 0  Math::Pari=ARRAY(0x1e66378)
   0  Math::Pari=SCALAR(0x1e7ffe8)
  - 2136213336
   1  Math::Pari=SCALAR(0x1e813d8)
  - 2136213324
1  Math::Pari=ARRAY(0x1e7f868)
   0  Math::Pari=SCALAR(0x1e7ff40)
  - 2136213300
   1  Math::Pari=SCALAR(0x1e81408)
  - 2136213288
main::(t/00_Pari.t:106):test($g == $gg);# 34
  DB2 c
ok 34
...
# `-100' == Perl `-100' ==
Math::Pari `-9.99E21'
ok 546
Debugged program terminated.  Use q to quit or R to restart,
  use o inhibit_exit to avoid stopping after program termination,
  h q, h R or h o to get additional info.  
  DB2 q


I guess this kind of behaviour means: bloda interference?
What can I do?

Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Re%3A-Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23850368p23867903.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-04 Thread Yaakov (Cygwin/X)

On 04/06/2009 03:21, Marc Girod wrote:

Indeed...
I am using the cygwin version, and it is 0.15-1.
I can look into the option of building from sources...


I'm just taking over libssh2, and it will be updated to 1.0 very soon.


Yaakov

--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-03 Thread Marc Girod


Larry Hall (Cygwin) wrote:
 
 Try another mirror.  It's listed on one or both of the mirrors below:
 
 ftp://sourceware.mirrors.tds.net
 ftp://mirrors.kernel.org
 
OK, Thanks! Got that from the latter.
However now that I compile the perl CPAN module: Math::GMP 2.05,
I get a lot of compilation errors:

gcc -c   -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe
-I/usr/local/include -DUSEIMPORTLIB -O3   -DVERSION=\2.05\
-DXS_VERSION=\2.05\  -I/usr/lib/perl5/5.10/i686-cygwin/CORE   GMP.c
GMP.c: In function `XS_Math__GMP_destroy':
GMP.c:161: warning: cast to pointer from integer of different size
...

The same for nearly all the functions, but here is the one mentioned above:

Math-GMP-2.05 perl -nle 'print $.: $_ if 145..171' GMP.c
145: XS(XS_Math__GMP_destroy); /* prototype to pass -Wmissing-prototypes */
146: XS(XS_Math__GMP_destroy)
147: {
148: #ifdef dVAR
149: dVAR; dXSARGS;
150: #else
151: dXSARGS;
152: #endif
153: if (items != 1)
154:Perl_croak(aTHX_ Usage: %s(%s), Math::GMP::destroy, n);
155: PERL_UNUSED_VAR(cv); /* -W */
156: {
157:mpz_t * n;
158: 
159: if (sv_derived_from(ST(0), Math::GMP)) {
160: IV tmp = SvIV((SV*)SvRV(ST(0)));
161: n = (mpz_t *) tmp;
162: }
163: else
164: croak(n is not of type Math::GMP);
165: #line 90 GMP.xs
166: mpz_clear(*n);
167: free(n);
168: #line 169 GMP.c
169: }
170: XSRETURN_EMPTY;
171: }

mpz_t is typdedef'ed  in /usr/include/gmp.h
(I hope the __GNU_MP__ concerns us...):

typedef struct
{
  int _mp_alloc;/* Number of *limbs* allocated and pointed
   to by the _mp_d field.  */
  int _mp_size; /* abs(_mp_size) is the number of limbs the
   last field points to.  If _mp_size is
   negative this is a negative number.  */
  mp_limb_t *_mp_d; /* Pointer to the limbs.  */
} __mpz_struct;

#endif /* __GNU_MP__ */

typedef __mpz_struct MP_INT;/* gmp 1 source compatibility */
typedef __mpz_struct mpz_t[1];


Where does IV come from is what I'll try to find next.

Marc
-- 
View this message in context: 
http://www.nabble.com/Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23830861p23849366.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-03 Thread Marc Girod


Marc Girod wrote:
 
 Where does IV come from is what I'll try to find next.
 
This seems to be from the perlapi:

   sv_iv   A private implementation of the SvIVx macro for compilers
   which can't cope with complex macro expressions. Always use
the
   macro instead.

   IV  sv_iv(SV* sv)

In /usr/lib/perl5/5.10/i686-cygwin/CORE/perl.h:


...
/*
The IV type is supposed to be long enough to hold any integral
value or a pointer.
--Andy DoughertyAugust 1996
*/

typedef IVTYPE IV;


Now, you'd ask... what about IVTYPE?

/usr/lib/perl5/5.10/i686-cygwin/CORE/config.h has:

/* IVTYPE:
 *  This symbol defines the C type used for Perl's IV.
 */
...
#define IVTYPE  long long   /**/

/usr/lib/perl5/5.10/i686-cygwin/CORE/uconfig.h this:

#define IVTYPE  long/**/

and /usr/lib/perl5/5.10/i686-cygwin/Devel/PPPort.pm various definitions
depending on context:

#ifdef INTSIZE
#ifndef IVSIZE
#  define IVSIZE INTSIZE
#endif

#endif
#  else
#if defined(convex) || defined(uts)
#ifndef IVTYPE
#  define IVTYPE long long
#endif
...
#  ifdef LONGLONGSIZE
#ifndef IVSIZE
#  define IVSIZE LONGLONGSIZE
#endif

#  endif
#else
#ifndef IVTYPE
#  define IVTYPE long
#endif

So, it very much depends which definition is hit first...

Marc
-- 
View this message in context: 
http://www.nabble.com/Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23830861p23849850.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Re: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-03 Thread sisyphus1




 Marc Girod marc.gi...@gmail.com wrote:

 I get a lot of compilation errors:
 
 gcc -c   -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing 
 -pipe
 -I/usr/local/include -DUSEIMPORTLIB -O3   -DVERSION=\2.05\
 -DXS_VERSION=\2.05\  -I/usr/lib/perl5/5.10/i686-cygwin/CORE   GMP.c
 GMP.c: In function `XS_Math__GMP_destroy':
 GMP.c:161: warning: cast to pointer from integer of different size
 ...

No error there - just a warning, but that's not going to stop the compilation 
and should not be a problem. The warning can usually be silenced by using 
INT2PTR().

 160: IV tmp = SvIV((SV*)SvRV(ST(0)));
 161: n = (mpz_t *) tmp;

Try:
  n = INT2PTR(mpz_t*, tmp);

I'm not sure about that being the fix - but it won't take long to test.

Cheers,
Rob




Cheers,
Rob

--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-03 Thread Marc Girod


Sisyphus wrote:
 
 No error there - just a warning, but that's not going to stop the
 compilation and should not be a problem.
Correct, but after I install the result, trying to use it dumps core,
which is why I suspected this (no other errors).

e.g. 'perl Makefile.PL' for Net-SSH-Perl-1.34...

I join a perl.exe.stackdump...
http://www.nabble.com/file/p23850818/perl.exe.stackdump perl.exe.stackdump 
Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Re%3A-Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23850368p23850818.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-03 Thread sisyphus1




 Marc Girod marc.gi...@gmail.com wrote:

  No error there - just a warning, but that's not going to stop the
  compilation and should not be a problem.
 Correct, but after I install the result, trying to use it dumps core,
 which is why I suspected this (no other errors).

Any errors during the 'make test' phase of the Math-GMP-2.05 build ? 

I've seen quite a few reservations expressed re Net::SSH::Perl. Net::SSH2 seems 
to be a popular alternative (assuming you don't need the SSH1 protocol). 

I've found Net::SSH2 to be quite good (though I've only used it on 'native' 
win32) - haven't tried Net::SSH::Perl.

Cheers,
Rob

--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-03 Thread Marc Girod


Sisyphus wrote:
 
 I've found Net::SSH2 to be quite good (though I've only used it on
 'native' win32) - haven't tried Net::SSH::Perl.
 
Thanks. tried it.
However, 'perl Makefile.PL' doesn't seem to find the bits I installed from
libssh2-devel.
I had to set:

my $lib = '/usr/lib';
my $inc = '/usr/include';

Even with those, the compilation fails:

gcc -c  -I/usr/include -I. -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__
-fno-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O3  
-DVERSION=\0.20\ -DXS_VERSION=\0.20\ 
-I/usr/lib/perl5/5.10/i686-cygwin/CORE   SSH2.c
In file included from SSH2.xs:11:
ppport.h:3042:1: warning: PERL_UNUSED_DECL redefined
In file included from SSH2.xs:8:
/usr/lib/perl5/5.10/i686-cygwin/CORE/perl.h:317:1: warning: this is the
location of the previous definition
SSH2.c: In function `XS_Net__SSH2_blocking':
SSH2.c:708: warning: cast to pointer from integer of different size
SSH2.c: In function `XS_Net__SSH2_DESTROY':
SSH2.c:736: warning: cast to pointer from integer of different size
SSH2.xs: In function `XS_Net__SSH2_version':
SSH2.xs:581: error: `LIBSSH2_VERSION_NUM' undeclared (first use in this
function)
SSH2.xs:581: error: (Each undeclared identifier is reported only once
SSH2.xs:581: error: for each function it appears in.)
...
make: *** [SSH2.o] Error 1

Marc
-- 
View this message in context: 
http://www.nabble.com/Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23830861p23851728.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-03 Thread Marc Girod


Sisyphus wrote:
 
 Any errors during the 'make test' phase of the Math-GMP-2.05 build ? 
 
Yes. Sorry: I forgot about them.
I attach the transcript.
I couldn't build Net::SSH2...
Marc http://www.nabble.com/file/p23852073/mathgmp.test mathgmp.test 
-- 
View this message in context: 
http://www.nabble.com/Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23830861p23852073.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-03 Thread Reini Urban

Marc Girod schrieb:

Larry Hall (Cygwin) wrote:

Try another mirror.  It's listed on one or both of the mirrors below:

ftp://sourceware.mirrors.tds.net
ftp://mirrors.kernel.org


OK, Thanks! Got that from the latter.
However now that I compile the perl CPAN module: Math::GMP 2.05,
I get a lot of compilation errors:

gcc -c   -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe
-I/usr/local/include -DUSEIMPORTLIB -O3   -DVERSION=\2.05\
-DXS_VERSION=\2.05\  -I/usr/lib/perl5/5.10/i686-cygwin/CORE   GMP.c
GMP.c: In function `XS_Math__GMP_destroy':
GMP.c:161: warning: cast to pointer from integer of different size
...


That's a warning and it is expected, but this is not an error.
cygwin has a lot of wrong intsize warnings because we are one of the 
rare 64bitint platforms, which are mostly untested.

You can safely ignore these warnings.
For some major packages I try to send patches, but for Math::GMP not yet.

rur...@reini ~/.cpan/build/Math-GMP-2.05-9WIuVd
$ make test
/usr/bin/perl.exe -MExtUtils::Command::MM -e test_harness(0, 
'blib/lib', 'blib/arch') t/*.t
t/00_signature.skipped: Set the environment variable TEST_SIGNATURE 
to enable this test

t/01_gmppm.ok
t/99_perlcriticskipped: Set the environment variable TEST_CRITIC to 
enable this test
t/99_pod...skipped: Set the environment variable TEST_AUTHOR to 
enable this test
t/99_spellcheckskipped: Set the environment variable TEST_SPELL to 
enable this test

t/99_yaml..ok
All tests successful.
Files=6, Tests=354,  1 wallclock secs ( 0.06 usr  0.03 sys +  0.62 cusr 
 0.28 csys =  0.99 CPU)

Result: PASS

--
Reini Urban
http://phpwiki.org/  http://murbreak.at/

--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-03 Thread Reini Urban

Marc Girod schrieb:


Sisyphus wrote:

No error there - just a warning, but that's not going to stop the
compilation and should not be a problem.

Correct, but after I install the result, trying to use it dumps core,
which is why I suspected this (no other errors).

e.g. 'perl Makefile.PL' for Net-SSH-Perl-1.34...

I join a perl.exe.stackdump...
http://www.nabble.com/file/p23850818/perl.exe.stackdump perl.exe.stackdump 


Since Math::Pari does not work, you need Math::GMP, right.
But with this and selecting IDEA and Crypt::RSA
I successfully ran all Net-SSH-Perl-1.34 tests.

BTW: for reference the pari error:
gcc-4 -c  -I ../pari-2.1.7/src -I../pari-2.1.7/src/headers 
-I../pari-2.1.7/src/graph -I. -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ 
-fno-strict-aliasing -pipe -fstack-protector -DUSEIMPORTLIB -O3 
-DVERSION=\\ -DXS_VERSION=\\  -Derr=pari_err -DASMINLINE 
-DGCC_INLINE -DDYNAMIC_PLOTTING -o mp.o ../pari-2.1.7/src/kernel/none/mp.c

{standard input}: Assembler messages:
{standard input}:4825: Error: suffix or operands invalid for `div'
make[1]: *** [mp.o] Error 1
make[1]: Leaving directory 
`/cygdrive/f/cygwin/home/rurban/.cpan/build/Math-Pari-2.010801-Qx0008/libPARI'


--
Reini Urban
http://phpwiki.org/  http://murbreak.at/

--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-03 Thread Marc Girod

Excellent!

Reini Urban wrote:
 
 t/01_gmppm.ok
 
So this seems to be our only difference.

Math-GMP-2.05 make testdb TEST_FILE=t/01_gmppm.t
/usr/bin/perl.exe -d -Iblib/lib -Iblib/arch t/01_gmppm.t

Loading DB routines from perl5db.pl version 1.3
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

Signal SEGV at blib/lib/Math/GMP.pm line 87
require Math/GMP.pm called at t/01_gmppm.t line 6
main::BEGIN() called at /usr/lib/perl5/5.10/i686-cygwin/DynaLoader.pm 
line
0
eval {...} called at /usr/lib/perl5/5.10/i686-cygwin/DynaLoader.pm line 0


This seems to hang below that point...

Line 87 is:

bootstrap Math::GMP $VERSION;

Marc
-- 
View this message in context: 
http://www.nabble.com/Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23830861p23855706.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Re: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-03 Thread sisyphus1




 Marc Girod marc.gi...@gmail.com wrote:

 SSH2.xs:581: error: `LIBSSH2_VERSION_NUM' undeclared (first use in this
 function)

Without checking, I think it's just that the version of libssh2 is too old for 
Net-SSH2-0.20.
Net-SSH2-0.20 should build against libssh2 versions 0.19 and 1.0. What version 
of the library do you have ? You should be able to build libssh2-1.0 from 
source, if the binary being distributed by cygwin is too old ... it's just a 
question of how many  different roads you want to investigate, and how far down 
those different roads you're prepared to travel :-)

Cheers,
Rob

--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-02 Thread Dave Korn
Marc Girod wrote:
 Trying to install the perl CPAN package Math::GMP (as a requisite for
 Net::SSH::Perl).
 I am on cygwin 1.7, and do have:
 
 2009 cygcheck -c libgmp3
 Cygwin Package Information
 Package  VersionStatus
 libgmp3  4.3.1-1OK
 2009 cygcheck -l libgmp3
 /usr/bin/cyggmp-3.dll
 /usr/bin/cygmp-3.dll
 
 However, the Makefile.PL has:
 
'LIBS' = ['-lgmp'],
 
 and will refuse to consider the dlls above.
 I tried '-lgmp-3' to no avail.
 
 Is there syntactic sugar to fulfill the expectations?

  You need to install the related libgmp-devel package, which contains the
libgmp.dll.a import library in /usr/lib, and the build will then link against
that - avoiding any concern about a version number - instead of trying to link
directly against the DLL as a fallback, which is what is going on here.

cheers,
  DaveK


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-02 Thread Marc Girod


Dave Korn-6 wrote:
 
 You need to install the related libgmp-devel package
 
Thanks. Now, sorry, but how do I do that?
I can see the path to this package with:

  cygcheck -p libgmp-devel

probably this one:

  libgmp-devel/libgmp-devel-4.2.4-1 Development library for GMP arbitrary
precision arithmetic library

But setup doesn't offer it to me... at least not the mirrors I have looked
at
(actually, there is a problem right now with the Irish mirror at heanet:
Unable to get setup-2.ini )
-- 
View this message in context: 
http://www.nabble.com/Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23830861p23833375.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-02 Thread Larry Hall (Cygwin)

Marc Girod wrote:


Dave Korn-6 wrote:

You need to install the related libgmp-devel package


Thanks. Now, sorry, but how do I do that?
I can see the path to this package with:

  cygcheck -p libgmp-devel

probably this one:

  libgmp-devel/libgmp-devel-4.2.4-1 Development library for GMP arbitrary
precision arithmetic library

But setup doesn't offer it to me... at least not the mirrors I have looked
at
(actually, there is a problem right now with the Irish mirror at heanet:
Unable to get setup-2.ini )


Try another mirror.  It's listed on one or both of the mirrors below:

ftp://sourceware.mirrors.tds.net
ftp://mirrors.kernel.org

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-02 Thread Christopher Faylor
On Tue, Jun 02, 2009 at 01:17:24PM -0400, Larry Hall (Cygwin) wrote:
Marc Girod wrote:
 
 Dave Korn-6 wrote:
 You need to install the related libgmp-devel package

 Thanks. Now, sorry, but how do I do that?
 I can see the path to this package with:
 
   cygcheck -p libgmp-devel
 
 probably this one:
 
   libgmp-devel/libgmp-devel-4.2.4-1  Development library for GMP arbitrary
 precision arithmetic library
 
 But setup doesn't offer it to me... at least not the mirrors I have looked
 at
 (actually, there is a problem right now with the Irish mirror at heanet:
 Unable to get setup-2.ini )

Try another mirror.  It's listed on one or both of the mirrors below:

ftp://sourceware.mirrors.tds.net
ftp://mirrors.kernel.org

setup-2.ini was screwed up because of the recent sourceware.org outage.
It should slowly come back to life soon.  Unfortunately the mirror
accuracy checker currently ignores the Cygwin 1.7 repository so it
doesn't know when a mirror is bolluxed there.

cgf

--
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/