[PHP-DEV] PHP 4.0 Bug #4569: configure fails to correctly identify GD 1.8.x functions available From: achowe <email protected>
Date: 05/24/00

From: achowe <email protected>
Operating system: Linux RH 6.1
PHP version: 4.0.0 Release
PHP Bug Type: Installation problem
Bug description: configure fails to correctly identify GD 1.8.x functions available

(Problem also exists with 3.0.16)

I installed gd 1.8.2, libpng 1.0.9, zlib 1.1.3, jpeg 6b, compiled and installed into the default locations.

However, everytime I run PHP configure, it fails to find :

gdImageColorResolve
gdImageCreateFromPng
gdImageCreateFromJpeg

I stumbled across this yesterday when building PHP 3.0.16 and found duplicate symbols that were defined
both in PHP and GD. Downloading PHP 4.0.0 today, I still find the problem.

My work around was to modify config.h and define explicitly by hand :

#define HAVE_GD_PNG 1
#define HAVE_GD_JPG 1
#define HAVE_GD_COLORRESOLVE 1

And modify the Makefile macro APXS_LDFLAGS to add : -ljpeg -lpng

-- 
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>