php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4463 php 4.0rc2 vs. pdflib 3.0
Submitted: 2000-05-16 01:27 UTC Modified: 2000-05-19 12:41 UTC
From: yale_yu at yahoo dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Release Candidate 2 OS: HP-UX
Private report: No CVE-ID: None
 [2000-05-16 01:27 UTC] yale_yu at yahoo dot com
I installed pdflib 3.0 as the default settings, (it doesn't have php binding, I'm not sure whether that's why) but I'd like to get some tips.

I configure php 4.0rc2 as:
./configure --with-apxs --with-pdflib
returned an error said:
...
checking whether to include Pdflib 3.x support... yes
checking for PDF_show_boxed in -lpdf... no
configure: error: pdflib extension requires at least pdflib 3.x. You may also need libtiff and libjpeg. If so

-------
Yale Yu


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-18 08:14 UTC] steinm at cvs dot php dot net
check your config.log. It is very likely that libtiff, libjpeg or libz couldn't
be found.
 [2000-05-18 10:23 UTC] joey at cvs dot php dot net
Actually, it is more likely that there is an earlier version
of libpdf being found, and that is what PHP is trying to 
link.

Scour your lib dirs and get rid of old copies of libpdf,
as they are no longer supported.
 [2000-05-18 12:41 UTC] yale_yu at yahoo dot com
Last lines of config.log are as the following, it seems that the libtiff version is incorrect, I'm using tiff-v3.5.5 downloaded from http://www.libtiff.org, if that's the problem, which version I can use?

Thanks in advance.

Yale Yu

config.log
==========
configure:25095: checking for TIFFOpen in -ltiff
configure:25114: gcc -o conftest -g -O2   -L/usr/local/lib -L/usr/local/lib conf
test.c -ltiff  -lpng -ljpeg -lm -lcrypt  -lz -L/usr/local/lib -ljpeg -L/usr/local/lib -lpng -L/usr/local/lib 1>&5
/usr/ccs/bin/ld: /usr/local/lib/libtiff.sl: Not a valid object file (invalid version id)
collect2: ld returned 1 exit status
configure: failed program was:
#line 25103 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char TIFFOpen();

int main() {
TIFFOpen()
; return 0; }
configure:25258: checking for PDF_show_boxed in -lpdf
configure:25277: gcc -o conftest -g -O2   -L/usr/local/lib -L/usr/local/lib conf
test.c -lpdf  -ltiff -lpng -ljpeg -lm -lcrypt  -lz -L/usr/local/lib -ljpeg -L/usr/local/lib -lpng -L/usr/local/lib -ltiff -L/usr/local/lib 1>&5
/usr/ccs/bin/ld: /usr/local/lib/libtiff.sl: Not a valid object file (invalid version id)
collect2: ld returned 1 exit status
configure: failed program was:
#line 25266 "configure"ternal prototype to avoid an error.  */
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char PDF_show_boxed();

int main() {
PDF_show_boxed()
; return 0; }
 [2000-05-18 21:13 UTC] yale_yu at yahoo dot com
Last lines of config.log are as the following, it seems that the libtiff version is incorrect, I'm using tiff-v3.5.5 downloaded from http://www.libtiff.org, if that's the problem, which version I can use?

Thanks in advance.

Yale Yu

config.log
==========
configure:25095: checking for TIFFOpen in -ltiff
configure:25114: gcc -o conftest -g -O2   -L/usr/local/lib -L/usr/local/lib conf
test.c -ltiff  -lpng -ljpeg -lm -lcrypt  -lz -L/usr/local/lib -ljpeg -L/usr/local/lib -lpng -L/usr/local/lib 1>&5
/usr/ccs/bin/ld: /usr/local/lib/libtiff.sl: Not a valid object file (invalid version id)
collect2: ld returned 1 exit status
configure: failed program was:
#line 25103 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char TIFFOpen();

int main() {
TIFFOpen()
; return 0; }
configure:25258: checking for PDF_show_boxed in -lpdf
configure:25277: gcc -o conftest -g -O2   -L/usr/local/lib -L/usr/local/lib conf
test.c -lpdf  -ltiff -lpng -ljpeg -lm -lcrypt  -lz -L/usr/local/lib -ljpeg -L/usr/local/lib -lpng -L/usr/local/lib -ltiff -L/usr/local/lib 1>&5
/usr/ccs/bin/ld: /usr/local/lib/libtiff.sl: Not a valid object file (invalid version id)
collect2: ld returned 1 exit status
configure: failed program was:
#line 25266 "configure"ternal prototype to avoid an error.  */
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char PDF_show_boxed();

int main() {
PDF_show_boxed()
; return 0; }
 [2000-05-19 04:31 UTC] yale_yu at yahoo dot com
After download and install libtiff v3.4 from ftp://ftp.sgi.com/graphics/tiff, this configure script complete successfully, but "make" quit with the following error:

/bin/sh /www/src/php-4.0RC2/libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I/www/src/php-4.0RC2/ -I/www/src/php-4.0RC2 -I/usr/local/apache/include -I/
www/src/php-4.0RC2/Zend -I/www/src/php-4.0RC2 -I/usr/local/include   -g -O2 -Wall  -c reentrancy.c
reentrancy.c: In function `php_localtime_r':
reentrancy.c:53: warning: implicit declaration of function `localtime_r'
reentrancy.c: In function `php_ctime_r':
reentrancy.c:60: warning: implicit declaration of function `ctime_r'
reentrancy.c: In function `php_asctime_r':
reentrancy.c:67: warning: implicit declaration of function `asctime_r'
reentrancy.c: In function `php_gmtime_r':
reentrancy.c:74: warning: implicit declaration of function `gmtime_r'
reentrancy.c: At top level:
reentrancy.c:84: redefinition of `php_localtime_r'
reentrancy.c:52: `php_localtime_r' previously defined here
reentrancy.c:105: redefinition of `php_ctime_r'
reentrancy.c:59: `php_ctime_r' previously defined here
reentrancy.c:123: redefinition of `php_asctime_r'
reentrancy.c:66: `php_asctime_r' previously defined here
reentrancy.c:141: redefinition of `php_gmtime_r'
reentrancy.c:73: `php_gmtime_r' previously defined here
make[1]: *** [reentrancy.lo] Error 1
make[1]: Leaving directory `/www/src/php-4.0RC2'
make: *** [all-recursive] Error 1

-------
Yale Yu
 [2000-05-19 12:41 UTC] joey at cvs dot php dot net
These are seperate issues...please open a new report on this.
Also plz add your configure line as it currently stands. It looks
like maybe you are trying to compile with thread safety enabled?
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jun 28 13:00:01 2026 UTC