The correct way to fix this bug is not to build libpng or zlib. They are not used by the Debian version of Perl-Tk (the system shared lib versions are used instead).
The attached patch accomplishes this. -- Colin Tuckley | +44(0)1223 830814 | PGP/GnuPG Key Id Debian Developer | +44(0)7799 143369 | 0x1B3045CE Some days, nothing goes left.
Remove sub-dir PNG from the build process. We don't use it in the Debian version of perl-tk and it doesn't build properly on Multiarch systems --- a/Makefile.PL +++ b/Makefile.PL @@ -63,6 +63,7 @@ my $dir = Tk::MMutil::find_subdir(); delete $dir->{'pTk'}; +delete $dir->{'PNG'}; my $eumm_recent_enough = $ExtUtils::MakeMaker::VERSION >= 6.54;