Bug #78314 [NEW]: ext gd.so, built & linked with freetype2, missing freetype support/functions
| From: | pgnet dot dev at gmail dot com | Date: | Sat, 20 Jul 2019 04:24:31 +0000 |
| Subject: | Bug #78314 [NEW]: ext gd.so, built & linked with freetype2, missing freetype support/functions | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-221862@lists.php.net to get a copy of this message | ||
From: pgnet dot dev at gmail dot com
Operating system: linux64
PHP version: 7.4.0alpha3
Package: GD related
Bug Type: Bug
Bug description:ext gd.so, built & linked with freetype2, missing freetype support/functions
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 bug report at https://bugs.php.net/bug.php?id=78314&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78314&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78314&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78314&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=78314&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78314&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78314&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78314&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78314&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78314&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78314&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78314&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78314&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78314&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78314&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=78314&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78314&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78314&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78314&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78314&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78314&r=mysqlcfg