Skip Menu |

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 7112
Status: resolved
Priority: 0/
Queue: GD

People
Owner: Nobody in particular
Requestors: blair [...] orcaware.com
Paul.Marquess [...] btinternet.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.15
Fixed in: (no value)



Subject: [PATCH] Fix broken build against older gd's
Trying GD 2.15 on Fedora Core 2 I get this make test failure. Fedora Core 2's gd does not have GIF support. % perl Makefile.PL < /dev/null % make % make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/GD..........Can't load './blib/arch/auto/GD/GD.so' for module GD: ./blib/arch/auto/GD/GD.so: undefined symbol: gdImageCreateFromGifCtx at /usr/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm line 229. at t/GD.t line 13 Compilation failed in require at t/GD.t line 13. BEGIN failed--compilation aborted at t/GD.t line 13. t/GD..........dubious I think this simple patch fixes the issue: % diff -u GD.xs.orig GD.xs --- GD.xs.orig 2004-07-22 13:18:52.000000000 -0700 +++ GD.xs 2004-07-26 09:09:22.411701853 -0700 @@ -835,7 +835,7 @@ SV* errormsg; int truecolor = truecolor_default; CODE: -#ifdef HAVE_JPEG +#ifdef HAVE_GIF data = SvPV(imageData,len); ctx = newDynamicCtx(data,len); RETVAL = (GD__Image) gdImageCreateFromGifCtx(ctx); Blair