Pecl install ssh2, make failed
Posted
by user28259
on Server Fault
See other posts from Server Fault
or by user28259
Published on 2009-12-05T16:07:24Z
Indexed on
2010/04/12
17:03 UTC
Read the original article
Hit count: 477
pecl
|arch-linux
Hi!
I'm trying really hard since two hours to install ssh2 with pecl... But all I get is:
/bin/sh /root/ssh2-0.11.0/libtool --mode=compile cc -I. -I/root/ssh2-0.11.0 -DPHP_ATOM_INC -I/root/ssh2-0.11.0/include -I/root/ssh2-0.11.0/main -I/root/ssh2-0.11.0 -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 /root/ssh2-0.11.0/ssh2.c -o ssh2.lo
mkdir .libs
cc -I. -I/root/ssh2-0.11.0 -DPHP_ATOM_INC -I/root/ssh2-0.11.0/include -I/root/ssh2-0.11.0/main -I/root/ssh2-0.11.0 -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 /root/ssh2-0.11.0/ssh2.c -fPIC -DPIC -o .libs/ssh2.o
/root/ssh2-0.11.0/ssh2.c:52: error: duplicate 'static'
/root/ssh2-0.11.0/ssh2.c: In function 'zif_ssh2_methods_negotiated':
/root/ssh2-0.11.0/ssh2.c:503: warning: passing argument 4 of 'add_assoc_string_ex' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:360: note: expected 'char *' but argument is of type 'const char *'
/root/ssh2-0.11.0/ssh2.c:504: warning: passing argument 4 of 'add_assoc_string_ex' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:360: note: expected 'char *' but argument is of type 'const char *'
/root/ssh2-0.11.0/ssh2.c:508: warning: passing argument 4 of 'add_assoc_string_ex' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:360: note: expected 'char *' but argument is of type 'const char *'
/root/ssh2-0.11.0/ssh2.c:509: warning: passing argument 4 of 'add_assoc_string_ex' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:360: note: expected 'char *' but argument is of type 'const char *'
/root/ssh2-0.11.0/ssh2.c:510: warning: passing argument 4 of 'add_assoc_string_ex' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:360: note: expected 'char *' but argument is of type 'const char *'
/root/ssh2-0.11.0/ssh2.c:511: warning: passing argument 4 of 'add_assoc_string_ex' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:360: note: expected 'char *' but argument is of type 'const char *'
/root/ssh2-0.11.0/ssh2.c:516: warning: passing argument 4 of 'add_assoc_string_ex' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:360: note: expected 'char *' but argument is of type 'const char *'
/root/ssh2-0.11.0/ssh2.c:517: warning: passing argument 4 of 'add_assoc_string_ex' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:360: note: expected 'char *' but argument is of type 'const char *'
/root/ssh2-0.11.0/ssh2.c:518: warning: passing argument 4 of 'add_assoc_string_ex' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:360: note: expected 'char *' but argument is of type 'const char *'
/root/ssh2-0.11.0/ssh2.c:519: warning: passing argument 4 of 'add_assoc_string_ex' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:360: note: expected 'char *' but argument is of type 'const char *'
/root/ssh2-0.11.0/ssh2.c: In function 'zif_ssh2_publickey_add':
/root/ssh2-0.11.0/ssh2.c:1045: warning: passing argument 1 of '_efree' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_alloc.h:46: note: expected 'void *' but argument is of type 'const char *'
/root/ssh2-0.11.0/ssh2.c: In function 'zif_ssh2_publickey_list':
/root/ssh2-0.11.0/ssh2.c:1104: warning: passing argument 4 of 'add_assoc_stringl_ex' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:361: note: expected 'char *' but argument is of type 'const unsigned char *'
/root/ssh2-0.11.0/ssh2.c:1105: warning: passing argument 4 of 'add_assoc_stringl_ex' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:361: note: expected 'char *' but argument is of type 'const unsigned char *'
make: *** [ssh2.lo] Error 1
I looked on google a lot, I found some patches which didn't worked at all. So if you think you could help me, go ahead!
Thanks!
© Server Fault or respective owner