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

From: Date: Thu, 26 Aug 2021 16:47:35 +0000
Subject: Bug #74443 [Ver->Fbk]: When building gd, the already installed headers interfere
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236091@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:             Verified
+Status:             Feedback
 Type:               Bug
 Package:            GD related
 Operating System:   All
 PHP Version:        7.0.18
 Assigned To:        cmb
 Block user comment: N
 Private report:     N



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


Thread (4 messages)

« previous php.bugs (#236091) next »