Bug #74379 [NEW]: syntax error compile error in ext/fileinfo/libmagic/apprentice.c
| From: | ralf dot ramge at ict dot technology | Date: | Thu, 06 Apr 2017 07:35:28 +0000 |
| Subject: | Bug #74379 [NEW]: syntax error compile error in ext/fileinfo/libmagic/apprentice.c | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-208351@lists.php.net to get a copy of this message | ||
From: ralf dot ramge at ict dot technology
Operating system: Solaris 11.3
PHP version: 7.1.3
Package: Compile Failure
Bug Type: Bug
Bug description:syntax error compile error in ext/fileinfo/libmagic/apprentice.c
Description:
------------
Compiler used: official cc (Developer Studio, aka Solaris Studio, aka
Sun Studio), actual version 12.5 (and also 12.6 beta release)
Error happens during regular compile session without special configure
options (./configure CC=${IDE_CC} CXX=${IDE_CXX} CFLAGS=-g CXXFLAGS=-g
--prefix=/opt/ict --with-apxs2=/opt/ict/usr/apache/2.4/bin/apxs)
---
"/export/home/ralf/work/devstudio/apache-httpd/php-7.1.3/ext/fileinfo/libmagic/apprentice.c",
line 2195: warning: implicit function declaration: offsetof
"/export/home/ralf/work/devstudio/apache-httpd/php-7.1.3/ext/fileinfo/libmagic/apprentice.c",
line 2195: syntax error before or at: struct
"/export/home/ralf/work/devstudio/apache-httpd/php-7.1.3/ext/fileinfo/libmagic/apprentice.c",
line 2209: syntax error before or at: struct
"/export/home/ralf/work/devstudio/apache-httpd/php-7.1.3/ext/fileinfo/libmagic/apprentice.c",
line 2380: warning: statement not reached
"/export/home/ralf/work/devstudio/apache-httpd/php-7.1.3/ext/fileinfo/libmagic/apprentice.c",
line 3213: warning: statement not reached
cc: acomp failed for
/export/home/ralf/work/devstudio/apache-httpd/php-7.1.3/ext/fileinfo/libmagic/apprentice.c
*** Error code 1
dmake: Fatal error: Command failed for target
`ext/fileinfo/libmagic/apprentice.lo'
Test script:
---------------
./configure CC=${IDE_CC} CXX=${IDE_CXX} CFLAGS=-g CXXFLAGS=-g
--prefix=/opt/ict --with-apxs2=/opt/ict/usr/apache/2.4/bin/apxs
followed by a standard build.
Expected result:
----------------
able to compile
--
Edit bug report at https://bugs.php.net/bug.php?id=74379&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74379&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74379&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74379&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74379&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74379&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74379&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74379&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74379&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74379&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74379&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74379&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74379&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74379&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74379&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74379&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74379&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74379&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74379&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74379&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74379&r=mysqlcfg