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

From: Date: Thu, 26 Aug 2021 12:35:42 +0000
Subject: Bug #74443 [Opn->Ver]: When building gd, the already installed headers interfere
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236082@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: cmb@php.net Reported by: mi+php at aldan dot algebra dot com Summary: When building gd, the already installed headers interfere -Status: Open +Status: Verified Type: Bug Package: GD related Operating System: All PHP Version: 7.0.18 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Is this still an issue with any of the actively supported PHP versions[1]? [1] <https://www.php.net/supported-versions.php> Previous Comments: ------------------------------------------------------------------------ [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 (#236082) next »