#27680 [Asn->Fbk]: mbstring extension fails to build because SIZEOF_SHORT isn't defined
| From: | sniper@php.net | Date: | Fri, 09 Apr 2004 00:00:46 +0000 |
| Subject: | #27680 [Asn->Fbk]: mbstring extension fails to build because SIZEOF_SHORT isn't defined | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57823@lists.php.net to get a copy of this message | ||
ID: 27680
Updated by: sniper@php.net
Reported By: jwm at horde dot net
-Status: Assigned
+Status: Feedback
Bug Type: mbstring related
Operating System: Solaris 8
PHP Version: 5CVS-2004-04-07
Assigned To: moriyoshi
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-04-07 11:09:58] sniper@php.net
Funnily enough it compile fine on Linux..and yet that macro is never
defined anywhere. Assigning to the person who last touched this file in
question..
------------------------------------------------------------------------
[2004-03-24 16:38:48] jwm at horde dot net
Description:
------------
Some of the macros in the mbstring extension are
conditionally defined depending on the value of
SIZEOF_SHORT, but which doesn't seem to be defined
anywhere. This causes the build to fail with undefined
symbols:
Undefined first referenced
symbol in file
SERIALIZE_SHORT ext/mbstring/
oniguruma/regcomp.lo
GET_SHORT_INC ext/mbstring/
oniguruma/regexec.lo
ld: fatal: Symbol referencing errors. No output written
to sapi/cli/php
ext/mbstring/oniguruma/config.h.in has potential
definitions for SIZEOF_SHORT, but ext/mbstring/
oniguruma/config.h contains only:
#include "php_config.h"
Relevant code from ext/mbstring/oniguruma/regint.h:
#if SIZEOF_SHORT == 2
#define GET_SHORT_INC(i,p) GET_2BYTE_INT_INC(short,i,p)
#define SERIALIZE_SHORT(i,p) SERIALIZE_2BYTE_INT(i,p)
#elif SIZEOF_SHORT == 4
#define GET_SHORT_INC(i,p) GET_4BYTE_INT_INC(short,i,p)
#define SERIALIZE_SHORT(i,p) SERIALIZE_4BYTE_INT(i,p)
#elif SIZEOF_SHORT == 8
#define GET_SHORT_INC(i,p) GET_8BYTE_INT_INC(short,i,p)
#define SERIALIZE_SHORT(i,p) SERIALIZE_8BYTE_INT(i,p)
#endif
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27680&edit=1