|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66198 gd extension fails to build with freetype 2.5.1
Submitted: 2013-11-29 06:29 UTC Modified: 2013-12-20 09:06 UTC
From: php-bugs-2013 at ryandesign dot com Assigned:
Status: Duplicate Package: GD related
PHP Version: 5.5.6 OS: OS X 10.9
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: php-bugs-2013 at ryandesign dot com
New email:
PHP Version: OS:


 [2013-11-29 06:29 UTC] php-bugs-2013 at ryandesign dot com
With freetype 2.5.1, configuring php's gd extension fails to find 
freetype.h. This was reported to the MacPorts project here:

The problem occurs because you're looking for the file here:


but that's not where that file is located anymore as of freetype

The freetype CHANGES file says, in part:

CHANGES BETWEEN 2.5 and 2.5.1




    - The header  file layout  has been changed.   After installation,
      all files are now located in `<prefix>/include/freetype2'.

      Applications  that  use   (a)  `freetype-config'  or  FreeType's
      `pkg-config' file to get the include directory for the compiler,
      and (b) the documented way for header inclusion like

        #include <ft2build.h>
        #include FT_FREETYPE_H

      don't need any change to the source code.

Bug #64405 requests you use pkg-config to find freetype.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-11 21:07 UTC]
-Status: Open +Status: Duplicate
 [2013-12-11 21:07 UTC]
Duplicate of bug #64405.
 [2013-12-20 03:21 UTC] vidurri at hotmail dot com
Solution in bug #66328 by Rafael Rocha Vidaurri

Let's search for the file on both directories replacing (on PHP "configure" file):
if test -f "$i/include/freetype2/freetype/freetype.h"; then

if test -f "$i/include/freetype2/freetype/freetype.h" || test -f "$i/include/freetype2/freetype.h";  then

Bye ;)
 [2013-12-20 09:06 UTC] php-bugs-2013 at ryandesign dot com
Please use pkg-config instead.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 15:01:29 2024 UTC