php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58331 can't compile
Submitted: 2008-09-03 17:19 UTC Modified: 2008-10-29 04:28 UTC
From: franck dot tab at gmail dot com Assigned:
Status: Closed Package: funcall (PECL)
PHP Version: 5.2.0 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: franck dot tab at gmail dot com
New email:
PHP Version: OS:

 

 [2008-09-03 17:19 UTC] franck dot tab at gmail dot com
Description:
------------
Can not compile the package under debian 4.0

Reproduce code:
---------------
1. download http://funcall.googlecode.com/files/funcall-0.2.1.tgz
2. untar
3. phpize && ./configure && make


Expected result:
----------------
no errors

Actual result:
--------------
/bin/sh /root/funcall-0.2.1/libtool --mode=compile gcc  -I.
-I/root/funcall-0.2.1 -DPHP_ATOM_INC -I/root/funcall-0.2.1/include
-I/root/funcall-0.2.1/main -I/root/funcall-0.2.1 -I/usr/include/php5
-I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend
-I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_CONFIG_H  -g -O2   -c
/root/funcall-0.2.1/funcall.c -o funcall.lo 
mkdir .libs
 gcc -I. -I/root/funcall-0.2.1 -DPHP_ATOM_INC -I/root/funcall-0.2.1/include
-I/root/funcall-0.2.1/main -I/root/funcall-0.2.1 -I/usr/include/php5
-I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend
-I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c
/root/funcall-0.2.1/funcall.c  -fPIC -DPIC -o .libs/funcall.o
/root/funcall-0.2.1/funcall.c: In function 'get_current_function_args':
/root/funcall-0.2.1/funcall.c:306: error: 'zend_uintptr_t' undeclared
(first use in this function)
/root/funcall-0.2.1/funcall.c:306: error: (Each undeclared identifier is
reported only once
/root/funcall-0.2.1/funcall.c:306: error: for each function it appears in.)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-23 20:49 UTC] surfchen at gmail dot com
Is there zend_types.h in your php headers dir?

It may be at /usr/local/include/php/Zend/zend_types.h.

And if you can find this file,can you see "typedef unsigned long zend_uintptr_t;" inside it?
 [2008-09-23 21:09 UTC] franck dot tab at gmail dot com
I've got zend_types.h here:
/usr/include/php5/Zend/zend_types.h

And below lines containing "typedef" string:

typedef unsigned char zend_bool;
typedef unsigned char zend_uchar;
typedef unsigned int zend_uint;
typedef unsigned long zend_ulong;
typedef unsigned short zend_ushort;

typedef unsigned int zend_object_handle;
typedef struct _zend_object_handlers zend_object_handlers;

typedef struct _zend_object_value {
    zend_object_handle handle;
    zend_object_handlers *handlers;
} zend_object_value;

Franck
 [2008-09-25 09:39 UTC] surfchen at gmail dot com
zend_uintptr_t is not defined in php 5.2.0 or older version.

I changed zend_uintptr_t to zend_ulong.

Before the next version release,you can get a fixed version from svn with "svn checkout http://funcall.googlecode.com/svn/trunk/ funcall-read-only". 

Thanks for your report.
 [2008-09-25 09:41 UTC] surfchen at gmail dot com
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.


 [2008-09-25 15:29 UTC] franck dot tab at gmail dot com
Great, thanks, i'll test and provide feedback next week.
 [2008-10-29 04:28 UTC] franck dot tab at gmail dot com
Fixed in the latest svn version.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 05:01:30 2024 UTC