Bug #73727 [NEW]: ZEND_MM_BITSET_LEN is "undefined symbol" in zend_bitset.h

From: Date: Mon, 12 Dec 2016 23:14:17 +0000
Subject: Bug #73727 [NEW]: ZEND_MM_BITSET_LEN is "undefined symbol" in zend_bitset.h
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205943@lists.php.net to get a copy of this message
From: john dot woods at greatplainsmfg dot com Operating system: Solaris 11.3 PHP version: 7.1.0 Package: Compile Failure Bug Type: Bug Bug description:ZEND_MM_BITSET_LEN is "undefined symbol" in zend_bitset.h Description: ------------ Compile Error: "Zend/zend_bitset.h", line 66: undefined symbol: ZEND_MM_BITSET_LEN Compiling Environment: - PHP 7.1.0 - O/S: Solaris 11.3.13.4.0 - Compiler: Developer Studio 12.5 (works fine against gcc 4.8 compiler) Steps To Recreate: - Extract source distribution export CC=cc export CXX=CC export CFLAGS="-m64" export CPPFLAGS="${CFLAGS}" ./configure --sysconfdir=/etc/php --with-config-file-path=/etc/php --with-apxs2=/usr/local/apache2/bin/apxs --disable-all make Notes: - This error doesn't occur with PHP 7.0.13 - This error doesn't occur with GCC 4.8 - The ZEND_MM_BITSET_LEN macro is defined in zend_alloc.c, but is being referenced in zend_bitset.h If I move the typedef for zend_mm_bitset and the #define for ZEND_MM_BITSET_LEN from zend_alloc.c into zend_bitset.h, it compiles fine. Note: I also had to make the changes mentioned in bug #70492 in order to get it to compile correctly. Actual result: -------------- /bin/sh /files/source/php/php-7.1.0-SunOS-5.11-i386/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/standard/ -I/files/source/php/php-7.1.0-SunOS-5.11-i386/ext/standard/ -DPHP_ATOM_INC -I/files/source/php/php-7.1.0-SunOS-5.11-i386/include -I/files/source/php/php-7.1.0-SunOS-5.11-i386/main -I/files/source/php/php-7.1.0-SunOS-5.11-i386 -I/files/source/php/php-7.1.0-SunOS-5.11-i386/ext/date/lib -I/files/source/php/php-7.1.0-SunOS-5.11-i386/TSRM -I/files/source/php/php-7.1.0-SunOS-5.11-i386/Zend -m64 -D_POSIX_PTHREAD_SEMANTICS -m64 -DZEND_SIGNALS -c /files/source/php/php-7.1.0-SunOS-5.11-i386/ext/standard/array.c -o ext/standard/array.lo "/files/source/php/php-7.1.0-SunOS-5.11-i386/Zend/zend_multiply.h", line 276: warning: statement not reached "/files/source/php/php-7.1.0-SunOS-5.11-i386/Zend/zend_multiply.h", line 289: warning: statement not reached "/files/source/php/php-7.1.0-SunOS-5.11-i386/Zend/zend_operators.h", line 579: warning: integer overflow detected: op "<<" "/files/source/php/php-7.1.0-SunOS-5.11-i386/Zend/zend_operators.h", line 579: warning: integer overflow detected: op "<<" "/files/source/php/php-7.1.0-SunOS-5.11-i386/Zend/zend_operators.h", line 579: warning: integer overflow detected: op "<<" "/files/source/php/php-7.1.0-SunOS-5.11-i386/Zend/zend_operators.h", line 579: warning: integer overflow detected: op "<<" "/files/source/php/php-7.1.0-SunOS-5.11-i386/Zend/zend_operators.h", line 672: warning: integer overflow detected: op "<<" "/files/source/php/php-7.1.0-SunOS-5.11-i386/Zend/zend_operators.h", line 672: warning: integer overflow detected: op "<<" "/files/source/php/php-7.1.0-SunOS-5.11-i386/Zend/zend_operators.h", line 672: warning: integer overflow detected: op "<<" "/files/source/php/php-7.1.0-SunOS-5.11-i386/Zend/zend_operators.h", line 672: warning: integer overflow detected: op "<<" "/files/source/php/php-7.1.0-SunOS-5.11-i386/Zend/zend_bitset.h", line 66: undefined symbol: ZEND_MM_BITSET_LEN "/files/source/php/php-7.1.0-SunOS-5.11-i386/ext/standard/array.c", line 630: warning: statement not reached "/files/source/php/php-7.1.0-SunOS-5.11-i386/ext/standard/array.c", line 696: warning: statement not reached cc: acomp failed for /files/source/php/php-7.1.0-SunOS-5.11-i386/ext/standard/array.c *** Error code 1 make: Fatal error: Command failed for target `ext/standard/array.lo' -- Edit bug report at https://bugs.php.net/bug.php?id=73727&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73727&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73727&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73727&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73727&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73727&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73727&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73727&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73727&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73727&r=support Expected behavior: https://bugs.php.net/fix.php?id=73727&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73727&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73727&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73727&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73727&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73727&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73727&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73727&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73727&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73727&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73727&r=mysqlcfg

« previous php.bugs (#205943) next »