[PHP-DEV] Bug #2406: When compiling libgd-support in, libpng and libz must be linked From: simons <email protected>
Date: 09/29/99

From: simons <email protected>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>