php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27680 mbstring extension fails to build because SIZEOF_SHORT isn't defined
Submitted: 2004-03-24 16:38 UTC Modified: 2004-04-09 03:44 UTC
From: jwm at horde dot net Assigned: moriyoshi (profile)
Status: Closed Package: mbstring related
PHP Version: 5CVS-2004-04-07 OS: Solaris 8
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: jwm at horde dot net
New email:
PHP Version: OS:

 

 [2004-03-24 16:38 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-07 11:09 UTC] 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-04-08 20:00 UTC] sniper@php.net
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


 [2004-04-08 22:54 UTC] jwm at horde dot net
The build completes successfully. Thanks!
 [2004-04-09 03:44 UTC] derick@php.net
Closing then.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC