Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Net::SSH::Perl compile with SunStudio 12.2 instead of SunPro

by srp0010 (Initiate)
on Oct 26, 2011 at 15:24 UTC ( [id://933914]=note: print w/replies, xml ) Need Help??


in reply to Re: Net::SSH::Perl compile with SunStudio 12.2 instead of SunPro
in thread SOLVED: Net::SSH::Perl compile with SunStudio 12.2 instead of SunPro

Switched to GCC, cleaned up and started again. Much better but fail to link libpari.so

/opt/csw/gcc2/bin/gcc -o "/opt/csw/share/perl/.cpan/build/Math-Pari-2.01080605-cubJEW/pari-2.5.0/Osolaris-ix86"/libpari.so.2.5.0 -shared -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -fPIC -fPIC -Wl,-G,-h,libpari.so.3 mp.o mpinl.o F2x.o FF.o Flx.o FpE.o FpV.o FpX.o Hensel.o QX_factor.o Qfb.o RgV.o RgX.o ZV.o ZX.o alglin1.o alglin2.o arith1.o arith2.o base1.o base2.o base3.o base4.o base5.o bb_group.o bibli1.o bibli2.o bit.o buch1.o buch2.o buch3.o buch4.o concat.o ellanal.o elliptic.o galconj.o gen1.o gen2.o gen3.o hnf_snf.o ifactor1.o lll.o nffactor.o perm.o polarit1.o polarit2.o polarit3.o prime.o random.o rootpol.o subcyclo.o subgroup.o trans1.o trans2.o trans3.o anal.o compat.o compile.o default.o errmsg.o es.o eval.o hash.o init.o intnum.o members.o paricfg.o pariinl.o parse.o sumiter.o DedekZeta.o aprcl.o elldata.o ellsea.o galois.o galpol.o groupid.o krasner.o kummer.o mpqs.o part.o stark.o subfield.o thue.o -lc -lm

Text relocation remains referenced

against symbol offset in file

readonly_constants 0x1cc init.o

readonly_constants 0x1d0 init.o

ld: fatal: relocations remain against allocatable but non-writable sections

collect2: ld returned 1 exit status

Does anyone have a idea on how to solve this?

Net::OpenSSH::Compat is nifty but doesn't support the current tools. The error here is: Invalid or bad combination of options ('batch_mode'). Need to debug why this is occurring. Tools do open several concurrent SSH sessions.

  • Comment on Re^2: Net::SSH::Perl compile with SunStudio 12.2 instead of SunPro

Replies are listed 'Best First'.
Re^3: Net::SSH::Perl compile with SunStudio 12.2 instead of SunPro
by salva (Canon) on Oct 26, 2011 at 15:42 UTC

      Net::OpenSSH is installed Salva but the 'batch_mode' issue remains:

      Invalid or bad combination of options ('batch_mode') at /opt/csw/share/perl/site_perl/Net/OpenSSH/Compat/Perl.pm line 120

      I would prefer to compile Net::SSH::Perl and not modify the tools for a new module. However, if you can suggest where to dig in and if the tool changes will be minimal then I could go that route too.

        You have probably installed the stable version of Net::OpenSSH but Net::OpenSSH::Compat requires the development version!

      Salva-

      I installed Net::OpenSSH .52 - dev version - and am trying to substitute this for Net::SSH::Perl.

      use Net::OpenSSH::Compat::Perl qw(:supplant); use Net::SSH::Perl; my $ssh = Net::SSH::Perl->new ('nogaro', options => [ "ssh_cmd /opt/c +sw/bin/ssh" ,"debug yes", "interactive yes" ]); $ssh->login('root', 'no$go^'); my ($out, $stderr, $exit) = $ssh->cmd ("date");

      my error is:

      Invalid or bad combination of options ('batch_mode') at /opt/csw/share +/perl/site_perl/Net/OpenSSH/Compat/Perl.pm line 120

      I get this error with 'Interactive' or 'BatchMode' on or off. My Perl is not good enough to determine why this occurs. Can you suggest a course for a solution?

      I want to make interactive requests to a server btw

      $ /opt/csw/bin/ssh -v

      OpenSSH_5.4p1, OpenSSL 0.9.8r 8 Feb 2011

      perl is 5.10.0

      solaris 10

      Thanks in advance

        The current development version is 0.53_03!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://933914]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-23 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found