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

sys/types.h, stdarg.h, etc., are standard headers that your compiler should be able to find without any extra directive. Maybe you need to install some package containing them.

Besides that, you can replace Net::SSH::Perl by Net::OpenSSH::Compat(::Perl) that doesn't need a compiler in order to be installed. It requires OpenSSH client but you can download it as a package from SUN Freeware.

Replies are listed 'Best First'.
Re^2: Net::SSH::Perl compile with SunStudio 12.2 instead of SunPro
by srp0010 (Initiate) on Oct 26, 2011 at 15:24 UTC

    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.

        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.

        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