ssh2-0.10 make--- error ( need help on this)
Posted: Sat Jan 30, 2010 12:05 am
I need help on : ( Thanks in advanced)
I can't compile ssh2.c... after suggested line modifications..
[root@linuxhost ssh2-0.10]# diff ssh2.c.orig ssh2.c
< #if (LIBSSH2_APINO > 200503221619)
---
> #if LIBSSH2_VERSION_NUM < 0x001000
[root@linuxhost ssh2-0.10]# make
/bin/sh /root/ssh2-0.10/libtool --mode=compile cc -I. -I/root/ssh2-0.10 -DPHP_ATOM_INC -I/root/ssh2-0.10/include -I/root/ssh2-0.10/main -I/root/ssh2-0.10 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/ssh2-0.10/ssh2.c -o ssh2.lo
mkdir .libs
cc -I. -I/root/ssh2-0.10 -DPHP_ATOM_INC -I/root/ssh2-0.10/include -I/root/ssh2-0.10/main -I/root/ssh2-0.10 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/ssh2-0.10/ssh2.c -fPIC -DPIC -o .libs/ssh2.o
/root/ssh2-0.10/ssh2.c:49: error: duplicate `static'
/root/ssh2-0.10/ssh2.c: In function `zif_ssh2_methods_negotiated':
/root/ssh2-0.10/ssh2.c:481: warning: passing arg 2 of `libssh2_session_methods' makes integer from pointer without a cast
/root/ssh2-0.10/ssh2.c:481: error: too many arguments to function `libssh2_session_methods'
/root/ssh2-0.10/ssh2.c: In function `zif_ssh2_fingerprint':
/root/ssh2-0.10/ssh2.c:536: warning: assignment discards qualifiers from pointer target type
/root/ssh2-0.10/ssh2.c: In function `zif_ssh2_poll':
/root/ssh2-0.10/ssh2.c:885: error: structure has no member named `is_ref'
/root/ssh2-0.10/ssh2.c:885: error: structure has no member named `refcount'
/root/ssh2-0.10/ssh2.c:895: error: structure has no member named `is_ref'
/root/ssh2-0.10/ssh2.c:896: error: structure has no member named `refcount'
/root/ssh2-0.10/ssh2.c: In function `zif_ssh2_publickey_add':
/root/ssh2-0.10/ssh2.c
error: structure has no member named `is_ref'
/root/ssh2-0.10/ssh2.c
error: structure has no member named `refcount'
/root/ssh2-0.10/ssh2.c
warning: passing arg 1 of `_efree' discards qualifiers from pointer target type
/root/ssh2-0.10/ssh2.c: In function `zif_ssh2_publickey_list':
/root/ssh2-0.10/ssh2.c
warning: passing arg 4 of `add_assoc_stringl_ex' discards qualifiers from pointer target type
/root/ssh2-0.10/ssh2.c
warning: passing arg 4 of `add_assoc_stringl_ex' discards qualifiers from pointer target type
/root/ssh2-0.10/ssh2.c: In function `zm_startup_ssh2':
/root/ssh2-0.10/ssh2.c
error: `kex' undeclared (first use in this function)
/root/ssh2-0.10/ssh2.c
error: (Each undeclared identifier is reported only once
/root/ssh2-0.10/ssh2.c
error: for each function it appears in.)
/root/ssh2-0.10/ssh2.c
error: `session' undeclared (first use in this function)
make: *** [ssh2.lo] Error 1
[root@linuxhost ssh2-0.10]# pwd
/root/ssh2-0.10
[root@linuxhost ssh2-0.10]# /usr/local/bin/php -v
PHP 5.3.0 (cli) (built: Jan 27 2010 23:34:38)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
I have these libs installed.. ( still can't this ssh2.o lib.. going)
[root@linuxhost ssh2-0.10]# rpm -qa | grep "ssh"
openssh-3.9p1-8.RHEL4.9
openssh-server-3.9p1-8.RHEL4.9
openssh-askpass-gnome-3.9p1-8.RHEL4.9
libssh2-0.17-1.el4.rf
libssh2-devel-1.2.2-1.el4.pp
libssh2-1.2.2-1.el4.pp
openssh-clients-3.9p1-8.RHEL4.9
openssh-askpass-3.9p1-8.RHEL4.9
[root@linuxhost ssh2-0.10]# uname -a
Linux linuxhost 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:32:14 EDT 2005 i686 i686 i386 GNU/Linux
I can't compile ssh2.c... after suggested line modifications..
[root@linuxhost ssh2-0.10]# diff ssh2.c.orig ssh2.c
< #if (LIBSSH2_APINO > 200503221619)
---
> #if LIBSSH2_VERSION_NUM < 0x001000
[root@linuxhost ssh2-0.10]# make
/bin/sh /root/ssh2-0.10/libtool --mode=compile cc -I. -I/root/ssh2-0.10 -DPHP_ATOM_INC -I/root/ssh2-0.10/include -I/root/ssh2-0.10/main -I/root/ssh2-0.10 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/ssh2-0.10/ssh2.c -o ssh2.lo
mkdir .libs
cc -I. -I/root/ssh2-0.10 -DPHP_ATOM_INC -I/root/ssh2-0.10/include -I/root/ssh2-0.10/main -I/root/ssh2-0.10 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/ssh2-0.10/ssh2.c -fPIC -DPIC -o .libs/ssh2.o
/root/ssh2-0.10/ssh2.c:49: error: duplicate `static'
/root/ssh2-0.10/ssh2.c: In function `zif_ssh2_methods_negotiated':
/root/ssh2-0.10/ssh2.c:481: warning: passing arg 2 of `libssh2_session_methods' makes integer from pointer without a cast
/root/ssh2-0.10/ssh2.c:481: error: too many arguments to function `libssh2_session_methods'
/root/ssh2-0.10/ssh2.c: In function `zif_ssh2_fingerprint':
/root/ssh2-0.10/ssh2.c:536: warning: assignment discards qualifiers from pointer target type
/root/ssh2-0.10/ssh2.c: In function `zif_ssh2_poll':
/root/ssh2-0.10/ssh2.c:885: error: structure has no member named `is_ref'
/root/ssh2-0.10/ssh2.c:885: error: structure has no member named `refcount'
/root/ssh2-0.10/ssh2.c:895: error: structure has no member named `is_ref'
/root/ssh2-0.10/ssh2.c:896: error: structure has no member named `refcount'
/root/ssh2-0.10/ssh2.c: In function `zif_ssh2_publickey_add':
/root/ssh2-0.10/ssh2.c
/root/ssh2-0.10/ssh2.c
/root/ssh2-0.10/ssh2.c
/root/ssh2-0.10/ssh2.c: In function `zif_ssh2_publickey_list':
/root/ssh2-0.10/ssh2.c
/root/ssh2-0.10/ssh2.c
/root/ssh2-0.10/ssh2.c: In function `zm_startup_ssh2':
/root/ssh2-0.10/ssh2.c
/root/ssh2-0.10/ssh2.c
/root/ssh2-0.10/ssh2.c
/root/ssh2-0.10/ssh2.c
make: *** [ssh2.lo] Error 1
[root@linuxhost ssh2-0.10]# pwd
/root/ssh2-0.10
[root@linuxhost ssh2-0.10]# /usr/local/bin/php -v
PHP 5.3.0 (cli) (built: Jan 27 2010 23:34:38)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
I have these libs installed.. ( still can't this ssh2.o lib.. going)
[root@linuxhost ssh2-0.10]# rpm -qa | grep "ssh"
openssh-3.9p1-8.RHEL4.9
openssh-server-3.9p1-8.RHEL4.9
openssh-askpass-gnome-3.9p1-8.RHEL4.9
libssh2-0.17-1.el4.rf
libssh2-devel-1.2.2-1.el4.pp
libssh2-1.2.2-1.el4.pp
openssh-clients-3.9p1-8.RHEL4.9
openssh-askpass-3.9p1-8.RHEL4.9
[root@linuxhost ssh2-0.10]# uname -a
Linux linuxhost 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:32:14 EDT 2005 i686 i686 i386 GNU/Linux