From: [EMAIL PROTECTED] Operating system: Linux SlackWare 2.4.19 PHP version: 4.2.3 PHP Bug Type: Compile Failure Bug description: PHP + GD compile failure
PHP (4.2.2 && 4.2.3 tested) fail to compile against lib gd (2.0.4 && 2.0.7 tested, with freetype2, libjpeg and libpng) with something like: In file included from gd.c:83: gd_ctx.c: In function `_php_image_output_ctx': gd_ctx.c:70: structure has no member named `free' gd_ctx.c:98: structure has no member named `free' gd.c: In function `_php_image_type': gd.c:1014: structure has no member named `free' gd.c:1017: structure has no member named `free' gd.c: In function `_php_image_create_from': gd.c:1209: structure has no member named `free' This is regarding structure gdIOCtx defined in gd_io.h from the gd lib. typedef struct gdIOCtx { int (*getC)(struct gdIOCtx*); int (*getBuf)(struct gdIOCtx*, void*, int); void (*putC)(struct gdIOCtx*, int); int (*putBuf)(struct gdIOCtx*, const void*, int); int (*seek)(struct gdIOCtx*, const int); long (*tell)(struct gdIOCtx*); void (*gd_free)(struct gdIOCtx*); } gdIOCtx; as you can see the member is called gd_free, not free. correcting this makes php compile like a charm. -- Edit bug report at http://bugs.php.net/?id=20552&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20552&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20552&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20552&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20552&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20552&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20552&r=support Expected behavior: http://bugs.php.net/fix.php?id=20552&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20552&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20552&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20552&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20552&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20552&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20552&r=isapi