Bug #2406: When compiling libgd-support in, libpng and libz must be linked

From: Date: Wed, 29 Sep 1999 12:14:49 +0000
Subject: Bug #2406: When compiling libgd-support in, libpng and libz must be linked
Groups: php.dev 
Request: Send a blank email to php-dev+get-11384@lists.php.net to get a copy of this message
From: simons@cys.de Operating system: NetBSD/i386 1.4.1 PHP version: 3.0 Latest CVS (29/09/1999) PHP Bug Type: Compile Failure Bug description: When compiling libgd-support in, libpng and libz must be linked 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

« previous php.dev (#11384) next »