Has anyone had success installing PHP 4.0.5 with support for PDFlib 4.0.0? I have been trying in vain for a week now. I'm using RedHat 6.2.
Here's my PDFlib config info:
PDFlib 4.0.0
bindings: c cpp perl python tcl php
includedir: /usr/local/include
libdir: /usr/local/lib
libversion: 2:0:1
pdi: no
ldflags: -L/usr/local/lib -lpdf -lm
cflags: -I/usr/local/include
(PDFlib test scripts show success on execution)
Here's my ./configure directive for PHP-4.0.5:
./configure \
--with-gd=/usr/local \
--enable-force-cgi-redirect \
--enable-bcmath \
--with-mcrypt \
--with-mysql=/usr/local/mysql \
--with-pgsql \
--disable-debug \
--enable-track-vars \
--with-ndbm \
--enable-memory-limit \
--with-pdflib=/usr/local \
--with-zlib-dir=/usr \
--with-ttf=/usr/local/include \
--with-jpeg-dir=/usr \
--with-tiff-dir=/usr \
--with-system-regex=yes \
--with-xml
./configure completes successfully, but here's the output of the 'make' command as it terminates with error:
Making all in Zend
make[1]: Entering directory /usr/local/src/sources/p/php-4.0.5/Zend'
make[1]: Nothing to be done forall'.
make[1]: Leaving directory /usr/local/src/sources/p/php-4.0.5/Zend'
Making all in main
make[1]: Entering directory/usr/local/src/sources/p/php-4.0.5/main'
make[2]: Entering directory /usr/local/src/sources/p/php-4.0.5/main'
gcc -I. -I/usr/local/src/sources/p/php-4.0.5/main -I/usr/local/src/sources/p/php-4.0.5/main -I/usr/local/src/sources/p/php-4.0.5 -I/usr/local/src/sources/p/php-4.0.5/Zend -I/usr/local/include/freetype -I/usr/local/include -I/usr/local/mysql/include/mysql -I/usr/local/src/sources/p/php-4.0.5/ext/xml/expat/xmltok -I/usr/local/src/sources/p/php-4.0.5/ext/xml/expat/xmlparse -I/usr/local/src/sources/p/php-4.0.5/TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c internal_functions.c && touch internal_functions.lo
internal_functions.c:52:phpext_pdf_ptr' undeclared here (not in a function)
internal_functions.c:52: initializer element for php_builtin_extensions[5]' is not constant
make[2]: *** [internal_functions.lo] Error 1
make[2]: Leaving directory/usr/local/src/sources/p/php-4.0.5/main'
make[1]: [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/sources/p/php-4.0.5/main'
make: [all-recursive] Error 1
Any solution to this error? Thanks in advance.
-Chad