php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56924 failed to copy ssh2.so
Submitted: 2006-03-28 16:42 UTC Modified: 2008-12-21 11:18 UTC
From: steve at overlee dot com Assigned:
Status: No Feedback Package: ssh2 (PECL)
PHP Version: 4.3.9 OS: Redhat 9 Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: steve at overlee dot com
New email:
PHP Version: OS:

 

 [2006-03-28 16:42 UTC] steve at overlee dot com
Description:
------------
When installing ssh2-0.10, it fails at the end when trying to copy ssh2.so to /usr/lib/php4/ssh2.so.

PHP compiled as
'./configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-mhash=shared' '--with-mcrypt=shared' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-apxs2filter=/usr/sbin/apxs'

Reproduce code:
---------------
pear install ssh2-beta

Expected result:
----------------
Successfull install of module

Actual result:
--------------
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:   20020918
  Zend Module Api No:   20020429
  Zend Extension Api No:   20021010
building in /var/tmp/pear-build-root/ssh2-0.10
running: /tmp/tmpo1JlMs/ssh2-0.10/configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM
checking for PHP extension directory... /usr/lib/php4
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for gawk... gawk
checking for ssh2 support... yes, shared
checking for ssh2 files in default path... found in /usr/local
checking for libssh2_banner_set in -lssh2... yes
checking for libssh2_channel_forward_listen_ex in -lssh2... yes
checking for libssh2_userauth_hostbased_fromfile_ex in -lssh2... yes
checking for libssh2_poll in -lssh2... yes
checking for libssh2_publickey_init in -lssh2... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... //bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... no
creating libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/ssh2-0.10/libtool --mode=compile gcc  -I. -I/tmp/tmpo1JlMs/ssh2-0.10 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ssh2-0.10/include -I/var/tmp/pear-build-root/ssh2-0.10/main -I/tmp/tmpo1JlMs/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  -I/usr/kerberos/include/ -DHAVE_CONFIG_H  -g -O2  -prefer-pic -c /tmp/tmpo1JlMs/ssh2-0.10/ssh2.c -o ssh2.lo
gcc -I. -I/tmp/tmpo1JlMs/ssh2-0.10 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ssh2-0.10/include -I/var/tmp/pear-build-root/ssh2-0.10/main -I/tmp/tmpo1JlMs/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 -I/usr/kerberos/include/ -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpo1JlMs/ssh2-0.10/ssh2.c  -fPIC -DPIC -o ssh2.lo
/tmp/tmpo1JlMs/ssh2-0.10/ssh2.c: In function `zif_ssh2_methods_negotiated':
/tmp/tmpo1JlMs/ssh2-0.10/ssh2.c:483: warning: assignment discards qualifiers from pointer target type
/tmp/tmpo1JlMs/ssh2-0.10/ssh2.c:484: warning: assignment discards qualifiers from pointer target type
/tmp/tmpo1JlMs/ssh2-0.10/ssh2.c:485: warning: assignment discards qualifiers from pointer target type
/tmp/tmpo1JlMs/ssh2-0.10/ssh2.c:486: warning: assignment discards qualifiers from pointer target type
/tmp/tmpo1JlMs/ssh2-0.10/ssh2.c:487: warning: assignment discards qualifiers from pointer target type
/tmp/tmpo1JlMs/ssh2-0.10/ssh2.c:488: warning: assignment discards qualifiers from pointer target type
/tmp/tmpo1JlMs/ssh2-0.10/ssh2.c:489: warning: assignment discards qualifiers from pointer target type
/tmp/tmpo1JlMs/ssh2-0.10/ssh2.c:490: warning: assignment discards qualifiers from pointer target type
/tmp/tmpo1JlMs/ssh2-0.10/ssh2.c:491: warning: assignment discards qualifiers from pointer target type
/tmp/tmpo1JlMs/ssh2-0.10/ssh2.c:492: warning: assignment discards qualifiers from pointer target type
/tmp/tmpo1JlMs/ssh2-0.10/ssh2.c: In function `zif_ssh2_fingerprint':
/tmp/tmpo1JlMs/ssh2-0.10/ssh2.c:536: warning: assignment discards qualifiers from pointer target type
/bin/sh /var/tmp/pear-build-root/ssh2-0.10/libtool --mode=compile gcc  -I. -I/tmp/tmpo1JlMs/ssh2-0.10 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ssh2-0.10/include -I/var/tmp/pear-build-root/ssh2-0.10/main -I/tmp/tmpo1JlMs/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  -I/usr/kerberos/include/ -DHAVE_CONFIG_H  -g -O2  -prefer-pic -c /tmp/tmpo1JlMs/ssh2-0.10/ssh2_fopen_wrappers.c -o ssh2_fopen_wrappers.lo
gcc -I. -I/tmp/tmpo1JlMs/ssh2-0.10 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ssh2-0.10/include -I/var/tmp/pear-build-root/ssh2-0.10/main -I/tmp/tmpo1JlMs/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 -I/usr/kerberos/include/ -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpo1JlMs/ssh2-0.10/ssh2_fopen_wrappers.c  -fPIC -DPIC -o ssh2_fopen_wrappers.lo
/bin/sh /var/tmp/pear-build-root/ssh2-0.10/libtool --mode=compile gcc  -I. -I/tmp/tmpo1JlMs/ssh2-0.10 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ssh2-0.10/include -I/var/tmp/pear-build-root/ssh2-0.10/main -I/tmp/tmpo1JlMs/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  -I/usr/kerberos/include/ -DHAVE_CONFIG_H  -g -O2  -prefer-pic -c /tmp/tmpo1JlMs/ssh2-0.10/ssh2_sftp.c -o ssh2_sftp.lo
gcc -I. -I/tmp/tmpo1JlMs/ssh2-0.10 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ssh2-0.10/include -I/var/tmp/pear-build-root/ssh2-0.10/main -I/tmp/tmpo1JlMs/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 -I/usr/kerberos/include/ -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpo1JlMs/ssh2-0.10/ssh2_sftp.c  -fPIC -DPIC -o ssh2_sftp.lo
/bin/sh /var/tmp/pear-build-root/ssh2-0.10/libtool --mode=link gcc -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ssh2-0.10/include -I/var/tmp/pear-build-root/ssh2-0.10/main -I/tmp/tmpo1JlMs/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  -I/usr/kerberos/include/ -DHAVE_CONFIG_H  -g -O2   -o ssh2.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-root/ssh2-0.10/modules  ssh2.lo ssh2_fopen_wrappers.lo ssh2_sftp.lo -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lssh2
mkdir .libs
rm -fr .libs/ssh2.la .libs/ssh2.* .libs/ssh2.*
(cd . && ln -s ssh2.lo ssh2.o)
(cd . && ln -s ssh2_fopen_wrappers.lo ssh2_fopen_wrappers.o)
(cd . && ln -s ssh2_sftp.lo ssh2_sftp.o)
gcc -shared  ssh2.lo ssh2_fopen_wrappers.lo ssh2_sftp.lo  -L/usr/local/lib -lssh2  -Wl,-rpath -Wl,/usr/local/lib -Wl,-soname -Wl,ssh2.so -o .libs/ssh2.so
creating ssh2.la
(cd .libs && rm -f ssh2.la && ln -s ../ssh2.la ssh2.la)
/bin/sh /var/tmp/pear-build-root/ssh2-0.10/libtool --mode=install cp ./ssh2.la /var/tmp/pear-build-root/ssh2-0.10/modules
cp ./.libs/ssh2.so /var/tmp/pear-build-root/ssh2-0.10/modules/ssh2.so
cp ./.libs/ssh2.lai /var/tmp/pear-build-root/ssh2-0.10/modules/ssh2.la
PATH="$PATH:/sbin" ldconfig -n /var/tmp/pear-build-root/ssh2-0.10/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /var/tmp/pear-build-root/ssh2-0.10/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

ssh2.so copied to /tmp/tmpo1JlMs/ssh2-0.10/ssh2.so

Build process completed successfully
Installing 'ssh2.so' at ext_dir (/usr/lib/php4/ssh2.so)
failed to copy ssh2.so to /usr/lib/php4/ssh2.so


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-28 19:57 UTC] pollita@php.net
Silly question maybe, but do you have a directory named /usr/lib/php4 ?
 [2006-03-28 19:57 UTC] pollita@php.net
Oh, and is it writable by whatever user you're running `make install` as?
 [2008-12-21 11:18 UTC] mikesul@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC