Re: PHP 4.0 Bug #5906: PHP 4.0RC2 or higher with CLibPDF fails to compile on RedHat 5.2

From: Date: Tue, 01 Aug 2000 17:23:50 +0000
Subject: Re: PHP 4.0 Bug #5906: PHP 4.0RC2 or higher with CLibPDF fails to compile on RedHat 5.2
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-27277@lists.php.net to get a copy of this message
On 1 Aug 2000, at 19:06, Derick Rethans wrote: > nels@maei.ca wrote: > > > From: nels@maei.ca > > Operating system: Gnu/Linux (RedHat 5.2) > > PHP version: 4.0.1pl2 > > PHP Bug Type: Compile Failure > > Bug description: PHP 4.0RC2 or higher with CLibPDF fails to compile on RedHat 5.2 > > > > 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' > > This means that there is an error in cpdflib.h. Could you post a > snippet of that code (20 lines before and after or something)? Certainly. Attached is a text file containing the relevant section of cpdflib.h. Line 801 corresponds to the void multiplyCTM() definition. Please note, however, that I haven't changed CLibPDF since I installed it, it compiles (and runs) fine with RC1 on RedHat 5.2, and it works fine with every PHP release through 4.0.1pl2 on RedHat 6.2, which has a different compiler. > > > > > 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. > > ---- Nels Lindquist <*> Information Systems Manager Morningstar Air Express Inc.

« previous php.dev (#27277) next »