Re: cvs: php-src(PHP_5_3) /ext/gd gd.c
| From: | Antony Dovgal | Date: | Tue, 04 Nov 2008 21:33:09 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_3) /ext/gd gd.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-53933@lists.php.net to get a copy of this message | ||
On 04.11.2008 23:25, Pierre-Alain Joye wrote:
> pajoye Tue Nov 4 20:25:45 2008 UTC
>
> Modified files: (Branch: PHP_5_3)
> /php-src/ext/gd gd.c
> Log:
> - MFH: add png and jpeg version info
> + php_info_print_table_row(2, "libPNG Version", PNG_LIBPNG_VER_STRING);
This breaks the build.
/local/qa/5_3/ext/gd/gd.c: In function 'zm_info_gd':
/local/qa/5_3/ext/gd/gd.c:1406: error: 'PNG_LIBPNG_VER_STRING' undeclared (first use in
this function)
/local/qa/5_3/ext/gd/gd.c:1406: error: (Each undeclared identifier is reported only once
/local/qa/5_3/ext/gd/gd.c:1406: error: for each function it appears in.)
make: *** [ext/gd/gd.lo] Error 1
png.h is NOT really included in gd.c because HAVE_GD_PNG gets defined
only after #include <php.h> (I'm building it statically, so there's not config.h).
Moving png.h and jpeglib.h a few lines down seems to help.
--
Wbr,
Antony Dovgal