#30066 [Opn->Asn]: PDF Extension Build Failure
| From: | derick@php.net | Date: | Mon, 13 Sep 2004 06:18:59 +0000 |
| Subject: | #30066 [Opn->Asn]: PDF Extension Build Failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-66128@lists.php.net to get a copy of this message | ||
ID: 30066
Updated by: derick@php.net
Reported By: psubrama at chn dot cognizant dot com
-Status: Open
+Status: Assigned
Bug Type: Compile Failure
Operating System: Windows2000
PHP Version: 4.3.8
-Assigned To:
+Assigned To: rjs
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