Bug #10778 Updated: ext/pdf does not work with pdflib 4.0

From: Date: Thu, 24 May 2001 13:12:59 +0000
Subject: Bug #10778 Updated: ext/pdf does not work with pdflib 4.0
Groups: php.dev 
Request: Send a blank email to php-dev+get-56617@lists.php.net to get a copy of this message
ID: 10778 User Update by: d.begley@uws.edu.au Old-Status: Closed Status: Open Bug Type: PDF related Operating system: Solaris 7 PHP Version: 4.0.5 Description: ext/pdf does not work with pdflib 4.0 Sorry, but this is not true. Standard "configure" shipped with PHP 4.0.5 when detecting PDFlib assumes (incorrectly for PDFlib 4.x) a separate libtiff, libjpeg, libpng and libz. PDFlib 4.x has these built-in. See ext/pdf/config.m4: LIBS="$LIBS -ltiff -ljpeg -lpng -lz" AC_CHECK_LIB(pdf, PDF_show_boxed, [ This fails unnecessarily on systems without separate tiff, jpeg, png and z libs (none of which are needed by PDFlib 4.x). If you have separate libs, the problem will be hidden from you. As previously noted, using the replacement files from PDFlib gets around this problem (by removing the incorrect library dependency assumption). It'd be really useful if PHP 4.0.6's PDFlib support was upgraded to support PDFlib 4.x "out of the box". Thanks.. Previous Comments: --------------------------------------------------------------------------- [2001-05-18 06:54:38] sniper@php.net PHP 4.0.5 supports pdflib 4.0 just fine. --Jani --------------------------------------------------------------------------- [2001-05-10 03:36:49] d.begley@uws.edu.au ext/pdf is written to detect and work with pdflib 3.x; unfortunately it is pdflib 4.x that is available for download from the pdflib Web site - leading to PHP failing to compile/link with pdflib. The fix is simple enough (it'd be nice if this was to be incorporated directly into PHP "as standard" for those systems whereby installing autoconf isn't really necessary); simply replace the ext/pdf contents of PHP with that supplied by pdflib 4.0, then rebuild configure. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=10778

« previous php.dev (#56617) next »