php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74379 syntax error compile error in ext/fileinfo/libmagic/apprentice.c
Submitted: 2017-04-06 07:35 UTC Modified: -
From: ralf dot ramge at ict dot technology Assigned:
Status: Closed Package: Compile Failure
PHP Version: 7.1.3 OS: Solaris 11.3
Private report: No CVE-ID:
 [2017-04-06 07:35 UTC] ralf dot ramge at ict dot technology
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-10 03:49 UTC] laruence@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=341ff7119f0c8291f6617fea5c60d19a4eb22336
Log: Fixed bug #74379 (syntax error compile error in libmagic/apprentice.c)
 [2017-04-10 03:49 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2017-04-10 03:49 UTC] laruence@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=341ff7119f0c8291f6617fea5c60d19a4eb22336
Log: Fixed bug #74379 (syntax error compile error in libmagic/apprentice.c)
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Thu May 25 16:01:43 2017 UTC