php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58695 does not build with php-5.3.x
Submitted: 2009-05-19 12:07 UTC Modified: 2009-07-25 18:23 UTC
From: oeriksson at mandriva dot com Assigned: jon (profile)
Status: Closed Package: python (PECL)
PHP Version: 5.3.0RC2 OS: Mandriva Cooker
Private report: No CVE-ID: None
 [2009-05-19 12:07 UTC] oeriksson at mandriva dot com
Description:
------------
python does not build with php-5.3.x

Reproduce code:
---------------
as done usually

Expected result:
----------------
should build

Actual result:
--------------
[...]
libtool: compile:  cc -I. -I/home/oden/RPM/BUILD/python-0.8.0 -DPHP_ATOM_INC -I/home/oden/RPM/BUILD/python-0.8.0/include -I/home/oden/RPM/BUILD/python-0.8.0/main -I/home/oden/RPM/BUILD/python-0.8.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 -I/usr/include/python2.6 -I/usr/include/php -DHAVE_CONFIG_H -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -c /home/oden/RPM/BUILD/python-0.8.0/python_handlers.c  -fPIC -DPIC -o .libs/python_handlers.o
/home/oden/RPM/BUILD/python-0.8.0/python_handlers.c: In function 'efree_function':
/home/oden/RPM/BUILD/python-0.8.0/python_handlers.c:48: warning: passing argument 1 of '_efree' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_alloc.h:46: note: expected 'void *' but argument is of type 'const char *'
/home/oden/RPM/BUILD/python-0.8.0/python_handlers.c:51: warning: passing argument 1 of '_efree' discards qualifiers from pointer target type
/usr/include/php/Zend/zend_alloc.h:46: note: expected 'void *' but argument is of type 'const char *'
/home/oden/RPM/BUILD/python-0.8.0/python_handlers.c: In function 'python_call_method':
/home/oden/RPM/BUILD/python-0.8.0/python_handlers.c:501: error: 'zend_executor_globals' has no member named 'function_state_ptr'
/home/oden/RPM/BUILD/python-0.8.0/python_handlers.c: At top level:
/home/oden/RPM/BUILD/python-0.8.0/python_handlers.c:638: warning: initialization from incompatible pointer type
/home/oden/RPM/BUILD/python-0.8.0/python_handlers.c:639: warning: initialization from incompatible pointer type
[...]

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-10 13:24 UTC] zbigniew dot braniecki at gmail dot com
I successfully compiled python package from CVS against 5.3
 [2009-07-25 18:23 UTC] jon@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

Please use the SVN version of the Python package code to build against newer PHP releases.  I haven't released an updated version of the package yet, but the code in SVN is current.
 [2010-09-21 02:41 UTC] Jeremy at JBDynamics dot com
