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
 [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: Fri Apr 26 20:01:29 2024 UTC