Bug #51847 [Opn]: php 5.2.13 and gettext 0.18: Undefined symbols: _zif_setlocale
| From: | rasmus@php.net | Date: | Wed, 02 Jun 2010 05:35:18 +0000 |
| Subject: | Bug #51847 [Opn]: php 5.2.13 and gettext 0.18: Undefined symbols: _zif_setlocale | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151003@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51847&edit=1
ID: 51847
Updated by: rasmus@php.net
Reported by: php-bugs-2010 at ryandesign dot com
Summary: php 5.2.13 and gettext 0.18: Undefined symbols:
_zif_setlocale
Status: Open
Type: Bug
Package: Compile Failure
Operating System: Mac OS X 10.6.3 x86_64
PHP Version: 5.2.13
New Comment:
I think this has to do with libintl. I see:
#undef setlocale
#define setlocale libintl_setlocale
in libintl.h which is obviously going to make a mess of things.
So, a quick compile fix is to skip the #include libintl.h in
ext/standard/string.c but someone should really give the libintl dev who
decided that was a good idea a "pat" on the back.
Previous Comments:
------------------------------------------------------------------------
[2010-05-18 12:18:08] php-bugs-2010 at ryandesign dot com
php 5.3.2 builds fine with gettext 0.17 and 0.18.
This issue only appears to affect php 5.2.x.
Adding '#include "ext/standard/php_string.h"' to
ext/standard/basic_functions.c does not change the
error message.
------------------------------------------------------------------------
[2010-05-18 10:04:40] kalle@php.net
Hi
Does this happen with 5.3 aswell? Does adding the following include
after including 'ext/standard/php_uuencode.h' work:
#include "ext/standard/php_string.h"
------------------------------------------------------------------------
[2010-05-18 05:09:31] php-bugs-2010 at ryandesign dot com
Modify summary.
------------------------------------------------------------------------
[2010-05-18 05:07:58] php-bugs-2010 at ryandesign dot com
Description:
------------
Hello, I'm the maintainer of the php packages in MacPorts,
and it seems that php 5.2.13 doesn't build with gettext 0.18
(at least not on Mac OS X 10.6.3 x86_64). It fails with:
Undefined symbols:
"_zif_setlocale", referenced from:
_basic_functions in basic_functions.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1
php 5.2.13 builds fine with gettext 0.17, and php 5.3.2
builds fine with gettext 0.17 and 0.18. Here's the bug
report that was submitted to us:
http://trac.macports.org/ticket/24934
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51847&edit=1