I hope someone can help me. I'm losing my mind.
I'm trying to compile php-4.0.3pl1 on a FreeBSD 4.1.1 system with PDF support. It is a shared machine so I need to compile locally and I don't have root permissions.
I successfully compiled and installed pdflib, and the jpeg and tiff libraries. I also compiled and installed freetype 2 just for the heck of it.
My configure line looks like this:
./configure \
--with-gd=/usr/home/gpoulos \
--with-pdflib=/usr/home/gpoulos/pdflib \
--with-jpeg-dir=/usr/home/gpoulos --with-tiff-dir=/usr/home/gpoulos \
--with-ttf=/usr/home/gpoulos \
--with-system-regex=yes \
--with-mysql=/usr/local \
--with-config-file-path=/usr/home/gpoulos/phpini \
--enable-debug=no \
--enable-track-vars=yes \
--enable-force-cgi-redirect=yes \
--prefix=/usr/home/gpoulos
As you can see, I'm trying to compile with all my local versions of stuff. This line executes properly with no errors.
Then I go and "make" and things zip along fine until it gets to the "Making all in gd" part, and it bombs with:
---BEGIN OUTPUT---
Making all in gd
gcc -I. -I/usr/home/gpoulos/phpsrc/php-4.0.3pl1/ext/gd -I/usr/home/gpoulos/phps
rc/php-4.0.3pl1 -I/usr/home/gpoulos/phpsrc/php-4.0.3pl1/main -I/usr/home/gpoulos
/phpsrc/php-4.0.3pl1/Zend -I/usr/home/gpoulos/phpsrc/php-4.0.3pl1 -I/usr/local/i
nclude/freetype -I/usr/home/gpoulos/include -I/usr/local/include/mysql -I/usr/ho
me/gpoulos/phpsrc/php-4.0.3pl1/ext/xml/expat/xmltok -I/usr/home/gpoulos/phpsrc/p
hp-4.0.3pl1/ext/xml/expat/xmlparse -I/usr/home/gpoulos/phpsrc/php-4.0.3pl1/TSRM
-DXML_BYTE_ORDER=12 -g -O2 -c gdttf.c && touch gdttf.lo
In file included from gdcache.h:44,
from gdttf.c:19:
/usr/include/malloc.h:2: warning: #warning "this file includes <malloc.h> which
is deprecated, use <stdlib.h> instead"
In file included from gdttf.c:23:
/usr/local/include/freetype/freetype.h:41: freetype/config/ftconfig.h: No such f
ile or directory
/usr/local/include/freetype/freetype.h:42: freetype/fterrors.h: No such file or
directory
/usr/local/include/freetype/freetype.h:43: freetype/fttypes.h: No such file or d
irectory
*** Error code 1
Stop in /usr/home/gpoulos/phpsrc/php-4.0.3pl1/ext/gd.
*** Error code 1
Stop in /usr/home/gpoulos/phpsrc/php-4.0.3pl1/ext/gd.
*** Error code 1
Stop in /usr/home/gpoulos/phpsrc/php-4.0.3pl1/ext.
*** Error code 1
Stop in /usr/home/gpoulos/phpsrc/php-4.0.3pl1.
---END OUTPUT---
It looks like there's a problem with relative vs. absolute directories maybe. I've tried to hardcode directory names and edit the .h and .c files with hardcoded absolute references. If I do this, the files are "found", but then I get pages of syntax errors, so this is obviously not the right thing to do.
Any ideas here? I've been going crazy over this for a week.
thanks very much,
Greg