#27680 [Opn->Asn]: mbstring extension fails to build because SIZEOF_SHORT isn't defined
| From: | sniper@php.net | Date: | Wed, 07 Apr 2004 15:09:58 +0000 |
| Subject: | #27680 [Opn->Asn]: 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-57717@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: Open
+Status: Assigned
Bug Type: mbstring related
Operating System: Solaris 8
PHP Version: 5.0.0RC1
-Assigned To:
+Assigned To: moriyoshi
New Comment:
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..
Previous Comments:
------------------------------------------------------------------------
[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