Bug #78314 [Opn->Ver]: ext gd.so, built & linked with freetype2, missing freetype support/functions

From: Date: Sat, 20 Jul 2019 05:36:30 +0000
Subject: Bug #78314 [Opn->Ver]: ext gd.so, built & linked with freetype2, missing freetype support/functions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221863@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78314&edit=1 ID: 78314 Updated by: remi@php.net Reported by: pgnet dot dev at gmail dot com Summary: ext gd.so, built & linked with freetype2, missing freetype support/functions -Status: Open +Status: Verified Type: Bug Package: GD related Operating System: linux64 PHP Version: 7.4.0alpha3 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2019-07-20 04:24:31] pgnet dot dev at gmail dot com Description: ------------ with ``` php -v PHP 7.4.0-dev (cli) (built: Jun 22 2019 21:50:55) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0-dev, Copyright (c) Zend Technologies with Zend OPcache v7.4.0-dev, Copyright (c), by Zend Technologies ``` and freetype2 libs installed ``` rpm -qa | egrep -i "freetype2|libfreetype" libfreetype6-2.10.1-lp151.170.1.x86_64 freetype2-devel-2.10.1-lp151.170.1.x86_64 pkg-config --libs --cflags freetype2 -I/usr/include/freetype2 -lfreetype ``` building ext gd with freetype support ``` cd /usr/local/src/php7-src/ext/gd ./configure \ --enable-shared --disable-static \ --enable-gd \ --with-external-gd \ --with-webp \ --with-jpeg \ --with-xpm \ --with-freetype \ --with-gnu-ld ... checking for FreeType 2... yes ... make make install ``` checking, module 'gd' is installed, ``` php -m | grep gd gd ``` & linked, ``` ldd gd.so | grep freetype libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007fbcf300b000) ``` but freetype support is not enabled, ``` php -i ... gd GD Support => enabled GD headers Version => 2.2.5 GD library Version => 2.2.5 GIF Read Support => enabled GIF Create Support => enabled JPEG Support => enabled libJPEG Version => 8 PNG Support => enabled libPNG Version => 1.6.34 WBMP Support => enabled XPM Support => enabled libXpm Version => 30411 XBM Support => enabled WebP Support => enabled BMP Support => enabled TGA Read Support => enabled Directive => Local Value => Master Value gd.jpeg_ignore_warning => 1 => 1 ... ``` and checking for freetype functions FAILs ``` php -r 'return function_exists('imagettfbbox') && function_exists('imagettftext');' PHP Warning: Use of undefined constant imagettfbbox - assumed 'imagettfbbox' (this will throw an Error in a future version of PHP) in Command line code on line 1 Warning: Use of undefined constant imagettfbbox - assumed 'imagettfbbox' (this will throw an Error in a future version of PHP) in Command line code on line 1 ``` ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78314&edit=1

« previous php.bugs (#221863) next »