php.net |  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
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: 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
Description:
------------
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 http://www.mail-archive.com/php-cvs@lists.php.net/msg27206.html 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.


Patches

Pull Requests

History

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 20:01:27 2024 UTC