Ok, here's the situation. I've compiled and installed Apache2 and PHP 5 on my Slackware 10 machine. I compiled with GD support. All of the GD functions seem to work until I get to the TTF related ones.
So, first I checked php.net. It said I needed FreeType 1 and/or 2, jpeg, png, xpm, and zlib. Well, I already compiled those in without any configure/make warnings/errors.
On to google. It seems many people are having the same issue, and none have had it resolved, as far as I could tell.
Here's my config (from config.nice):
Code:
'./configure' \
'--with-mysql=/usr/local/mysql' \
'--with-apxs2=/usr/local/apache2/bin/apxs' \
'--with-curl' \
'--enable-ftp' \
'--with-pspell' \
'--enable-sockets' \
'--with-pdflib' \
'--with-gd' \
'--with-jpeg-dir' \
'--with-png-dir' \
'--with-zlib-dir' \
'--with-ttf' \
'--enable-gd-native-ttf' \
'--with-freetype-dir' \
'--with-xpm-dir=/usr/X11R6' \
Yes, I know I haven't specified dirs on several options like jpeg and png, but as shown by the following output of print_r(gd_info()), PHP used the defaults and they worked just fine.
Code:
Array
(
[GD Version] => bundled (2.0.28 compatible)
[FreeType Support] =>
[T1Lib Support] =>
[GIF Read Support] => 1
[GIF Create Support] => 1
[JPG Support] => 1
[PNG Support] => 1
[WBMP Support] => 1
[XPM Support] =>
[XBM Support] => 1
[JIS-mapped Japanese Font Support] =>
)
However, notice XPM and FreeType. They are not enabled. This is obviously why PHP can't find imagettfbbox(). FreeType isn't even enabled! I've made sure all the necessary libs and includes are installed on my machine. I've tried several different paths for the config options like --with-xpm-dir=/usr/X11R6/lib or --with-freetype-dir=/usr/include/freetype2/freetype but to no avail. I have exhausted every possible path to libs and includes I could find for each option -- and of course, configure never complained.
I'm beginning to think it's an issue of versions, but I don't know for sure.
I should go through config.log for more info, but since it's past midnight and I'm exhausted, I thought I'd let someone else do the thinking for a while. :-)
Any help is GREATLY appreciated!!