Bug #80211 [Opn->Fbk]: Source code compilation compatibility
| From: | nikic@php.net | Date: | Mon, 12 Oct 2020 09:46:28 +0000 |
| Subject: | Bug #80211 [Opn->Fbk]: Source code compilation compatibility | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-229554@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80211&edit=1
ID: 80211
Updated by: nikic@php.net
Reported by: 2233466866 at qq dot com
Summary: Source code compilation compatibility
-Status: Open
+Status: Feedback
Type: Bug
Package: *General Issues
Operating System: CentOS7
PHP Version: 8.0.0rc1
Block user comment: N
Private report: N
New Comment:
Alternatively, the contents of the config.log file might give an indication as to why this failed.
Previous Comments:
------------------------------------------------------------------------
[2020-10-10 17:42:33] danack@php.net
If you aren't able to provide a dockerfile, can you just try this change to see if it errors
correctly on your system?
https://github.com/php/php-src/pull/6317
------------------------------------------------------------------------
[2020-10-10 14:24:59] danack@php.net
Are you able to share a dockerfile for the system you're seeing this on?
I tried to make a M4 check so that people get a clearer error message, and get an earlier error:
https://github.com/Danack/php-src/commit/524bd36edd90ae670bec64b049d35417a76d0472
But this seems to work on Centos7 from dockerhub.
------------------------------------------------------------------------
[2020-10-10 04:51:46] levim@php.net
PHP requires C99 or newer. My guess is that for CentoS you should use a newer developer toolset when
compiling PHP. See:
https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/
------------------------------------------------------------------------
[2020-10-10 04:26:32] 2233466866 at qq dot com
Description:
------------
When I try to compile the source code to install the curl extension, I am prompted:
/root/php-8.0.0rc1/ext/curl/multi.c:574:2: error: âforâ loop initial declarations are only
allowed in C99 mode
for (zval *pz_ch = (zval *) zend_llist_get_first_ex(&curl_multi->easyh, &pos); pz_ch;
Test script:
---------------
cd ~
wget https://downloads.php.net/~carusogabriel/php-8.0.0rc1.tar.gz
tar -zxvf php-8.0.0rc1.tar.gz
cd php-8.0.0rc1/ext/curl
phpize
./configure
make
Expected result:
----------------
Build complete.
Don't forget to run 'make test'.
Actual result:
--------------
Build complete.
Don't forget to run 'make test'.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80211&edit=1