php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30066 PDF Extension Build Failure
Submitted: 2004-09-12 14:54 UTC Modified: 2004-09-13 15:21 UTC
From: psubrama at chn dot cognizant dot com Assigned: rjs (profile)
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.8 OS: Windows2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: psubrama at chn dot cognizant dot com
New email:
PHP Version: OS:

 

 [2004-09-12 14:54 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-13 15:21 UTC] rjs@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 13:01:30 2024 UTC