Bug 23125

Summary: PDF functions fail
Product: [Retired] Red Hat Linux Reporter: Lee Howard <faxguy>
Component: phpAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED NOTABUG QA Contact: Need Real Name <pelzak>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-01-02 05:19:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lee Howard 2001-01-02 05:19:20 UTC
I don't know if this problem is related to the one listed here:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=21664, but...

Using php-4.0.3pl1-1 and its accompanying RPMs from the semi-recent errata 
PDF functions are dysfunctional.  I.e., using the Example 1 "Creating a 
PDF document with pdflib" from the "PDF functions" chapter in the PHP 
manual, I get the following error:

Fatal error: Call to undefined function: pdf_open() 
in /var/www/html/pdftest/pdftest.php on line 3

Believing this to be a result of no pdflib, I got the pdflib-3.03 source, 
configured "./configure --enable-shared-pdflib" and then compiled, 'make' 
and installed, 'make install'.  (Mind you, there is a lot of severe errors 
when not using --enable-shared-pdflib as make attempts to compile 
pdflib_java.c.  Current opinion on the pdflib mailing list indicates that 
that is a guinness-java problem.)

I then got the php-4.0.3pl1-1.src.rpm, installed it, changed the release 
number to "2" in the php.spec file, 'rpm -ba php.spec'ed it, then I 
freshened the built packages via 'rpm -Fvh', and re-tried the pdf document 
example.  Still I get the same error:

Fatal error: Call to undefined function: pdf_open() 
in /var/www/html/pdftest/pdftest.php on line 3.

What's going wrong?

Comment 1 Lee Howard 2001-01-08 07:19:47 UTC
You must add --with-pdflib option to the configure script for PDF support.