php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66328 configure. Bad search of library freetype
Submitted: 2013-12-20 03:06 UTC Modified: 2013-12-20 03:25 UTC
From: vidurri at gmail dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.5.7 OS: CentOS 6.5
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: vidurri at gmail dot com
New email:
PHP Version: OS:

 

 [2013-12-20 03:06 UTC] vidurri at gmail dot com
Description:
------------
PROBLEM:
When compiling against freetype 2.5.1 it searchs for freetype.h on "$i/include/freetype2/freetype/freetype.h" when the newest version has this file on "$i/include/freetype2/freetype.h".

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

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

Test script:
---------------
./configure --enable-bcmath --enable-calendar --enable-dom --enable-exif --enable-ftp --enable-gd-native-ttf --enable-gd-jis-conv --enable-intl --enable-mbstring --enable-pcntl --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-zip --with-apxs2=/etc/httpd/bin/apxs --with-bz2 --with-config-file-path=/etc/httpd/conf --with-curl=/usr/local --with-freetype-dir=/usr/local --with-gd=/usr/local --with-gettext --with-iconv=/usr/local --with-imap=/usr/local --with-imap-ssl --with-jpeg-dir=/usr/local --with-ldap --with-ldap-sasl --with-libxml-dir=/usr/local --with-mcrypt --with-mhash --with-mysql --with-mysqli --with-mysql-sock=/var/lib/mysql/mysql.sock --with-openssl --with-pcre-regex --with-pear --with-pdo-mysql --with-png-dir=/usr/local --with-snmp --with-vpx-dir=/usr/local --with-xmlrpc --with-xpm-dir=/usr/local --with-zlib


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-20 03:25 UTC] vidurri at gmail dot com
-Status: Open +Status: Closed
 [2013-12-20 03:25 UTC] vidurri at gmail dot com
Solution in here provided by Rafael Rocha Vidaurri
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 04:01:27 2024 UTC