php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74443 When building gd, the already installed headers interfere
Submitted: 2017-04-14 17:22 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mi+php at aldan dot algebra dot com Assigned:
Status: Open Package: GD related
PHP Version: 7.0.18 OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mi+php at aldan dot algebra dot com
New email:
PHP Version: OS:

 

 [2017-04-14 17:22 UTC] 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.



Patches

patch-inc-dirs (last revision 2017-04-14 17:23 UTC by mi+php at aldan dot algebra dot com)

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Oct 18 04:01:27 2019 UTC