From: jwm at horde dot net Operating system: Solaris 8 PHP version: 5.0.0RC1 PHP Bug Type: Compile Failure Bug description: mbstring extension fails to build because SIZEOF_SHORT isn't defined
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 bug report at http://bugs.php.net/?id=27680&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27680&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27680&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27680&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27680&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27680&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27680&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27680&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27680&r=support Expected behavior: http://bugs.php.net/fix.php?id=27680&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27680&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27680&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27680&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27680&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27680&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27680&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27680&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27680&r=float
