RE: [PHP4BETA] PHP CVS and pdflib 2.1
| From: | Jade Meskill | Date: | Fri, 17 Sep 1999 17:35:41 +0000 |
| Subject: | RE: [PHP4BETA] PHP CVS and pdflib 2.1 | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-4589@lists.php.net to get a copy of this message | ||
> On Thu, Sep 16, 1999 at 10:28:42AM -0700, Jade Meskill wrote:
> > Has anyone gotten PHP to compile w/ pdflib 2.1? I have tried
> everything I
> > can think of and I still get...
> >
> > checking whether to include Pdflib 2.x support... no
> >
> > I saw a thread earlier on this, but it kind of died w/ no
> apparent solution.
> > BTW I am on RedHat 6.0 w/ Pentium II. I installed pdflib
> > using --with-static and I tried it without also. Thanks in advance.
> >
> I need more infos:
> config.log
> config.status
> where is pdflib installed?
> which version of php?
>
> Uwe
> --
> Uwe.Steinmann@fernuni-hagen.de
> Tel: +2331 987 4528 Fax: +2331 987 375
>
> --
> PHP 4 Beta
OK... I cleaned out pdflib from anywhere it was installed, re-installed it
to /usr/local/lib. PHP4 (latest CVS) still couldn't find it... so I
symlinked /usr/local/lib/pdflib2.01.so to /usr/local/lib/pdflib.so and PHP4
configure found it! YAY! So... then I was getting errors saying
undefined reference to 'deflate'
undefined reference to 'TIFFsomethingorother'
So... I deleted the shared libraries, compiled pdflib using --with-static so
it would include the tiff and jpeg libraries, and installed it... and
symlinked pdflib2.01.a to pdflib.a... ok.. the TIFF errors went away, but I
was still getting:
undefined reference to 'deflate'
So... I assume the pdflib isn't getting zlib statically compiled into it,
and since the configure script in php isn't including it when it does the
test for PDF_close it is failing... Anyways... what I did in order to get
PHP to compile is I added -lz to the LIBS="-lpdf $LIBS" (around line 10534
in my configure script)... and everything compiled. So... now I have
installed it into apache using apxs (DSO) and I get the error...
Cannot load /usr/lib/apache/libphp4.so into server:
/usr/lib/apache/libphp4.so:
undefined symbol: pdf_module_entry
Apache 1.3.9 w/ DSO, Redhat 6.0, PHP from today (Sept. 17, 1999), 5 Mountain
Dews, and a stick of butter...
Any suggestions? I have attached my config.log and config.status for
reference... thanks for your help!
-jade
Attachment: [application/octet-stream] config.status
Attachment: [application/octet-stream] config.log
Attachment: [application/octet-stream] config.status
Attachment: [application/octet-stream] config.log