Bug #70492 [Opn]: compile errors Solaris10/Studio12.1 (with fixes)

From: Date: Tue, 06 Oct 2015 12:28:09 +0000
Subject: Bug #70492 [Opn]: compile errors Solaris10/Studio12.1 (with fixes)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196427@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70492&edit=1

 ID:                 70492
 User updated by:    hsk at imb-jena dot de
 Reported by:        hsk at imb-jena dot de
 Summary:            compile errors Solaris10/Studio12.1 (with fixes)
 Status:             Open
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Solaris10
-PHP Version:        7.0.0RC2
+PHP Version:        7.0.0RC4
 Block user comment: N
 Private report:     N

 New Comment:

above report is still valid with php-7.0.0RC4


Previous Comments:
------------------------------------------------------------------------
[2015-09-14 14:23:40] hsk at imb-jena dot de

Description:
------------
to get php-7.0.0RC2 compiled on solaris 10 using studio 12.1 compiler, i had to make the following
changes (see attached pacth):
1) in ext/fileinfo/libmagic/apprentice.c file, offsetof is used, and compiler says "offsetof
undefined".  for solaris10/studio12.1, offsetof is defined in stddef.h, so adding
"#include <stddef.h>" to ext/fileinfo/libmagic/apprentice.c solved the compile
error.
2) Zend/zend_alloc.[ch] conditionally declare and use _emalloc_8, _emalloc_16, ... and _efree_8,
_efree_16, ..., but in Zend/zendalloc.h, these are #if'ed by "#if !ZEND_DEBUG &&
defined(HAVE_BUILTIN_CONSTANT_P)" while in Zend/zendalloc.c by "#if !ZEND_DEBUG &&
!defined(_WIN32".  the two #if's must be consistent, else compiling zend_alloc.c failed
for me.  in my patch, i have and-ed all three conditions, but maybe one of the two #if-variants is
what is wanted.
3) in sapi/phpdbg/phpdbg.c, when compiling function phpdbg_free_wrapper, compiler says "void
function cannot return value".  in my patch, i just commented the "return", but that
may not be the true solution...



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=70492&edit=1


Thread (11 messages)

« previous php.bugs (#196427) next »