Hello,
I have had a working PHP installation (4.3.1) on Redhat 8.0 with several extensions (including GD) that have been working well. Now I needed to add Freetype, because we'll need to use font manipulations with GD.
So I tried to install Freetype 1.3, but the "make" gave me compilation errors. I then forgot about it and installed Freetype 2, without any problems.
So I reconfigure php, no problems.
My ./configure line is (new options from the last build are in bold):
./configure --with-apxs2=/usr/local/apache2/current/bin/apxs --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/lib/ --enable-versioning --enable-track-vars=yes --enable-url-includes --enable-sysvshm=yes --enable-sysvsem=yes --enable-ftp --with-config-file-path=/etc --with-gettext=/usr/local --with-gd --with-imap=/usr/local/imap-2002c1 --with-imap-ssl=/usr/local/openssl --with-freetype-dir=/usr/local/lib --with-ttf
I even get this:
checking for the location of libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... yes
checking for FreeType 1.x support... yes
checking for FreeType 2... yes
checking for T1lib support... yes
checking whether to enable truetype string function in GD... yes
Now it's a bit strange that it says I have Freetype 1.x support 😕 but anyway... PHP just died on me when I tried to compile it: when I run "make" I get compilation errors. I tried changing the freetype-dir path to /usr/local, or /usr/local/include/freetype2, and I still get the same errors. If I don't specify the dir, it also gives me errors (although different ones, weird).
Also, I'd like to point out that it says libjpeg is supported, but functions like imagejpeg or createimagefromjpeg don't work (undefined). It's not a big deal because I'm fine with using png, but that's kind of weird (and yes I did install the jpeg libraries before). I tried running /.configure --with-jpeg-dir=/mydir but it gave me compilation errors, of course.
In any case, I can live w/o the jpeg support but I really need the Freetype stuff. Can anyone help me out please? 🙁