I have been able to compile and install Net::SSh2 on Mac OS without issue.
While trying on Fedora core 8 and 9 I get the following error during the
make. I do have the prerequisites installed.
[root@mikec Net-SSH2-0.18]# make
cp lib/Net/SSH2/File.pm blib/lib/Net/SSH2/File.pm
cp lib/Net/SSH2/Dir.pm blib/lib/Net/SSH2/Dir.pm
cp lib/Net/SSH2/PublicKey.pm blib/lib/Net/SSH2/PublicKey.pm
cp lib/Net/SSH2/SFTP.pm blib/lib/Net/SSH2/SFTP.pm
cp lib/Net/SSH2/Listener.pm blib/lib/Net/SSH2/Listener.pm
cp lib/Net/SSH2/Channel.pm blib/lib/Net/SSH2/Channel.pm
cp lib/Net/SSH2.pm blib/lib/Net/SSH2.pm
AutoSplitting blib/lib/Net/SSH2.pm (blib/lib/auto/Net/SSH2)
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap SSH2.xs > SSH2.xsc
&& mv SSH2.xsc SSH2.c
gcc -c -I/usr/local/include -I. -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-DVERSION=\"0.18\" -DXS_VERSION=\"0.18\" -fPIC
"-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/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/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/perl.h:163:1: warning:
this is the location of the previous definition
SSH2.c: In function XS_Net__SSH2_channel¹:
SSH2.c:1450: warning: value computed is not used
SSH2.c:1451: warning: value computed is not used
SSH2.c: In function XS_Net__SSH2__scp_get¹:
SSH2.c:1510: warning: value computed is not used
SSH2.c:1511: warning: value computed is not used
SSH2.c: In function XS_Net__SSH2__scp_put¹:
SSH2.c:1565: warning: value computed is not used
SSH2.c:1566: warning: value computed is not used
SSH2.c: In function XS_Net__SSH2_tcpip¹:
SSH2.c:1622: warning: value computed is not used
SSH2.c:1623: warning: value computed is not used
SSH2.c: In function XS_Net__SSH2__Listener_accept¹:
SSH2.c:2388: warning: value computed is not used
SSH2.c:2389: warning: value computed is not used
SSH2.xs: In function XS_Net__SSH2__SFTP_open¹:
SSH2.xs:1352: warning: suggest parentheses around && within ||
SSH2.xs:1353: warning: suggest parentheses around && within ||
SSH2.xs:1354: warning: suggest parentheses around && within ||
SSH2.xs:1355: warning: suggest parentheses around && within ||
SSH2.xs:1356: warning: suggest parentheses around && within ||
SSH2.xs:1357: warning: suggest parentheses around && within ||
SSH2.xs:1358: warning: suggest parentheses around && within ||
SSH2.c:2552: warning: value computed is not used
SSH2.c:2553: warning: value computed is not used
SSH2.xs: In function XS_Net__SSH2__PublicKey_add¹:
SSH2.xs:1741: warning: pointer targets in passing argument 2 of
libssh2_publickey_add_ex¹ differ in signedness
SSH2.xs:1741: warning: pointer targets in passing argument 4 of
libssh2_publickey_add_ex¹ differ in signedness
SSH2.xs: In function XS_Net__SSH2__PublicKey_remove¹:
SSH2.xs:1755: warning: pointer targets in passing argument 2 of
libssh2_publickey_remove_ex¹ differ in signedness
SSH2.xs:1755: warning: pointer targets in passing argument 4 of
libssh2_publickey_remove_ex¹ differ in signedness
Running Mkbootstrap for Net::SSH2 ()
chmod 644 SSH2.bs
rm -f blib/arch/auto/Net/SSH2/SSH2.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic SSH2.o -o
blib/arch/auto/Net/SSH2/SSH2.so \
-L/usr/local/lib -lssh2 \
chmod 755 blib/arch/auto/Net/SSH2/SSH2.so
cp SSH2.bs blib/arch/auto/Net/SSH2/SSH2.bs
chmod 644 blib/arch/auto/Net/SSH2/SSH2.bs
Manifying blib/man3/Net::SSH2::File.3pm
Manifying blib/man3/Net::SSH2::PublicKey.3pm
Manifying blib/man3/Net::SSH2::Dir.3pm
Manifying blib/man3/Net::SSH2::SFTP.3pm
Manifying blib/man3/Net::SSH2::Listener.3pm
Manifying blib/man3/Net::SSH2::Channel.3pm
Manifying blib/man3/Net::SSH2.3pm
--
mike cannon
mi...@cl...
864.650.2577 (cell)
864.656.3809 (office)
computing & information technology
340 computer court
anderson, sc 29625
|