Bug #80211 [Fbk->NoF]: Source code compilation compatibility

From: Date: Sun, 25 Oct 2020 04:22:13 +0000
Subject: Bug #80211 [Fbk->NoF]: Source code compilation compatibility
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229912@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: php-bugs@lists.php.net Reported by: 2233466866 at qq dot com Summary: Source code compilation compatibility -Status: Feedback +Status: No Feedback Type: Bug Package: *General Issues Operating System: CentOS7 PHP Version: 8.0.0rc1 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2020-10-12 09:46:28] nikic@php.net Alternatively, the contents of the config.log file might give an indication as to why this failed. ------------------------------------------------------------------------ [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

« previous php.bugs (#229912) next »