From:             [EMAIL PROTECTED]
Operating system: Linux 2.2.16-22
PHP version:      4.0.6
PHP Bug Type:     *PDF functions
Bug description:  Call to undefined function: pdf_new()

I have attempted to compile PDF support into PHP, yet when I use the script to build a 
PDF document with the face of a clock and the current time it fails immediately with 
the error
  Fatal error: Call to undefined function: pdf_new() in /var/www/html/php/pdf-test.php 
on line 6

The script I am using is from Example 2 on the page:
http://php.net/manual/en/ref.pdf.php

I am using:
  Apache 1.3.20
  PDFLIB 4.0.1  (installed in /usr/local/lib)
  PHP 4.0.6

The configure script I have used for PHP is:
./configure \
  --with-apxs=/usr/local/apache/bin/apxs \
  --disable-pear \
  --enable-libgcc \
  --enable-ftp \
  --with-yaz \
  --with-pdflib=shared \
  --with-tiff-dir=shared \
  --with-jpeg-dir=shared \
  --with-png-dir=shared \
  --with-zlib=shared \
  --with-gd=shared \
  --with-regex=system \
  --enable-yp \
  --enable-bcmath \
  --enable-c9x-inline \
  --enable-calendar \
  --enable-inline-optimization \
  --enable-trans-sid \
  --with-dom=shared \
  --with-mhash=shared \
  --with-config-file-path=/usr/local/apache/conf

Configure does not complain about missing any PDF support files.

The config.log file had the following lines regarding PDFlib support:configure:39416: 
checking whether to include PDFlib support
configure:39602: checking for PDF_show_boxed in -lpdf
configure:39623: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT 
-DSUPPORT_UTF8  -Wl,-rpath,/usr/lib/gcc-lib/i386-redhat-linux/2.96 
-L/usr/lib/gcc-lib/i386-redhat-linux/2.96 conftest.c -lpdf 
        -ltiff -ljpeg -lpng -lz
       -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lgcc 1>&5

After this scipt failed with the PHP 4.0.6 source, I followed the directions in the 
PDFLIB source which suggests to copy their copy of ext/pdf into the PHP source tree 
and recompile PHP. This made no difference.

Any suggestions?




-- 
Edit Bug report at: http://bugs.php.net/?id=11709&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to