From:             webmaster at guestwho dot com
Operating system: FreeBSD 6.1-RELEASE
PHP version:      5.2.0
PHP Bug Type:     GD related
Bug description:  FreeType2 is found but never built.

Description:
------------
I am trying to build PHP with FreeType2 support using the following
configure line:

./configure  --with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql \
             --with-zlib --with-pdo-mysql=/usr/local/mysql
--enable-mbstring \
             --with-curl=/usr/local --enable-debug
--with-openssl=/usr/local/ssl \
             --with-gd --with-custom-odbc=/usr/local
--with-pdo-odbc=unixODBC,/usr/local \
             --enable-ftp --enable-zip --enable-pcntl
--with-freetype-dir=/usr/local \
             --enable-gd-native-ttf


The freetype headers are in:  /usr/local/include/freetype2/freetype/ and
according to the configure script they are found.

Output from configure:

checking for GD support... yes
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... /usr/local
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes

The output from the compiler includes " -I/usr/local/include/freetype2" so
it's obviously trying to include the libraries.

Now my problem is that phpinfo() does not list FreeType under the GD
section, and TTF related functions such as imagettfbbox() are undefined.

I don't understand why configure and the compile output both reference
freetype but it never gets built.




-- 
Edit bug report at http://bugs.php.net/?id=40131&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40131&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40131&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40131&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40131&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40131&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40131&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40131&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40131&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40131&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40131&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40131&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40131&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40131&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40131&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40131&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40131&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40131&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40131&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40131&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40131&r=mysqlcfg

Reply via email to