Skip Menu |
 

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 49053
Status: open
Priority: 0/
Queue: GD

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc: dagobert [...] cpan.org
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.44
Fixed in: (no value)



Subject: Test 10 Fails with libjpeg7
Download (untitled) / with headers
text/plain 1.6k
This appears similar in nature to a previous bug, but it seems they've had the mistake of upgrading their libjpeg and their system libgd is still old and built against the previous version. IT appears version 7 has changed the size of the chunk somewhat, and after inserting some code in the test to diagnose it: $fname = "$file-".++$counter; } if (! $ok ){ print "# Got " . length ( $imageData ) . " Expected: " . length( $regressdata ) . "\n"; my $i = 0; while( $i < length( $imageData ) && $i < length( $regressdata ) ){ if( substr( $imageData, $i, 1 ) ne substr( $regressdata, $i, 1 ) ){ print "# Diff at offset $i\n"; last; } $i++; } } print $ok ? "ok $testNo" : "not ok $testNo","\n"; it emits as follows: # prove -bvr ./t/GD.t ........ 1..12 ok 1 ok 2 Testing using png support. ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 # Skip, FreeType changes too frequently to be testable ok 9 # Got 2298 Expected: 2521 # Diff at offset 44 not ok 10 ok 11 ok 12 Failed 1/12 subtests (less 1 skipped subtest: 10 okay) ./t/Polyline.t .. 1..1 # Running under perl version 5.010001 for linux # Current time local: Thu Aug 27 14:54:51 2009 # Current time GMT: Thu Aug 27 02:54:51 2009 # Using Test.pm version 1.25_02 ok 1 ok Test Summary Report ------------------- ./t/GD.t (Wstat: 0 Tests: 12 Failed: 1) Failed test: 10 Files=2, Tests=13, 0 wallclock secs ( 0.04 usr 0.01 sys + 0.13 cusr 0.02 csys = 0.20 CPU) Result: FAIL Thank you for this module, and I look forward to this test passing :)
From: Roy Storey
Download (untitled) / with headers
text/plain 814b
Similarly with libjpeg8 ======================= I get a very similar issue on Mac OS X (10.6) with libjpeg 8.0b installed with macports. Fortunately this ticket pointed me in the direction to enable installation of GD 2.45 without resorting to brute 'force install GD'. e.g. perl -Mlib=blib/lib t/GD.t --write Using the test script itself with --write enables creation of a test file with which to test the build with. This seemed a little circular in itself, so I visually checked the created file (attached) to the original frog.png The attached file has also been checked against install tests on an OS X (10.4) PowerPC too. To use the attached, simply download and place in the t/ directory as a file named test.out.10.png-X where X is a number 1 greater than the current largest similarly named file.
Subject: test.out.10.png
Download test.out.10.png
image/png 2.2k
test.out.10.png
Download (untitled) / with headers
text/plain 345b
I'm using Gentoo, media-libs/jpeg-8b. I've tried --write and compared result file to attached in previous comment: md5sum match, so to fix this issue you can just add to GD attached image as t/test.out.10.png-4. It's annoying to 'force install GD' after each 'cpan> upgrade', and there are chance to miss real failed tests, so please fix it.
Download (untitled) / with headers
text/plain 1.5k
It seems I have the same problem with debian wheezy. root@dry:~# aptitude search ~i| grep libgd2 i A libgd2-noxpm - GD Graphics Library version 2 (without XPM i libgd2-noxpm-dev - GD Graphics Library version 2 (development root@dry:~# aptitude search ~i| grep jpeg i A libjpeg8 - Independent JPEG Group's JPEG runtime libr i A libjpeg8-dev - Development files for the IJG JPEG library # perlbrew perl This is perl 5, version 16, subversion 1 (v5.16.1) built for x86_64- linux david@dry:~/.cpanm/work/1351676701.26648/GD-2.46$ make test TEST_VERBOSE=1 PERL_DL_NONLAZY=1 /home/david/perl5/perlbrew/perls/perl-5.16.1/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/GD.t ........ 1..12 Testing using png support. ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 # Skip, FreeType changes too frequently to be testable ok 9 # Skip, no XPM support not ok 10 ok 11 ok 12 Failed 1/12 subtests (less 2 skipped subtests: 9 okay) t/Polyline.t .. 1..1 # Running under perl version 5.016001 for linux # Current time local: Wed Oct 31 10:54:11 2012 # Current time GMT: Wed Oct 31 09:54:11 2012 # Using Test.pm version 1.25_02 ok 1 ok Test Summary Report ------------------- t/GD.t (Wstat: 0 Tests: 12 Failed: 1) Failed test: 10 Files=2, Tests=13, 1 wallclock secs ( 0.06 usr 0.01 sys + 0.19 cusr 0.03 csys = 0.29 CPU) Result: FAIL Failed 1/2 test programs. 1/13 subtests failed. make: *** [test_dynamic] Error 255
Download (untitled) / with headers
text/plain 236b
on. 31. okt. 2012 10.54.24 skrev DAVEWOOD: Show quoted text
> It seems I have the same problem with debian wheezy. >
Still happening in Debian Wheezy with 2.49 The fix is just a matter of including the attached image and call it test.out.10.png-4
Problem is still there with GD 2.50. Regards, Slaven
From: dsteinbrunner [...] pobox.com
Download (untitled) / with headers
text/plain 418b
On Tue Jul 02 17:48:59 2013, SREZIC wrote: Show quoted text
> Problem is still there with GD 2.50.
I'm on Mac OS X 10.9.1 with perl brewed to version 5.18.2 and trying to install GD 2.52. I'm having issues with test 10 as this ticket describes. I have tried installing with with earlier versions of all of the above in the past and had the same issue. I'm avoiding using GD and the things the depend on it due to this test failure.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.