#30066 [Asn->Bgs]: PDF Extension Build Failure
| From: | rjs@php.net | Date: | Mon, 13 Sep 2004 13:21:54 +0000 |
| Subject: | #30066 [Asn->Bgs]: PDF Extension Build Failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-66136@lists.php.net to get a copy of this message | ||
ID: 30066
Updated by: rjs@php.net
Reported By: psubrama at chn dot cognizant dot com
-Status: Assigned
+Status: Bogus
Bug Type: Compile Failure
Operating System: Windows2000
PHP Version: 4.3.8
Assigned To: rjs
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
This is the same problem as in Bug #29297
The pdf wrapper in PHP 4.3.x is not compatible with PDFlib 6. Please
try the PECL package for pdflib, this has the new wrappercode that
works with PDFlib 6 too and it can be used with PHP 4.3.x.
Previous Comments:
------------------------------------------------------------------------
[2004-09-12 14:54:24] psubrama at chn dot cognizant dot com
Description:
------------
While trying to compile php_pdf extension module, my build fails with
the following message :
I am using version 6.0.0p1 of PDFLite. I have not built jpeg library of
PDFLite, but don't see how that will help, b'cos that's a static
library(jpeg.lib) that is neither included(linked) by pdflib.lib or by
php_pdf.dll.
Do I need to modify workspace file of either project ?
Have another issue to mention...the php_pdf workspace tries to include
libtiff.lib and ligpng.lib though the libraries created by the PDF
builds are named tiff.lib and png.lib respectively. Am I looking at the
wrong libs ?
Expected result:
----------------
I was expecting to have a successful php_pdf.dll created
Actual result:
--------------
Linking...
LIBCMT.lib(dosmap.obj) : error LNK2005: __errno already defined in
MSVCRT.lib(MSVCRT.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in
MSVCRT.lib(MSVCRT.dll)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in
MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(dosmap.obj) : warning LNK4006: __errno already defined in
MSVCRT.lib(MSVCRT.dll); second definition ignored
Creating library Release_TS/php_pdf.lib and object
Release_TS/php_pdf.exp
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other
libs; use /NODEFAULTLIB:library
pdf.obj : error LNK2001: unresolved external symbol _PDF_open_fp
pdflib.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol
_pdf_jpeg_CreateDecompress
pdflib.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol
_pdf_jpeg_CreateDecompress
pdflib.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol
_pdf_jpeg_std_error
pdflib.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol
_pdf_jpeg_std_error
pdflib.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol
_pdf_jpeg_CreateCompress
..\..\Release_TS/php_pdf.dll : fatal error LNK1120: 18 unresolved
externals
Error executing link.exe.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30066&edit=1