php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71429 Compile fail Sun CC 12.3
Submitted: 2016-01-21 21:22 UTC Modified: 2017-10-11 17:23 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: cross at hccs dot com Assigned: ab (profile)
Status: Closed Package: Compile Failure
PHP Version: 7.0.2 OS: Sparc Solaris 10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
37 + 2 = ?
Subscribe to this entry?

 
 [2016-01-21 21:22 UTC] cross at hccs dot com
Description:
------------
I have no problems compiling 5.5.31 with this same script but it fails with 7.0.2.

Any help would be appreciated.
Thank you

# more ConfigurePHP
#!/bin/sh
#
# Configure PHP
#
 into PHP, restart apache after compile
#
PATH=/usr/bin:/usr/local/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/usr/sbin:/usr/dt/bin; export PATH

LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/local/ssl/lib; export LD_LIBRARY_PATH

LD_RUN_PATH=/usr/local/ssl/lib:/usr/local/lib; export LD_RUN_PATH
#
env     CC=cc CXX=CC  \
        ./configure \
        --with-apxs2=/usr/local/apache2/bin/apxs \
        --with-pear \
        --with-libxml-dir=/usr \
        --with-mysqli=mysqlnd \
        --with-pdo-mysql=mysqlnd \
        --enable-mbstring \
        --with-curl \
        --with-gd \
        --with-jpeg-dir=/usr/lib \
        --enable-soap \
        --with-openssl=/usr/local/ssl \
        --enable-zip \
        --with-iconv=/opt/local \
        --enable-opcache

#!/end
#

"/home1/users/cross/work/installedPackages/upgradePHPshib/php-7.0.2/main/php_output.h", line 149: warning: syntax error:  empty declaratio
"/home1/users/cross/work/installedPackages/upgradePHPshib/php-7.0.2/ext/pcre/php_pcre.h", line 84: warning: syntax error:  empty declarati
"/home1/users/cross/work/installedPackages/upgradePHPshib/php-7.0.2/ext/fileinfo/libmagic/apprentice.c", line 2195: warning: implicit func declaration: offsetof
"/home1/users/cross/work/installedPackages/upgradePHPshib/php-7.0.2/ext/fileinfo/libmagic/apprentice.c", line 2195: syntax error before or struct
"/home1/users/cross/work/installedPackages/upgradePHPshib/php-7.0.2/ext/fileinfo/libmagic/apprentice.c", line 2209: syntax error before or struct
cc: acomp failed for /home1/users/cross/work/installedPackages/upgradePHPshib/php-7.0.2/ext/fileinfo/libmagic/apprentice.c



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-04-16 07:06 UTC] ed dot heal at yahoo dot co dot uk
I added:

    #define offsetof(STRUCTURE,FIELD) ((int)((char*)&((STRUCTURE*)0)->FIELD))

what I got from sqllite3.c
 [2016-05-03 15:27 UTC] roger dot collins at us dot af dot mil
Having the same issue with 7.0.6 on Sparc Solaris 11.
 [2017-10-11 17:23 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2017-10-11 17:23 UTC] ab@php.net
Fixed in the core, see bug #74379.

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 14:01:28 2024 UTC