Bug #80211 [Com]: Source code compilation compatibility
| From: | levim@php.net | Date: | Sat, 10 Oct 2020 04:51:46 +0000 |
| Subject: | Bug #80211 [Com]: Source code compilation compatibility | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-229502@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
Comment by: levim@php.net
Reported by: 2233466866 at qq dot com
Summary: Source code compilation compatibility
Status: Open
Type: Bug
Package: *General Issues
Operating System: CentOS7
PHP Version: 8.0.0rc1
Block user comment: N
Private report: N
New Comment:
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/
Previous Comments:
------------------------------------------------------------------------
[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