|  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
 [2013-12-20 03:06 UTC] vidurri at gmail dot com
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".

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

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


Add a Patch

Pull Requests

Add a Pull Request


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: Mon Apr 15 15:01:29 2024 UTC