Bug #80211 [Com]: Source code compilation compatibility

From: Date: Sat, 10 Oct 2020 14:24:59 +0000
Subject: Bug #80211 [Com]: Source code compilation compatibility
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229509@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: danack@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: 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. Previous Comments: ------------------------------------------------------------------------ [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 (#229509) next »