Bug #73777 [NEW]: Zend/zend_alloc.c line 2389: error: identifier redefined: _emalloc
| From: | dclarke at blastwave dot org | Date: | Sat, 17 Dec 2016 17:09:40 +0000 |
| Subject: | Bug #73777 [NEW]: Zend/zend_alloc.c line 2389: error: identifier redefined: _emalloc | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-206104@lists.php.net to get a copy of this message | ||
From: dclarke at blastwave dot org
Operating system: Solaris 10 Update 11
PHP version: 7.0.14
Package: Compile Failure
Bug Type: Bug
Bug description:Zend/zend_alloc.c line 2389: error: identifier redefined: _emalloc
Description:
------------
No test script as this is a compile from sources using cc compiler
provided in
the standards compliant Oracle Studio 12.5 developer tools on Solaris 10
update
11 with the latest up to date system patches.
Configure stage was trivial and successful :
$ ./configure --disable-all \
> --with-apxs2=/usr/local/bin/apxs --sysconfdir=/usr/local/etc \
> --includedir=/usr/local/include \
> --libdir=/usr/local/lib --libexecdir=/usr/local/libexec \
> --localstatedir=/usr/local/var/php --mandir=/usr/local/share/man \
> --infodir=/usr/local/share \
> --cache-file=../php-7.0.14_SunOS5.10_sparcv9.001.cache
The CFLAGS were set to allow a debug build with no optimization and
also
allows for extensions to C as PHP source is not C99 standards compliant
yet.
Thus :
CFLAGS =
-errfmt=error -erroff=%none -errshort=full -xstrconst -xildoff -m64
-xmemalign=8s -xnolibmil -Xa -xcode=pic32 -xregs=no%appl -xlibmieee
-ftrap=%none -xtarget=ultraT2 -xcache=8/16/4:4096/64/16
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE
Compile resulted in Zend/zend_alloc.c, line 2389 error: identifier
redefined: _emalloc thus :
/usr/local/bin/bash
/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/libtool --silent
--preserve-dup-deps --mode=compile
/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/meta_ccld
-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -IZend/
-I/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/ -DPHP_ATOM_INC
-I/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/include
-I/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/main
-I/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001
-I/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/ext/date/lib
-I/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/TSRM
-I/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend -lsocket -lnsl
-I/usr/local/include -I/usr/local/ssl/include -I/opt/mysql/mysql/include
-DOPENSSL_NO_SSL2 -D_EXTENSIONS_ -D__EXTENSIONS__ -D_XOPEN_SOURCE
-D_XOPEN_SOURCE_EXTENDED=1 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE -D_POSIX_PTHREAD_SEMANTICS
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -errfmt=error -erroff=%none
-errshort=full -xstrconst -xildoff -m64 -xmemalign=8s -xnolibmil -Xa
-xcode=pic32 -xregs=no%appl -xlibmieee -ftrap=%none -xtarget=ultraT2
-xcache=8/16/4:4096/64/16 -fast -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE -Kthread -DZTS -c
/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c -o
Zend/zend_alloc.lo
cc: Warning: illegal option -Kthread
cc: Warning: illegal option -Kthread
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_multiply.h",
line 276: warning: statement not reached
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_multiply.h",
line 289: warning: statement not reached
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_operators.h",
line 569: warning: integer overflow detected: op "<<"
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_operators.h",
line 569: warning: integer overflow detected: op "<<"
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_operators.h",
line 569: warning: integer overflow detected: op "<<"
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_operators.h",
line 569: warning: integer overflow detected: op "<<"
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_operators.h",
line 662: warning: integer overflow detected: op "<<"
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_operators.h",
line 662: warning: integer overflow detected: op "<<"
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_operators.h",
line 662: warning: integer overflow detected: op "<<"
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_operators.h",
line 662: warning: integer overflow detected: op "<<"
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 1034: warning: statement not reached
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 1052: warning: statement not reached
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 1527: warning: statement not reached
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 1773: warning: statement not reached
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 1791: warning: statement not reached
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 2389: error: identifier redefined: _emalloc
current : function(unsigned long) returning pointer to void
previous: function(unsigned long) returning pointer to void :
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 2383
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 2424: error: identifier redeclared: _efree
current : function(pointer to void, unsigned long) returning
void
previous: function(pointer to void) returning void :
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.h",
line 78
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 2441: error: identifier redefined: _efree
current : function(pointer to void, unsigned long) returning
void
previous: function(pointer to void, unsigned long) returning
void :
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 2425
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 2449: error: identifier redefined: _emalloc
current : function(unsigned long) returning pointer to void
previous: function(unsigned long) returning pointer to void :
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 2390
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 2464: error: identifier redefined: _efree
current : function(pointer to void) returning void
previous: function(pointer to void, unsigned long) returning
void :
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 2442
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 2618: warning: statement not reached
"/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c",
line 2630: warning: statement not reached
cc: acomp failed for
/usr/local/build/php-7.0.14_SunOS5.10_sparcv9.001/Zend/zend_alloc.c
gmake: *** [Zend/zend_alloc.lo] Error 1
$
see also https://bugs.php.net/bug.php?id=73601
Test script:
---------------
See Description as this is not a PHP script bug.
--
Edit bug report at https://bugs.php.net/bug.php?id=73777&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73777&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73777&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73777&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73777&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73777&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73777&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73777&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73777&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73777&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73777&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73777&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73777&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73777&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73777&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73777&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73777&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73777&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73777&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73777&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73777&r=mysqlcfg