Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / August 2006



Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Barto - 06 Aug 2006 17:39 GMT
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--compilation aborted at
/private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/SSH1.pm
line 13.
Compilation failed in require at
/private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl.pm
line 54.
# Looks like your test died before it could output anything.
t/03-packet......dubious                                                    

       Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-10
       Failed 10/10 tests, 0.00% okay
t/04-config......ok                                                          

t/05-cipher......ok                                                          

t/06-circular....ok                                                          

Failed Test   Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/02-buffer.t  255 65280    19   38 200.00%  1-19
t/03-packet.t  255 65280    10   20 200.00%  1-10
Failed 2/6 test scripts, 66.67% okay. 29/116 subtests failed, 75.00% okay.
make: *** [test_dynamic] Error 2
 /usr/bin/make test -- NOT OK
Running make install
 make test had returned bad status, won't install without force

IV. Now I try to

perl -MCPAN -e 'install MATH::GMP'

Also fails

Modify the :

/var/root/.cpan/build/Math-GMP-2.04/Makefile.PL

--------------------------

use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

WriteMakefile(
   'NAME'      => 'Math::GMP',
   'VERSION_FROM' => 'lib/Math/GMP.pm', # finds $VERSION
#    'LIBS'     => ['-lgmp'],   # e.g., '-lm'
   'LIBS'      => ['-L/usr/local/lib', '-lgmp'],   # e.g., '-lm'
   'DEFINE'    => '',     # e.g., '-DHAVE_SOMETHING'
);

--------------------------

V. perform a make in this directory

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#

What ever the solution to this is, it needs to be documented in a
cookbook fashion that is repeatable. I am will to post a page on this,
if someone can figure out a consistent process to make this happen. I
have got a couple of answers, that they have got it working, but they do
not remember how they did it. Swell!!

Signature

------------------------------------------------------------------------
*Michael Barto*
Software Architect

    LogiQwest Circle
LogiQwest Inc.
16458 Bolsa Chica Street, # 15
Huntington Beach, CA  92649
http://www.logiqwest.com/

           mbarto@logiqwest.com <mailto:mbarto@logiqwest.com>
Tel:  714 377 3705
Fax: 714 840 3937
Cell: 714 883 1949

*'tis a gift to be simple*
------------------------------------------------------------------------
This e-mail may contain LogiQwest proprietary information and should be
treated as confidential.

Wiggins d'Anconia - 06 Aug 2006 18:30 GMT
> 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]
Edward Moy - 06 Aug 2006 19:25 GMT
> pwbk2003:~/.cpan/build/Math-GMP-2.04 root# make
> rm -f blib/arch/auto/Math/GMP/GMP.bundle
[quoted text clipped - 6 lines]
> 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.
emoy@apple.com

(This message is from me as a reader of this list, and not a statement
from Apple.)
Celeste Suliin Burris - 06 Aug 2006 22:39 GMT
I had the same problem. I used the fixes found on
<http://swox.com/list-archives/gmp-bugs/2006-July/000516.html>
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??
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.