|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58064 Build issues on OS X
Submitted: 2008-02-26 11:39 UTC Modified: 2009-10-26 16:49 UTC
From: henri dot bergius at iki dot fi Assigned:
Status: No Feedback Package: intl (PECL)
PHP Version: 5.2.0 OS: Mac OS X Leopard
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: henri dot bergius at iki dot fi
New email:
PHP Version: OS:


 [2008-02-26 11:39 UTC] henri dot bergius at iki dot fi
There seem to be two issues when trying to build the intl PECL package on OS X.

1) Missing PHP_SETUP_ICU definition

Running configure resulted in:

checking whether to enable internationalization support... yes, shared
./configure: line 3825: syntax error near unexpected token `INTL_SHARED_LIBADD'
./configure: line 3825: `  PHP_SETUP_ICU(INTL_SHARED_LIBADD)'

By copying the PHP_SETUP_ICU definition from I was able to make configure run.

2) Incompatible ptrdiff_t type

make resulted in error:

/private/tmp/pear/cache/intl-1.0.0beta/collator/collator_sort.c:30: error: conflicting types for 'ptrdiff_t'
/usr/lib/gcc/i686-apple-darwin9/4.0.1/include/stddef.h:152: error: previous declaration of 'ptrdiff_t' was here

This was fixable by removing ptrdiff_t definition in collator_sort.c.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-27 08:39 UTC] xdecock at gmail dot com
got the same problems on Ubuntu 7.10 (lastest cvs of intl for PHP 5.2) needed to drop the ptrdiff_t definition and pasted the PHP_SETUP_ICU
 [2008-03-20 19:44 UTC] stas at zend dot com
I think you need to upgrade the source to latest 5.2.x. It should contain PHP_SETUP_ICU. Please report if you have the ptrdiff problem with latest source too.
 [2009-10-26 16:49 UTC] stas at zend dot com
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Sep 27 06:01:24 2023 UTC