Bug #73777 [Fbk->NoF]: Zend/zend_alloc.c line 2389: error: identifier redefined: _emalloc
| From: | php-bugs at lists dot php dot net | Date: | Sun, 22 Jan 2017 04:22:53 +0000 |
| Subject: | Bug #73777 [Fbk->NoF]: Zend/zend_alloc.c line 2389: error: identifier redefined: _emalloc | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206839@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73777&edit=1
ID: 73777
Updated by: php-bugs@lists.php.net
Reported by: dclarke at blastwave dot org
Summary: Zend/zend_alloc.c line 2389: error: identifier
redefined: _emalloc
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Compile Failure
Operating System: Solaris 10 Update 11
PHP Version: 7.0.14
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2017-01-14 13:32:24] cmb@php.net
Somehow the compiler messages don't make sense. For instance:
"/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
line 2442 declares _efree_huge[1], but not _efree.
Please check whether there are line numbering issues.
[1] <https://github.com/php/php-src/blob/PHP-7.0.14/Zend/zend_alloc.c#L2442>
------------------------------------------------------------------------
[2016-12-17 17:09:35] dclarke at blastwave dot org
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 this bug report at https://bugs.php.net/bug.php?id=73777&edit=1