php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60349 PHP 5.4 build fails
Submitted: 2011-11-21 18:36 UTC Modified: 2011-11-21 18:52 UTC
From: fedora at famillecollet dot com Assigned: tony2001 (profile)
Status: Closed Package: sphinx (PECL)
PHP Version: 5.4.0RC1 OS: GNU/Linux (Fedora 15)
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: fedora at famillecollet dot com
New email:
PHP Version: OS:

 

 [2011-11-21 18:36 UTC] fedora at famillecollet dot com
Description:
------------
Build fails against PHP 5.4.0RC2-dev

read_property now have an additional argument.
The attached patch fixe the build error.
The other warnings still are not fixed.


Test script:
---------------
make


Expected result:
----------------
Build complete.


Actual result:
--------------
libtool: compile:  cc -I. -I/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0 -DPHP_ATOM_INC -I/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/include -I/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/main -I/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0 -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 -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c /home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/sphinx.c  -fPIC -DPIC -o .libs/sphinx.o
/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/sphinx.c: In function 'php_sphinx_client_read_property':
/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/sphinx.c:105:2: error: too few arguments to function 'std_hnd->read_property'
/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/sphinx.c:88:21: warning: variable 'c' set but not used [-Wunused-but-set-variable]
/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/sphinx.c: In function 'php_sphinx_result_to_array':
/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/sphinx.c:246:10: warning: unused variable 'buf' [-Wunused-variable]
/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/sphinx.c:245:12: warning: unused variable 'float_value' [-Wunused-variable]
/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/sphinx.c: In function 'zim_SphinxClient_setFilter':
/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/sphinx.c:578:2: warning: pointer targets in passing argument 4 of 'sphinx_add_filter' differ in signedness [-Wpointer-sign]
/usr/include/sphinxclient.h:187:13: note: expected 'const sphinx_int64_t *' but argument is of type 'sphinx_uint64_t *'
/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/sphinx.c: In function 'zim_SphinxClient_updateAttributes':
/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/sphinx.c:1040:6: warning: passing argument 2 of 'memset' makes integer from pointer without a cast [enabled by default]
/usr/include/bits/string3.h:77:31: note: expected 'int' but argument is of type 'void *'
/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/sphinx.c:1094:3: warning: pointer targets in passing argument 7 of 'sphinx_update_attributes' differ in signedness [-Wpointer-sign]
/usr/include/sphinxclient.h:213:5: note: expected 'const sphinx_int64_t *' but argument is of type 'sphinx_uint64_t *'
/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/sphinx.c: In function 'zm_startup_sphinx':
/home/rpmbuild/BUILD/php-pecl-sphinx-1.1.0/sphinx-1.1.0/sphinx.c:1888:43: warning: assignment from incompatible pointer type [enabled by default]


Patches

php54.patch (last revision 2011-11-21 18:36 UTC by fedora at famillecollet dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-21 18:52 UTC] tony2001@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2011-11-21 18:52 UTC] tony2001@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: tony2001
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 20:01:29 2024 UTC