Re: Math::GMP and Net::SSH::Perl still fails

2006-08-06 Thread Celeste Suliin Burris
I had the same problem. I used the fixes found on

and it worked perfectly. 


Apparently without using the above patch on the configure script, libgmp-4.2.1
only creates a static library, and Math::GMP 2.0.4 requires a shared (dynamic)
library. From the bug report, it appears that you can drop back to libgmp-4.1.4
and it will also work.





> None of the ideas that were provide have worked for install the CPAN 
> libary 'Net::SSH::Perl" because of failures wtih
> 'Math::GMP'. This is a summary of what I have done base on input from 
> this list. Since there are other also complaining, what magic is 
> happening with those that get this install, what we doing wrong??
> 


Re: Math::GMP and Net::SSH::Perl still fails

2006-08-06 Thread Edward Moy

On Aug 6, 2006, at 9:39 AM, Michael Barto wrote:


pwbk2003:~/.cpan/build/Math-GMP-2.04 root# make
rm -f blib/arch/auto/Math/GMP/GMP.bundle
LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle - 
undefined dynamic_lookup -L/usr/local/lib GMP.o  -o blib/arch/auto/ 
Math/GMP/GMP.bundle   -lgmp
/usr/bin/ld: /usr/local/lib/libgmp.a(mode1o.o) has local relocation  
entries in non-writable section (__TEXT,__text)

collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Math/GMP/GMP.bundle] Error 1
pwbk2003:~/.cpan/build/Math-GMP-2.04 root#


The most common reason for the error "local relocation entries in non- 
writable section" is using -mdynamic-no-pic with bundles and dynamic  
libraries (it should only be used for applications).  Check your log  
and remove it for building GMP.bundle.


 
--

Edward Moy
Apple Computer, Inc.
[EMAIL PROTECTED]

(This message is from me as a reader of this list, and not a statement
from Apple.)



Re: Math::GMP and Net::SSH::Perl still fails

2006-08-06 Thread Wiggins d'Anconia
Michael Barto wrote:
> None of the ideas that were provide have worked for install the CPAN libary 
> 'Net::SSH::Perl" because of failures wtih
> 'Math::GMP'. This is a summary of what I have done base on input from this 
> list. 
> Since there are other also complaining, what magic is happening with those 
> that 
> get this install, what we doing wrong??
> 

I am not sure if I am remembering this correctly or not, but I believe
you only need Math::GMP if you are planning to use SSH Protocol 1, but
you need Math::PARI if you intend to use SSH Protocol 2. Someone should
double check the source, when I used Net::SSH::Perl on Solaris a while
back (couple of years) I had to downgrade Math::PARI and then run a
force install to skip the Math::GMP stuff, but the module WAS stable
(and granted that was Solaris).

http://danconia.org

[big snip]


Math::GMP and Net::SSH::Perl still fails

2006-08-06 Thread Michael Barto




None of the ideas that were provide have worked for install the CPAN
libary 'Net::SSH::Perl" because of failures wtih
'Math::GMP'. This is a summary of what I have done base on input from
this list. Since there are other also complaining, what magic is
happening with those that get this install, what we doing wrong??

The idea I have so far were to assign the PERL5LIB environmental
variable
and edit the Makefile.PL in the Math::GMP install.

I. I create a directory 

    /Users/mbarto/Development/Perl

    and downloaded gmp-4.2.1  from http://www.swox.com/gmp
    Untargzip the file I placed in this directory creating 
    
    /Users/mbarto/Development/Perl/gmp-4.2.1
    
II. I then perfomerd in this directory:

./configure build=powerpc-apple-darwin8.7.0
make
make check

make install

This create /usr/local/lib/Math/GMP.pm


III. I tried again

perl -MCPAN -e 'install Net::SSH::Perl'

with PERL5LIB=/usr/local/lib as an environmental variable.

Get these error;


Checking for optional modules

Checking if your kit is complete...
Looks good
Warning: prerequisite Math::GMP 1.04 not found.
Writing Makefile for Net::SSH::Perl

...

...
...


t/02-buffer..Can't locate loadable object for module GMP in @INC
(@INC contains:
/private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib
/private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/arch
/usr/local/lib /System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level
/Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6
/Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level
/Network/Library/Perl/5.8.6 /Network/Library/Perl
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6
/Library/Perl/5.8.1/darwin-thread-multi-2level
/Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 .
/System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6
/Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level
/Network/Library/Perl/5.8.6 /Network/Library/Perl
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6
/Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 .)
at t/02-buffer.t line 9
Compilation failed in require at t/02-buffer.t line 9.
BEGIN failed--compilation aborted at t/02-buffer.t line 9.
# Looks like your test died before it could output anything.
t/02-buffer..dubious

    Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-19
    Failed 19/19 tests, 0.00% okay
t/03-packet..Can't locate loadable object for module GMP in @INC
(@INC contains:
/private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib
/private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/arch
/usr/local/lib /System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level
/Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6
/Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level
/Network/Library/Perl/5.8.6 /Network/Library/Perl
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6
/Library/Perl/5.8.1/darwin-thread-multi-2level
/Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 .
/System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6
/Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level
/Network/Library/Perl/5.8.6 /Network/Library/Perl
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6
/Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 .)
at
/private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/Util/SSH1MP.pm
line 7
Compilation failed in require at
/private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/Util/SSH1MP.pm
line 7.
BEGIN failed--compilation aborted at
/private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/Util/SSH1MP.pm
line 7.
Compilation failed in require at
/private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/Util.pm
line 56.
BEGIN failed--compilation aborted at
/private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/Key/RSA1.pm
line 6.
Compilation failed in require at
/private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/SSH1.pm
line 13.
BEGIN failed-