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

From: Date: Mon, 14 Sep 2015 14:23:43 +0000
Subject: Bug #70492 [NEW]: compile errors Solaris10/Studio12.1 (with fixes)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196001@lists.php.net to get a copy of this message
From: hsk at imb-jena dot de Operating system: Solaris10 PHP version: 7.0.0RC2 Package: Compile Failure Bug Type: Bug Bug description:compile errors Solaris10/Studio12.1 (with fixes) 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 bug report at https://bugs.php.net/bug.php?id=70492&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70492&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70492&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70492&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70492&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70492&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70492&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70492&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70492&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70492&r=support Expected behavior: https://bugs.php.net/fix.php?id=70492&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70492&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70492&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70492&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70492&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70492&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70492&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70492&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70492&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70492&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70492&r=mysqlcfg

« previous php.bugs (#196001) next »