From: nospam at hjcms dot de Operating system: Linux PHP version: 5.3.0 PHP Bug Type: Compile Failure Bug description: string.c: errors: duplicate case values
Description: ------------ -c /usr/src/packages/BUILD/php-5.3.0/ext/standard/string.c -o ext/standard/string.lo /usr/src/packages/BUILD/php-5.3.0/ext/standard/string.c: In function 'zif_nl_langinfo': /usr/src/packages/BUILD/php-5.3.0/ext/standard/string.c:592: error: duplicate case value /usr/src/packages/BUILD/php-5.3.0/ext/standard/string.c:589: error: previously used here /usr/src/packages/BUILD/php-5.3.0/ext/standard/string.c:598: error: duplicate case value /usr/src/packages/BUILD/php-5.3.0/ext/standard/string.c:595: error: previously used here gmake: *** [ext/standard/string.lo] Fehler 1 Reproduce code: --------------- #ifdef DECIMAL_POINT case DECIMAL_POINT: #endif #ifdef RADIXCHAR case RADIXCHAR: #endif #ifdef THOUSANDS_SEP case THOUSANDS_SEP: #endif #ifdef THOUSEP case THOUSEP: #endif Expected result: ---------------- case mismatch with glibc 2.10.1 rpm -qf /usr/include/langinfo.h glibc-devel-2.10.1-2009154 Actual result: -------------- grep --color=auto -e DECIMAL_POINT -e RADIXCHAR -e THOUSANDS_SEP -e THOUSEP /usr/include/langinfo.h __MON_DECIMAL_POINT, # define MON_DECIMAL_POINT __MON_DECIMAL_POINT __MON_THOUSANDS_SEP, # define MON_THOUSANDS_SEP __MON_THOUSANDS_SEP _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC, __DECIMAL_POINT = _NL_ITEM (__LC_NUMERIC, 0), # define DECIMAL_POINT __DECIMAL_POINT RADIXCHAR = __DECIMAL_POINT, #define RADIXCHAR RADIXCHAR __THOUSANDS_SEP, # define THOUSANDS_SEP __THOUSANDS_SEP THOUSEP = __THOUSANDS_SEP, #define THOUSEP THOUSEP _NL_NUMERIC_DECIMAL_POINT_WC, _NL_NUMERIC_THOUSANDS_SEP_WC, -- Edit bug report at http://bugs.php.net/?id=48872&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48872&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48872&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48872&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48872&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48872&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48872&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48872&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48872&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48872&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48872&r=support Expected behavior: http://bugs.php.net/fix.php?id=48872&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48872&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48872&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48872&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48872&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48872&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48872&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48872&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48872&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48872&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48872&r=mysqlcfg