[PHP5.2.4] Probleme mit der Installation von SSH2

l0c4lh05t

Erfahrenes Mitglied
Hallo,
wollte gerade mit pecl ssh2 installieren.
Code:
pecl install -f ssh2-beta
Daraus resultierte:
Code:
downloading ssh2-0.10.tgz ...
Starting to download ssh2-0.10.tgz (22,187 bytes)
........done: 22,187 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
ERROR: `phpize' failed
Ähnlich sieht es bei "ssh2" ohne "-beta" aus. Von Hand, also mit
Code:
wget http://pecl.php.net/get/ssh2-0.10.tgz
tar -xvf ssh2-0.10.tgz
cd ssh2-0.10.tgz
phpize && ./configure --with-ssh2 && make
geht auch rein gar nichts
Code:
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
loading cache ./config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking how to run the C preprocessor... (cached) cc -E
checking for egrep... (cached) grep -E
checking for a sed that does not truncate output... (cached) /bin/sed
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether gcc and cc understand -c and -o together... (cached) yes
checking for system library directory... lib
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached) yes
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -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
checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/include/php
checking for re2c... (cached) re2c
checking for re2c version... (cached) 0.12.3 (ok)
checking for gawk... (cached) nawk
checking if nawk is broken... no
checking for ssh2 support... yes, shared
checking for ssh2 files in default path... found in /usr/local
checking for libssh2_banner_set in -lssh2... (cached) yes
checking for libssh2_channel_forward_listen_ex in -lssh2... (cached) yes
checking for libssh2_userauth_hostbased_fromfile_ex in -lssh2... (cached) yes
checking for libssh2_poll in -lssh2... (cached) yes
checking for libssh2_publickey_init in -lssh2... (cached) yes
checking build system type... i686-pc-linux-gnu
checking for ld used by gcc... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependent libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking for dlfcn.h... (cached) yes
checking the maximum length of command line arguments... (cached) 32768
checking command to parse /usr/bin/nm -B output from gcc object... (cached) ok
checking for objdir... (cached) .libs
checking for ar... (cached) ar
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... (cached) no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
creating ./config.status
creating config.h
config.h is unchanged
/bin/sh /usr/src/ssh2-0.10/libtool --mode=compile gcc  -I. -I/usr/src/ssh2-0.10 -DPHP_ATOM_INC -I/usr/src/ssh2-0.10/include -I/usr/src/ssh2-0.10/main -I/usr/src/ssh2-0.10 -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /usr/src/ssh2-0.10/ssh2.c -o ssh2.lo
mkdir .libs
 gcc -I. -I/usr/src/ssh2-0.10 -DPHP_ATOM_INC -I/usr/src/ssh2-0.10/include -I/usr/src/ssh2-0.10/main -I/usr/src/ssh2-0.10 -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /usr/src/ssh2-0.10/ssh2.c  -fPIC -DPIC -o .libs/ssh2.o
/usr/src/ssh2-0.10/ssh2.c: In function 'zif_ssh2_methods_negotiated':
/usr/src/ssh2-0.10/ssh2.c:481: warning: passing argument 2 of 'libssh2_session_methods' makes integer from pointer without a cast
/usr/src/ssh2-0.10/ssh2.c:481: error: too many arguments to function 'libssh2_session_methods'
/usr/src/ssh2-0.10/ssh2.c: In function 'zif_ssh2_fingerprint':
/usr/src/ssh2-0.10/ssh2.c:536: warning: assignment discards qualifiers from pointer target type
/usr/src/ssh2-0.10/ssh2.c: In function 'zif_ssh2_publickey_add':
/usr/src/ssh2-0.10/ssh2.c:1038: warning: passing argument 1 of '_efree' discards qualifiers from pointer target type
/usr/src/ssh2-0.10/ssh2.c: In function 'zif_ssh2_publickey_list':
/usr/src/ssh2-0.10/ssh2.c:1097: warning: passing argument 4 of 'add_assoc_stringl_ex' discards qualifiers from pointer target type
/usr/src/ssh2-0.10/ssh2.c:1098: warning: passing argument 4 of 'add_assoc_stringl_ex' discards qualifiers from pointer target type
/usr/src/ssh2-0.10/ssh2.c:1106: warning: initialization discards qualifiers from pointer target type
/usr/src/ssh2-0.10/ssh2.c:1107: warning: passing argument 2 of '_zend_hash_add_or_update' discards qualifiers from pointer target type
make: *** [ssh2.lo] Error 1
Es wäre echt super, wenn ihr mir weiterhelfen könntet!
Danke

PS: Selber fixen kann ich die Fehler in der ssh2.c nicht, da ich gar keine Ahnung von C habe. *sob*

//EDIT: ***FIX***
An alle, die das Problemchen auch haben ^^
Ein guter Kumpel hat mir helfen können - sorry - also hier kommt der Bugfix, der alles heile heile macht :D
Code:
#define LIBSSH2_APINO 200412301450
Jopp, das scheint es auch schon gewesen zu sein. Nun zeigt er mir zwar noch Warnings, aber keinen Error mehr an. Die ssh2.so wurde erstellt und ich kann nun auch soweit die Funktionen benutzen. Thx
 
Zuletzt bearbeitet:

Gunah

Erfahrenes Mitglied
Das lob ich....

das du die Lösung mit reingeschrieben hast, die meisten hätte geschrieben "gelöst Thema Kann gelöscht werden"

THX für den Workaround :) funktioniert bei mir ebenfalls einwandfrei...