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

From: Date: Wed, 14 Dec 2016 01:43:22 +0000
Subject: Bug #73727 [Com]: ZEND_MM_BITSET_LEN is "undefined symbol" in zend_bitset.h
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205978@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73727&edit=1 ID: 73727 Comment by: mail at dasprids dot de Reported by: john dot woods at greatplainsmfg dot com Summary: ZEND_MM_BITSET_LEN is "undefined symbol" in zend_bitset.h Status: Open Type: Bug Package: Compile Failure Operating System: Solaris 11.3 PHP Version: 7.1.0 Block user comment: N Private report: N New Comment: I experience the same problem under UbuntuGNOME 16.04 with the normal distribution build tools installed. Previous Comments: ------------------------------------------------------------------------ [2016-12-12 23:14:14] john dot woods at greatplainsmfg dot com 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 this bug report at https://bugs.php.net/bug.php?id=73727&edit=1

« previous php.bugs (#205978) next »