php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73727 ZEND_MM_BITSET_LEN is "undefined symbol" in zend_bitset.h
Submitted: 2016-12-12 23:14 UTC Modified: -
From: john dot woods at greatplainsmfg dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 7.1.0 OS: Solaris 11.3
Private report: No CVE-ID:
 [2016-12-12 23:14 UTC] 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'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-14 01:43 UTC] mail at dasprids dot de
I experience the same problem under UbuntuGNOME 16.04 with the normal distribution build tools installed.
 [2016-12-14 16:57 UTC] nikic@php.net
Automatic comment on behalf of nikic
Revision: http://git.php.net/?p=php-src.git;a=commit;h=2f438342ecef4efd207becddf9cea46d0d3a2f00
Log: Fixed bug #73727
 [2016-12-14 16:57 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Feb 21 14:01:44 2017 UTC