Click to See Complete Forum and Search --> : Not a difficult request!


Anon
08-06-2000, 09:15 PM
After searching and searching and searching I am yet to find a resolution to the problem with compiling PHP4 with PDFLib 3.

Just about every account I read where someone has attempted this is the same as what i'm experiencing.

/usr/local/lib/libpdf.so: undefined reference to `TIFFSetWarningHandler'
/usr/local/lib/libpdf.so: undefined reference to `TIFFGetFieldDefaulted'
/usr/local/lib/libpdf.so: undefined reference to `TIFFReverseBits'
/usr/local/lib/libpdf.so: undefined reference to `TIFFReadRGBAImage'
/usr/local/lib/libpdf.so: undefined reference to `TIFFSetErrorHandler'
/usr/local/lib/libpdf.so: undefined reference to `TIFFClose'
/usr/local/lib/libpdf.so: undefined reference to `TIFFOpen'
/usr/local/lib/libpdf.so: undefined reference to `TIFFReadRawStrip'
/usr/local/lib/libpdf.so: undefined reference to `TIFFNumberOfStrips'
/usr/local/lib/libpdf.so: undefined reference to `TIFFGetField'

What is causing this to happen? Why aren't there easy, WORKING instructions that can resolve this problem? I have tried the PDFLib patch, I have tried the CVS version of pdf.c, yet nothing fixes this problem.

Anyone who knows slightly more about what is actually going on please reply - I have tried everything that I have seen suggested so far with no luck.

Thanks in advance,

Matt

Anon
08-07-2000, 04:10 AM
It seems that libtiff is missing or not in your library path, isn't it ?

JBL

Anon
08-07-2000, 04:25 AM
Libtiff is compiled, installed and in the library path according to ld.so.conf in /etc

I have executed ldconfig multiple times too to make sure that it would find the libraries. No joy. As I said - I've tried all the obvious things....


Anyone else?

Thanks anyway

Matt

Anon
08-08-2000, 06:27 PM
How I did it...

I use pdflib, tifflib, jpeglib, zlib, and ttflib at work. Basically, I downloaded all the source code to all those packages, uninstalled the old rpms of them with the --force --nodeps switches, then built them one at a time and installed them with 'make install'

Note that I built apache first, and installed it with the listing for the "maximum versatility DSO installation" section of the readme.CONFIGURE file.

Then, I found where make install had put all the lib files (i.e. .so files) and edited /etc/ld.so.conf to add the path for each lib if it wasn't there.

Then I built php and installed it. When you run ./configure on php, you should do it like this:

./configure --one-of-100-switches | tee >php.log

Then check the php.log file for the things that did or didn't actually configure correctly.

Note that php's autoconf script will no error out on a failed config option, but simply mention it in the log file we made up above.