Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 87016
Status: resolved
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: dmacks [...] netspace.org
Cc:
AdminCc:

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



Subject: Incompatibilities with libpng16
Date: Thu, 18 Jul 2013 12:27:08 -0400
To: bug-Tk [...] rt.cpan.org
From: "Daniel Macks" <dmacks [...] netspace.org>
Tk-804.031 built fine for me on OS X 10.8 (apple-supplied perl5.12.4, all other dependencies supplied via fink) using libpng15 once I hardcoded -lz to resolve Bug #86988. When I tried it with libpng16, things started looking bad during Makefile.PL... Invalid term: -32768 && INT_MAX == 32767 at /sw/build.build/tk-pm5124-804.031-1/Tk-804.031/Tk/MakeDepend.pm line 55, line 480. trailing:  -32768 && INT_MAX == 32767 at /sw/build.build/tk-pm5124-804.031-1/Tk-804.031/Tk/MakeDepend.pm line 104, line 480. ignore 'error "libpng requires a signed 16 bit type"' ignore 'error "libpng requires an unsigned 16 bit type"' Invalid term: -2147483646 && INT_MAX > 2147483646 at /sw/build.build/tk-pm5124-804.031-1/Tk-804.031/Tk/MakeDepend.pm line 55, line 496. trailing:  -2147483646 && INT_MAX > 2147483646 at /sw/build.build/tk-pm5124-804.031-1/Tk-804.031/Tk/MakeDepend.pm line 104, line 496. Invalid term: -2147483646 && LONG_MAX > 2147483646 at /sw/build.build/tk-pm5124-804.031-1/Tk-804.031/Tk/MakeDepend.pm line 55, line 498. trailing:  -2147483646 && LONG_MAX > 2147483646 at /sw/build.build/tk-pm5124-804.031-1/Tk-804.031/Tk/MakeDepend.pm line 104, line 498. ignore 'error "libpng requires a signed 32 bit (or more) type"' ignore 'error "libpng requires an unsigned 32 bit (or more) type"' Well okay, it says "ignore", so I'll kept going, and successfully got through Makefile.PL and 'make' itself. But then I got self-test failures: #   Failed test 'No error loading t/test.png as png' #   at t/photo.t line 45. #          got: 'invalid after png_start_read_image or png_read_update_info at /sw/build.build/tk-pm5124-804.031-1/Tk-804.031/blib/lib/Tk/Image.pm line 21. # ' #     expected: '' #   Failed test 'Loading t/test.png (png)' #   at t/photo.t line 46. invalid after png_start_read_image or png_read_update_info at /sw/build.build/tk-pm5124-804.031-1/Tk-804.031/blib/lib/Tk/Image.pm line 21. # Looks like you planned 105 tests but ran 7. # Looks like you failed 2 tests of 7 run. # Looks like your test exited with 25 just after 7. t/photo.t .................... Dubious, test returned 25 (wstat 6400, 0x1900) Failed 100/105 subtests Apparently libpng16 is stricter about something or requires calling its functions differently. Here might be more information and possible solution: http://lists.opensuse.org/opensuse-commit/2013-03/msg00654.html dan -- Daniel Macks dmacks@netspace.org
On 2013-07-18 12:27:25, dmacks@netspace.org wrote: Show quoted text
> Tk-804.031 built fine for me on OS X 10.8 (apple-supplied perl5.12.4, > all other dependencies supplied via fink) using libpng15 once I > hardcoded -lz to resolve Bug #86988. When I tried it with libpng16, > things started looking bad during Makefile.PL... > > Invalid term: -32768 && INT_MAX == 32767 at /sw/build.build/tk-pm5124- > 804.031-1/Tk-804.031/Tk/MakeDepend.pm line 55, line 480. > trailing:  -32768 && INT_MAX == 32767 at /sw/build.build/tk-pm5124- > 804.031-1/Tk-804.031/Tk/MakeDepend.pm line 104, line 480. > ignore 'error "libpng requires a signed 16 bit type"' > ignore 'error "libpng requires an unsigned 16 bit type"' > Invalid term: -2147483646 && INT_MAX > 2147483646 at > /sw/build.build/tk-pm5124-804.031-1/Tk-804.031/Tk/MakeDepend.pm line > 55, line 496. > trailing:  -2147483646 && INT_MAX > 2147483646 at /sw/build.build/tk- > pm5124-804.031-1/Tk-804.031/Tk/MakeDepend.pm line 104, line 496. > Invalid term: -2147483646 && LONG_MAX > 2147483646 at > /sw/build.build/tk-pm5124-804.031-1/Tk-804.031/Tk/MakeDepend.pm line > 55, line 498. > trailing:  -2147483646 && LONG_MAX > 2147483646 at /sw/build.build/tk- > pm5124-804.031-1/Tk-804.031/Tk/MakeDepend.pm line 104, line 498. > ignore 'error "libpng requires a signed 32 bit (or more) type"' > ignore 'error "libpng requires an unsigned 32 bit (or more) type"' > > Well okay, it says "ignore", so I'll kept going, and successfully got > through Makefile.PL and 'make' itself. But then I got self-test > failures: > > #   Failed test 'No error loading t/test.png as png' > #   at t/photo.t line 45. > #          got: 'invalid after png_start_read_image or > png_read_update_info at /sw/build.build/tk-pm5124-804.031-1/Tk- > 804.031/blib/lib/Tk/Image.pm line 21. > # ' > #     expected: '' > > #   Failed test 'Loading t/test.png (png)' > #   at t/photo.t line 46. > invalid after png_start_read_image or png_read_update_info at > /sw/build.build/tk-pm5124-804.031-1/Tk-804.031/blib/lib/Tk/Image.pm > line 21. > # Looks like you planned 105 tests but ran 7. > # Looks like you failed 2 tests of 7 run. > # Looks like your test exited with 25 just after 7. > t/photo.t .................... > Dubious, test returned 25 (wstat 6400, 0x1900) > Failed 100/105 subtests > > Apparently libpng16 is stricter about something or requires calling > its functions differently. Here might be more information and possible > solution: > > http://lists.opensuse.org/opensuse-commit/2013-03/msg00654.html >
I see a similar issue with Strawberry Perl 5.18.1.1. The solution from the opensuse site looks good, and is already applied in my private git repository and will be soon on https://github.com/eserte/perl-tk/. Regards, Slaven
On 2013-11-16 08:05:55, SREZIC wrote: Show quoted text
> On 2013-07-18 12:27:25, dmacks@netspace.org wrote:
> > Tk-804.031 built fine for me on OS X 10.8 (apple-supplied perl5.12.4, > > all other dependencies supplied via fink) using libpng15 once I > > hardcoded -lz to resolve Bug #86988. When I tried it with libpng16, > > things started looking bad during Makefile.PL... > > > > Invalid term: -32768 && INT_MAX == 32767 at /sw/build.build/tk- > > pm5124- > > 804.031-1/Tk-804.031/Tk/MakeDepend.pm line 55, line 480. > > trailing:  -32768 && INT_MAX == 32767 at /sw/build.build/tk-pm5124- > > 804.031-1/Tk-804.031/Tk/MakeDepend.pm line 104, line 480. > > ignore 'error "libpng requires a signed 16 bit type"' > > ignore 'error "libpng requires an unsigned 16 bit type"' > > Invalid term: -2147483646 && INT_MAX > 2147483646 at > > /sw/build.build/tk-pm5124-804.031-1/Tk-804.031/Tk/MakeDepend.pm line > > 55, line 496. > > trailing:  -2147483646 && INT_MAX > 2147483646 at /sw/build.build/tk- > > pm5124-804.031-1/Tk-804.031/Tk/MakeDepend.pm line 104, line 496. > > Invalid term: -2147483646 && LONG_MAX > 2147483646 at > > /sw/build.build/tk-pm5124-804.031-1/Tk-804.031/Tk/MakeDepend.pm line > > 55, line 498. > > trailing:  -2147483646 && LONG_MAX > 2147483646 at > > /sw/build.build/tk- > > pm5124-804.031-1/Tk-804.031/Tk/MakeDepend.pm line 104, line 498. > > ignore 'error "libpng requires a signed 32 bit (or more) type"' > > ignore 'error "libpng requires an unsigned 32 bit (or more) type"' > > > > Well okay, it says "ignore", so I'll kept going, and successfully got > > through Makefile.PL and 'make' itself. But then I got self-test > > failures: > > > > #   Failed test 'No error loading t/test.png as png' > > #   at t/photo.t line 45. > > #          got: 'invalid after png_start_read_image or > > png_read_update_info at /sw/build.build/tk-pm5124-804.031-1/Tk- > > 804.031/blib/lib/Tk/Image.pm line 21. > > # ' > > #     expected: '' > > > > #   Failed test 'Loading t/test.png (png)' > > #   at t/photo.t line 46. > > invalid after png_start_read_image or png_read_update_info at > > /sw/build.build/tk-pm5124-804.031-1/Tk-804.031/blib/lib/Tk/Image.pm > > line 21. > > # Looks like you planned 105 tests but ran 7. > > # Looks like you failed 2 tests of 7 run. > > # Looks like your test exited with 25 just after 7. > > t/photo.t .................... > > Dubious, test returned 25 (wstat 6400, 0x1900) > > Failed 100/105 subtests > > > > Apparently libpng16 is stricter about something or requires calling > > its functions differently. Here might be more information and > > possible > > solution: > > > > http://lists.opensuse.org/opensuse-commit/2013-03/msg00654.html > >
> > I see a similar issue with Strawberry Perl 5.18.1.1. The solution from > the opensuse site looks good, and is already applied in my private git > repository and will be soon on https://github.com/eserte/perl-tk/. >
Tk 804.031_500 with the issue hopefully fixes is out. Regards, Slaven