Bug #74443 [Fbk->NoF]: When building gd, the already installed headers interfere

From: Date: Sun, 05 Sep 2021 04:22:13 +0000
Subject: Bug #74443 [Fbk->NoF]: When building gd, the already installed headers interfere
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236408@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74443&edit=1 ID: 74443 Updated by: php-bugs@lists.php.net Reported by: mi+php at aldan dot algebra dot com Summary: When building gd, the already installed headers interfere -Status: Feedback +Status: No Feedback Type: Bug Package: GD related Operating System: All PHP Version: 7.0.18 Assigned To: cmb 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: ------------------------------------------------------------------------ [2021-08-26 12:35:42] cmb@php.net Is this still an issue with any of the actively supported PHP versions[1]? [1] <https://www.php.net/supported-versions.php> ------------------------------------------------------------------------ [2017-04-14 17:22:34] mi+php at aldan dot algebra dot com Description: ------------ This may well be a problem with other modules as well, but I've experienced it with gd, when trying to build the variant using the system-provided libgd, while the variant using bundled gd was already installed. The problem is thus: . Extension code (such as gd.c) #includes global "php_config.h" . Because a version of gd-module is already installed, the php_config.h #includes "ext/gd/config.h" . The above causes the already-installed "ext/gd/config.h" to be included instead of the one just-generated in the build-directory The attached patch prepends "-I../.." to the gd-module's CFLAGS, which causes the build-directory itself to be considered first. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74443&edit=1

« previous php.bugs (#236408) next »