php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59065 does not compile on Fedora 11 / PHP 5.3.1
Submitted: 2010-02-07 15:56 UTC Modified: 2011-09-21 15:09 UTC
From: h dot reindl at thelounge dot net Assigned:
Status: Closed Package: ssh2 (PECL)
PHP Version: 5_3.1RC2 OS:
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: h dot reindl at thelounge dot net
New email:
PHP Version: OS:

 

 [2010-02-07 15:56 UTC] h dot reindl at thelounge dot net
Description:
------------
Hi, i'm trying to build php 5.3.1 Final for Fedora 11 with all our used pecl-extensions and only "ssh2" and "gdchart" are making problems

/usr/include/php/Zend/zend_API.h:360: note: expected 'char *' but argument is of type 'const char *'
/home/builduser/rpmbuild/BUILD/php-pecl-ssh2-0.11.0/ssh2-0.11.0/ssh2.c: In function 'zif_ssh2_publickey_add':
/home/builduser/rpmbuild/BUILD/php-pecl-ssh2-0.11.0/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:60: note: expected 'void *' but argument is of type 'const char *'
/home/builduser/rpmbuild/BUILD/php-pecl-ssh2-0.11.0/ssh2-0.11.0/ssh2.c: In function 'zif_ssh2_publickey_list':
/home/builduser/rpmbuild/BUILD/php-pecl-ssh2-0.11.0/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 *'
/home/builduser/rpmbuild/BUILD/php-pecl-ssh2-0.11.0/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
make: *** Waiting for unfinished jobs...
________________

Here is my SPEC-File:

%{!?__pecl:     %{expand: %%global __pecl     %{_bindir}/pecl}}
%{!?php_extdir: %{expand: %%global php_extdir %(php-config --extension-dir)}}

%define php_apiver %((echo %{default_apiver}; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
%define pecl_name ssh2

Summary:           PHP bindings to the functions of libssh2
Name:              php-pecl-ssh2
Version:           0.11.0
Release:           1%{?dist}
Epoch:             3
License:           PHP
Group:             Development/Languages
URL:               http://pecl.php.net/package/ssh2
Source:            http://pecl.php.net/get/ssh2-%{version}.tgz
BuildRoot:         %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires:     php-devel >= 5.3.0, httpd-devel, php-pear, perl, pkgconfig
BuildRequires:     libssh2-devel
Requires(post):    %{__pecl}
Requires(postun):  %{__pecl}
Provides:          php-(%{pecl_name}) = %{version}

%if %{?php_zend_api}0
Requires:          php(zend-abi) = %{php_zend_api}
Requires:          php(api) = %{php_core_api}
%else
Requires:          php-api = %{php_apiver}
%endif

%description
Provides bindings to the functions of libssh2 which implements
the SSH2 protocol.

libssh2 is available from http://www.sourceforge.net/projects/libssh2

%prep
%setup -q -c

%build
cd ssh2-%{version}
%{_bindir}/phpize

source /home/builduser/config.sh
export RPM_OPT_FLAGS="-O3 -march=$RH_TUNE -mtune=$RH_TUNE -mmmx -msse3 -fopenmp -pipe -fno-strict-aliasing -fno-delete-null-pointer-checks -fstack-protector -Wno-pointer-sign -D_FORTIFY_SOURCE=2"
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="-O3 -march=$RH_TUNE -mtune=$RH_TUNE -mmmx -msse3 -fopenmp -fno-delete-null-pointer-checks -fstack-protector -D_FORTIFY_SOURCE=2"

%configure --with-ssh2
%{__make} %{?_smp_mflags}

%install
pushd %{pecl_name}-%{version}
%{__rm} -rf %{buildroot}
%{__make} install INSTALL_ROOT=%{buildroot}

popd

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%{php_extdir}/%{pecl_name}.so

%changelog
* Sun Feb  7 2010 Reindl Harald <h.reindl@thelounge.net> 0.11.0-1.rh
- Initial PHP 5.3 / FC11 build




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-21 15:09 UTC] bjori@php.net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/ssh2

Fixed long time ago
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC