php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2406 When compiling libgd-support in, libpng and libz must be linked
Submitted: 1999-09-29 08:14 UTC Modified: 2000-02-19 12:14 UTC
From: simons at cys dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0 Latest CVS (29/09/1999) OS: NetBSD/i386 1.4.1
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: simons at cys dot de
New email:
PHP Version: OS:

 

 [1999-09-29 08:14 UTC] simons at cys dot de
I just built a PHP3 version which has libgd-support compiled in.
Unfortunately there are some problems because the newer libgds use
libpng , which in turn needs libz (for c_rc32).

In order to fix this problem, I added "-lpng -lz" in the Makefile's
APXS_LDFLAGS line after the "-lgd" statement. It would be nice if
configure would do this itself somehow since many people won't
be able to recognize this problem.

Also it is probably noteworthy that llibgd, ibpng and libz should
probably be compiled with -fPIC if they're used in PHP3 when it
is compiled as a DSO.

	-peter

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-19 12:11 UTC] markonen at cvs dot php dot net
This has been addressed in PHP 3.0.14, which is the first version to support PNG images with gd.
 [2000-02-19 12:14 UTC] markonen at cvs dot php dot net
(I might even close this)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 06:01:35 2024 UTC