Bug #2625: PDFlib is not detected
| From: | glen at gbrmpa dot gov dot au | Date: | Wed, 27 Oct 1999 21:42:27 +0000 |
| Subject: | Bug #2625: PDFlib is not detected | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11967@lists.php.net to get a copy of this message | ||
From: glen@gbrmpa.gov.au
Operating system: Linux/Solaris
PHP version: 3.0 Latest CVS (27/10/1999)
PHP Bug Type: Installation problem
Bug description: PDFlib is not detected
The configure code that tests for pdflib fails because of a type conflict and library name chage. A
program which compiles with no errors is included below.
This bug is against PHP4.0b2.
int main()
{
PDF *p;
p = PDF_new();
PDF_open_file(p, "pdftestfile");
PDF_begin_page(p, a4_width, a4_height);
PDF_end_page(p);
PDF_close(p);
PDF_delete(p);
return 0;
}
Compile with "gcc -ltiff -lpdf2.01 -o temp temp.c" Note
that the library name is no longer libpdf.so, but libpdf2.01.so