|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-08-01 18:50 UTC] nels at maei dot ca
When trying to compile PHP 4.0RC2 or higher (at the time of this submission,
PHP 4.0.1pl2 is the latest available) with CLibPDF support on RedHat 5.2, the
compile fails. This problem occurs both when compiling as a DSO, or as a static
module. The error occurs with Stronghold 2.4 (based on Apache 1.3.6) and
Stronghold 3.0 (based on Apache 1.3.12). The problem does not occur on
RedHat 6.2 -- I've successfully compiled PHP 4.0.1pl2 with CLibPDF support
on that platform.
I ran a diff between the versions of cpdf.c included with RC1 vs. RC2, and it
appears that, among other things, several changes related to the module
interface with the Zend engine were made.
Error message:
----
/bin/sh /usr/src/redhat/BUILD/php/libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/src/redhat/BUILD/php/main -I/usr/src/redhat/BUILD/php -I/usr/src/redhat/BUILD/php/main -I/usr/local/stronghold/src/.includes-apxs -I/usr/src/redhat/BUILD/php/Zend -I/usr/src/redhat/BUILD/php -I/usr/local/include -I/usr/local/include/freetype -I/usr/src/redhat/BUILD/imap/include -I/usr/src/redhat/BUILD/php/ext/mysql/libmysql -I/usr/src/redhat/BUILD/php/ext/xml/expat/xmltok -I/usr/src/redhat/BUILD/php/ext/xml/expat/xmlparse -DXML_BYTE_ORDER=12 -DSTRONHGOLD -I/usr/local/stronghold/ssl/include -c internal_functions.c
In file included from /usr/src/redhat/BUILD/php/ext/cpdf/php_cpdf.h:36,
from internal_functions.c:47:
/usr/local/include/cpdflib.h:801: parse error before `1'
make[2]: *** [internal_functions.lo] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/php-4.0.1pl2/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/php-4.0.1pl2/main'
make: *** [all-recursive] Error 1
----
PHP configure line:
./configure --with-config-file-path=/usr/local/stronghold/conf --with-apxs=/usr/local/stronghold/bin/apxs --enable-versioning --disable-debug --with-zlib --with-gd --with-gdbm --with-db2 --with-mysql --with-xml --with-ldap --with-imap=/usr/src/redhat/BUILD/imap --with-cpdflib=/usr/local --with-png-dir=/usr/local --with-jpeg-dir=/usr --with-tiff-dir=/usr --enable-sysvshm=yes --enable-sysvsem=yes --enable-track-vars=yes --enable-bcmath=yes --enable-memory-limit=yes
The installed compiler is gcc 2.7.2.3.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
Update: Problem occurs when both CLibPDF and IMAP support are included on the ./configure line, for all versions of PHP 4 higher than 4.0RC1. If I remove either of --with-cpdflib or --with-imap from the configure statement, then php compiles just fine. Problem has been verified on RedHat 6.2 platform and Mandrake 7.1, so my speculations about old versions of GCC or glibc were not correct. Tested with Stronghold 3.0 and Apache 1.3.14. Here's my "bare-bones" ./configure statement with just enough to replicate the problem: ./configure \ --with-config-file-path=/usr/local/stronghold/conf \ --with-apxs=/usr/local/stronghold/bin/apxs \ --enable-versioning \ --disable-debug \ --without-gd \ --without-mysql \ --without-xml \ --with-imap=/usr/src/redhat/BUILD/imap \ --with-cpdflib=/usr/local \ --with-png-dir=/usr \ --with-jpeg-dir=/usr \ --with-tiff-dir=/usr \ --with-xpm-dir=/usr/X11R6 \ --enable-sysvshm=yes \ --enable-sysvsem=yes \ --enable-track-vars=yes \ --enable-memory-limit=yes