|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-08-10 04:03 UTC] edward at confirmat dot nl
Description: ------------ I loaded ssh2-0.10.tzr.gz and unzipped it and phpized it. There some warnings, like: /usr/share/aclocal/gsl.m4:5: warning: underquoted definition of AM_PATH_GSL run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal /usr/share/aclocal/gconf-1.m4:4: warning: underquoted definition of AM_PATH_GCONF /usr/share/aclocal/gconf-1.m4:71: warning: underquoted definition of AM_GCONF_SOURCE /usr/share/aclocal/avifile.m4:21: warning: underquoted definition of AM_PATH_AVIFILE /opt/gnome/share/aclocal/libIDL.m4:6: warning: underquoted definition of AM_PATH_LIBIDL /opt/gnome/share/aclocal/gnome--.m4:10: warning: underquoted definition of AM_PATH_GNOMEMM /opt/gnome/share/aclocal/ORBit.m4:4: warning: underquoted definition of AM_PATH_ORBIT Then I ./configure and did fine, then make and that resulted in error, see below: Reproduce code: --------------- make Expected result: ---------------- it should create ssh2.so and not fail make Actual result: -------------- /bin/sh /home/edward/tmp/ssh2-0.10/libtool --mode=compile gcc -I. -I/home/edward/tmp/ssh2-0.10 -DPHP_ATOM_INC -I/home/edward/tmp/ssh2-0.10/include -I/home/edward/tmp/ssh2-0.10/main -I/home/edward/tmp/ssh2-0.10 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /home/edward/tmp/ssh2-0.10/ssh2.c -o ssh2.lo mkdir .libs gcc -I. -I/home/edward/tmp/ssh2-0.10 -DPHP_ATOM_INC -I/home/edward/tmp/ssh2-0.10/include -I/home/edward/tmp/ssh2-0.10/main -I/home/edward/tmp/ssh2-0.10 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /home/edward/tmp/ssh2-0.10/ssh2.c -fPIC -DPIC -o .libs/ssh2.o /home/edward/tmp/ssh2-0.10/ssh2.c: In function `zif_ssh2_methods_negotiated': /home/edward/tmp/ssh2-0.10/ssh2.c:481: warning: passing arg 2 of `libssh2_session_methods' makes integer from pointer without a cast /home/edward/tmp/ssh2-0.10/ssh2.c:481: error: too many arguments to function `libssh2_session_methods' /home/edward/tmp/ssh2-0.10/ssh2.c: In function `zif_ssh2_fingerprint': /home/edward/tmp/ssh2-0.10/ssh2.c:536: warning: assignment discards qualifiers from pointer target type /home/edward/tmp/ssh2-0.10/ssh2.c: In function `zif_ssh2_publickey_add': /home/edward/tmp/ssh2-0.10/ssh2.c:1038: warning: passing arg 1 of `_efree' discards qualifiers from pointer target type /home/edward/tmp/ssh2-0.10/ssh2.c: In function `zif_ssh2_publickey_list': /home/edward/tmp/ssh2-0.10/ssh2.c:1097: warning: passing arg 4 of `add_assoc_stringl_ex' discards qualifiers from pointer target type /home/edward/tmp/ssh2-0.10/ssh2.c:1098: warning: passing arg 4 of `add_assoc_stringl_ex' discards qualifiers from pointer target type /home/edward/tmp/ssh2-0.10/ssh2.c:1106: warning: initialization discards qualifiers from pointer target type /home/edward/tmp/ssh2-0.10/ssh2.c:1107: warning: passing arg 2 of `zend_hash_add_or_update' discards qualifiers from pointer target type make: *** [ssh2.lo] Fout 1 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 08:00:01 2025 UTC |
I stumbled over this problem and found a solution: diff -Naur ssh2-0.10-orig/ssh2.c ssh2-0.10/ssh2.c --- ssh2-0.10-orig/ssh2.c 2005-11-02 00:40:23.000000000 +0100 +++ ssh2-0.10/ssh2.c 2007-11-26 17:29:16.000000000 +0100 @@ -476,9 +476,10 @@ } ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); - -#if LIBSSH2_APINO < 200412301450 +#ifdef LIBSSH2_APINO +# if LIBSSH2_APINO < 200412301450 libssh2_session_methods(session, &kex, &hostkey, &crypt_cs, &crypt_sc, &mac_cs, &mac_sc, &comp_cs, &comp_sc, &lang_cs, &lang_sc); +# endif #else kex = libssh2_session_methods(session, LIBSSH2_METHOD_KEX); hostkey = libssh2_session_methods(session, LIBSSH2_METHOD_HOSTKEY); Seems to fix it. [I'm running with the latest versions of both ssh2 extension and libssh2]