I am still getting this same error with the svn trunk (I 
couldn't log in with cvsread account to download the code 
from cvs). I have php 5.3.3 with most of the PECLs 
installed. I have mod_python and I was using a fresh build 
of Python 2.5 (it wouldn't let me use Python 2.7). Am I 
doing something wrong here?

root@srvr01 [~/python-pecl/trunk]# make
/bin/sh /root/python-pecl/python-0.8.0/libtool --
mode=compile cc  -I. -I/root/python-pecl/python-0.8.0 -
DPHP_ATOM_INC -I/root/python-pecl/python-0.8.0/include -
I/root/python-pecl/python-0.8.0/main -I/root/python-
pecl/python-0.8.0 -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/php/ext -
I/usr/local/include/php/ext/date/lib -
I/usr/local/include/python2.5  -DHAVE_CONFIG_H  -g -O2   -c 
/root/python-pecl/python-0.8.0/python.c -o python.lo 
mkdir .libs
 cc -I. -I/root/python-pecl/python-0.8.0 -DPHP_ATOM_INC -
I/root/python-pecl/python-0.8.0/include -I/root/python-
pecl/python-0.8.0/main -I/root/python-pecl/python-0.8.0 -
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/php/ext -
I/usr/local/include/php/ext/date/lib -
I/usr/local/include/python2.5 -DHAVE_CONFIG_H -g -O2 -c 
/root/python-pecl/python-0.8.0/python.c  -fPIC -DPIC -o 
.libs/python.o
/bin/sh /root/python-pecl/python-0.8.0/libtool --
mode=compile cc  -I. -I/root/python-pecl/python-0.8.0 -
DPHP_ATOM_INC -I/root/python-pecl/python-0.8.0/include -
I/root/python-pecl/python-0.8.0/main -I/root/python-
pecl/python-0.8.0 -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/php/ext -
I/usr/local/include/php/ext/date/lib -
I/usr/local/include/python2.5  -DHAVE_CONFIG_H  -g -O2   -c 
/root/python-pecl/python-0.8.0/python_convert.c -o 
python_convert.lo 
 cc -I. -I/root/python-pecl/python-0.8.0 -DPHP_ATOM_INC -
I/root/python-pecl/python-0.8.0/include -I/root/python-
pecl/python-0.8.0/main -I/root/python-pecl/python-0.8.0 -
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/php/ext -
I/usr/local/include/php/ext/date/lib -
I/usr/local/include/python2.5 -DHAVE_CONFIG_H -g -O2 -c 
/root/python-pecl/python-0.8.0/python_convert.c  -fPIC -DPIC 
-o .libs/python_convert.o
/root/python-pecl/python-0.8.0/python_convert.c: In function 
?pip_mapping_to_hash?:
/root/python-pecl/python-0.8.0/python_convert.c:326: 
warning: passing argument 3 of ?PyString_AsStringAndSize? 
from incompatible pointer type
/root/python-pecl/python-0.8.0/python_convert.c: In function 
?python_str?:
/root/python-pecl/python-0.8.0/python_convert.c:573: 
warning: passing argument 3 of ?PyString_AsStringAndSize? 
from incompatible pointer type
/bin/sh /root/python-pecl/python-0.8.0/libtool --
mode=compile cc  -I. -I/root/python-pecl/python-0.8.0 -
DPHP_ATOM_INC -I/root/python-pecl/python-0.8.0/include -
I/root/python-pecl/python-0.8.0/main -I/root/python-
pecl/python-0.8.0 -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/php/ext -
I/usr/local/include/php/ext/date/lib -
I/usr/local/include/python2.5  -DHAVE_CONFIG_H  -g -O2   -c 
/root/python-pecl/python-0.8.0/python_handlers.c -o 
python_handlers.lo 
 cc -I. -I/root/python-pecl/python-0.8.0 -DPHP_ATOM_INC -
I/root/python-pecl/python-0.8.0/include -I/root/python-
pecl/python-0.8.0/main -I/root/python-pecl/python-0.8.0 -
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/php/ext -
I/usr/local/include/php/ext/date/lib -
I/usr/local/include/python2.5 -DHAVE_CONFIG_H -g -O2 -c 
/root/python-pecl/python-0.8.0/python_handlers.c  -fPIC -
DPIC -o .libs/python_handlers.o
/root/python-pecl/python-0.8.0/python_handlers.c: In 
function ?efree_function?:
/root/python-pecl/python-0.8.0/python_handlers.c:48: 
warning: passing argument 1 of ?_efree? discards qualifiers 
from pointer target type
/root/python-pecl/python-0.8.0/python_handlers.c:51: 
warning: passing argument 1 of ?_efree? discards qualifiers 
from pointer target type
/root/python-pecl/python-0.8.0/python_handlers.c: In 
function ?python_call_method?:
/root/python-pecl/python-0.8.0/python_handlers.c:501: error: 
?zend_executor_globals? has no member named 
?function_state_ptr?
/root/python-pecl/python-0.8.0/python_handlers.c: At top 
level:
/root/python-pecl/python-0.8.0/python_handlers.c:638: 
warning: initialization from incompatible pointer type
/root/python-pecl/python-0.8.0/python_handlers.c:639: 
warning: initialization from incompatible pointer type
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 04:01:26 2024 UTC