Number: 208
Title: gdImageCreateFrom{Png|Jpeg} called but HAVE_LIB{PNG|JPEG} macro not tested
Submitter: Peter Meric
Date: Fri Oct 11 14:57:50 2002
Subsys: Build/Installation
Version: 1.8.10
System: *-*-
Severity: minor
Problem:
Link for libdotneato.al fails when libpng and/or libjpeg
not available because gdImageCreateJpeg and gdImageCreatePng do
not exist in the libgd.so library. The gd_png.c and gd_jpeg.c
files compile fine (as they test the HAVE_LIBPNG/HAVE_LIBJPEG macros).
In gdgen.c, the function loadimage (lines 725-772) should test
the HAVE_LIBPNG and HAVE_LIBJPEG macros (line 760 or thereabouts)
to ensure that the gdImageCreateFrom* functions are only called
if they exist.
I trust that this is descriptive enough.
Regards,
Peter
Fix: See problem description.
Owner: erg
Status: Fixed (11 October 2002)