|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 09:00:02 2025 UTC |
I added: #define offsetof(STRUCTURE,FIELD) ((int)((char*)&((STRUCTURE*)0)->FIELD)) what I got from sqllite3.c