Page 1 of 1

php & SSH2

Posted: Wed Apr 09, 2014 10:46 am
by Finalls
Вообщем установил весту на Centos 6.2 по мануалу...
Пытаюсь поставить расширение для php SSH2
pecl install -f ssh2
  • configure: creating ./config.status
    config.status: creating config.h
    config.status: executing libtool commands
    running: make
    /bin/sh /var/tmp/pear-build-finallsmPspeZ/ssh2-0.12/libtool --mode=compile cc -I. -I/var/tmp/ssh2 -DPHP_ATOM_INC -I/var/tmp/pear-build-finallsmPspeZ/ssh2-0.12/include -I/var/tmp/pear-build-finallsmPspeZ/ssh2-0.12/main -I/var/tmp/ssh2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/ssh2/ssh2.c -o ssh2.lo
    libtool: compile: cc -I. -I/var/tmp/ssh2 -DPHP_ATOM_INC -I/var/tmp/pear-build-finallsmPspeZ/ssh2-0.12/include -I/var/tmp/pear-build-finallsmPspeZ/ssh2-0.12/main -I/var/tmp/ssh2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/ssh2/ssh2.c -fPIC -DPIC -o .libs/ssh2.o
    /var/tmp/ssh2/ssh2.c: In function ‘zif_ssh2_publickey_add’:
    /var/tmp/ssh2/ssh2.c:1063: warning: passing argument 1 of ‘_efree’ discards qualifiers from pointer target type
    /usr/include/php/Zend/zend_alloc.h:60: note: expected ‘void *’ but argument is of type ‘const char *’
    /var/tmp/ssh2/ssh2.c: In function ‘zif_ssh2_publickey_list’:
    /var/tmp/ssh2/ssh2.c:1122: warning: passing argument 4 of ‘add_assoc_stringl_ex’ discards qualifiers from pointer target type
    /usr/include/php/Zend/zend_API.h:380: note: expected ‘char *’ but argument is of type ‘const unsigned char *’
    /var/tmp/ssh2/ssh2.c:1123: warning: passing argument 4 of ‘add_assoc_stringl_ex’ discards qualifiers from pointer target type
    /usr/include/php/Zend/zend_API.h:380: note: expected ‘char *’ but argument is of type ‘const unsigned char *’
    /var/tmp/ssh2/ssh2.c: In function ‘zif_ssh2_auth_agent’:
    /var/tmp/ssh2/ssh2.c:1154: error: ‘LIBSSH2_AGENT’ undeclared (first use in this function)
    /var/tmp/ssh2/ssh2.c:1154: error: (Each undeclared identifier is reported only once
    /var/tmp/ssh2/ssh2.c:1154: error: for each function it appears in.)
    /var/tmp/ssh2/ssh2.c:1154: error: ‘agent’ undeclared (first use in this function)
    make: *** [ssh2.lo] Error 1
    ERROR: `make' failed
И получаю вот такую проблемку... как то это можно решить ?

Re: php & SSH2

Posted: Mon Apr 14, 2014 10:34 am
by imperio

Re: php & SSH2

Posted: Wed Apr 16, 2014 4:44 pm
by Finalls
Спасибо решено... )