php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56547 Compile fails
Submitted: 2005-09-15 01:52 UTC Modified: 2011-09-21 14:43 UTC
From: jbouvier at gmail dot com Assigned:
Status: Not a bug Package: ssh2 (PECL)
PHP Version: 4.3.10 OS: CentOS 3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jbouvier at gmail dot com
New email:
PHP Version: OS:

 

 [2005-09-15 01:52 UTC] jbouvier at gmail dot com
Description:
------------
When trying to install compile fails. Previous instruction in bug 4756 does not fix the issue - results produced are identical after instructions are followed. This is true with ssh2-0.7 through ssh2-0.9 at the very least.

PHP was compiled as:
Configure Command 	 './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-exif' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-zlib'



Reproduce code:
---------------
pear install ssh2-beta
or
download source and extract
phpize && ./configure --with-ssh2 && make

Expected result:
----------------
Successful compilation of module.

Actual result:
--------------
# phpize
Configuring for:
PHP Api Version:         20020918
Zend Module Api No:      20020429
Zend Extension Api No:   20021010

# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/inclu
de/php/TSRM -I/usr/local/include/php/Zend
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20020429
checking for re2c... exit 0;
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 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 how to run the C preprocessor... gcc -E
checking for egrep... grep -E
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
config.status: config.h is unchanged

# make
/bin/sh /home/cpins/ssh2-0.7/libtool --mode=compile gcc  -I. -I/home/cpins/ssh2-0.7 -DPHP_ATOM_INC -I/
home/cpins/ssh2-0.7/include -I/home/cpins/ssh2-0.7/main -I/home/cpins/ssh2-0.7 -I/usr/local/include/ph
p -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/loc
al/include  -DHAVE_CONFIG_H  -g -O2   -c /home/cpins/ssh2-0.7/ssh2.c -o ssh2.lo
gcc -I. -I/home/cpins/ssh2-0.7 -DPHP_ATOM_INC -I/home/cpins/ssh2-0.7/include -I/home/cpins/ssh2-0.7/ma
in -I/home/cpins/ssh2-0.7 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/
php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /home/cpins/ssh2
-0.7/ssh2.c  -fPIC -DPIC -o ssh2.lo
In file included from /usr/include/openssl/ssl.h:179,
                 from /usr/local/include/php/main/php_network.h:78,
                 from /home/cpins/ssh2-0.7/ssh2.c:28:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
                 from /usr/local/include/php/main/php_network.h:78,
                 from /home/cpins/ssh2-0.7/ssh2.c:28:
/usr/include/openssl/kssl.h:134: syntax error before "krb5_enctype"
/usr/include/openssl/kssl.h:136: syntax error before '*' token
/usr/include/openssl/kssl.h:137: syntax error before '}' token
/usr/include/openssl/kssl.h:149: syntax error before "kssl_ctx_setstring"
/usr/include/openssl/kssl.h:149: syntax error before '*' token
/usr/include/openssl/kssl.h:150: syntax error before '*' token
/usr/include/openssl/kssl.h:151: syntax error before '*' token
/usr/include/openssl/kssl.h:151: syntax error before '*' token
/usr/include/openssl/kssl.h:152: syntax error before '*' token
/usr/include/openssl/kssl.h:153: syntax error before "kssl_ctx_setprinc"
/usr/include/openssl/kssl.h:153: syntax error before '*' token
/usr/include/openssl/kssl.h:155: syntax error before "kssl_cget_tkt"
/usr/include/openssl/kssl.h:155: syntax error before '*' token
/usr/include/openssl/kssl.h:157: syntax error before "kssl_sget_tkt"
/usr/include/openssl/kssl.h:157: syntax error before '*' token
/usr/include/openssl/kssl.h:159: syntax error before "kssl_ctx_setkey"
/usr/include/openssl/kssl.h:159: syntax error before '*' token
/usr/include/openssl/kssl.h:161: syntax error before "context"
/usr/include/openssl/kssl.h:162: syntax error before "kssl_build_principal_2"
/usr/include/openssl/kssl.h:162: syntax error before "context"
/usr/include/openssl/kssl.h:165: syntax error before "kssl_validate_times"
/usr/include/openssl/kssl.h:165: syntax error before "atime"
/usr/include/openssl/kssl.h:167: syntax error before "kssl_check_authent"
/usr/include/openssl/kssl.h:167: syntax error before '*' token
/usr/include/openssl/kssl.h:169: syntax error before "enctype"
In file included from /usr/local/include/php/main/php_network.h:78,
                 from /home/cpins/ssh2-0.7/ssh2.c:28:
/usr/include/openssl/ssl.h:909: syntax error before "KSSL_CTX"
/usr/include/openssl/ssl.h:931: syntax error before '}' token
/home/cpins/ssh2-0.7/ssh2.c: In function `zif_ssh2_methods_negotiated':
/home/cpins/ssh2-0.7/ssh2.c:468: warning: assignment discards qualifiers from pointer target type
/home/cpins/ssh2-0.7/ssh2.c:469: warning: assignment discards qualifiers from pointer target type
/home/cpins/ssh2-0.7/ssh2.c:470: warning: assignment discards qualifiers from pointer target type
/home/cpins/ssh2-0.7/ssh2.c:471: warning: assignment discards qualifiers from pointer target type
/home/cpins/ssh2-0.7/ssh2.c:472: warning: assignment discards qualifiers from pointer target type
/home/cpins/ssh2-0.7/ssh2.c:473: warning: assignment discards qualifiers from pointer target type
/home/cpins/ssh2-0.7/ssh2.c:474: warning: assignment discards qualifiers from pointer target type
/home/cpins/ssh2-0.7/ssh2.c:475: warning: assignment discards qualifiers from pointer target type
/home/cpins/ssh2-0.7/ssh2.c:476: warning: assignment discards qualifiers from pointer target type
/home/cpins/ssh2-0.7/ssh2.c:477: warning: assignment discards qualifiers from pointer target type
/home/cpins/ssh2-0.7/ssh2.c: In function `zif_ssh2_fingerprint':
/home/cpins/ssh2-0.7/ssh2.c:521: warning: assignment discards qualifiers from pointer target type
make: *** [ssh2.lo] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-19 15:27 UTC] kingsly at users dot sf dot net
Running the following command on the shell before starting the build process makes the extension compile properly.

export CPPFLAGS='-I/usr/kerberos/include/'

Kingsly
 [2011-09-21 14:43 UTC] bjori@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PECL.

:)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 04:01:28 2024 UTC