ID: 11709
Updated by: sniper
Old-Status: Open
Status: Closed
Bug Type: *PDF functions
Operating system: 
PHP Version: 4.0.6
Assigned To: 

There is older PDFlib somewhere in /usr PHP looks for it (if you don't specify a path) 
in /usr (although the help says it's looking for it in /usr/local that is not correct)

Also, the --with-jpeg-dir and others don't accept 'shared' as parameter. Only a 
install prefix path. 

By specifying the install prefix path for --with-pdlib=/usr/local should fix this 
(delete config.cache before configure and do 'make clean' after)

Previous Comments:

[2001-06-27 08:43:00] [EMAIL PROTECTED]
The only mention in the phpinfo output about pdf is the configure command. If need be 
the phpinfo page I have up for this system is located at:


[2001-06-27 03:05:19] [EMAIL PROTECTED]
Does the output of phpinfo(); mention anything about PDF?


[2001-06-26 15:03:20] [EMAIL PROTECTED]
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:

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 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?


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
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