Subject: Re: pkgsrc: p5-GD core dumps on sparc32
To: David Brownlee <>
From: Gert Doering <>
List: tech-pkg
Date: 08/03/2004 22:54:00

On Tue, Aug 03, 2004 at 05:04:52PM +0200, Gert Doering wrote:
> On Tue, Aug 03, 2004 at 03:30:22PM +0100, David Brownlee wrote:
> >  	Its recommended only if you want threaded perl apps. I had a p5-GD
> >  	issue (it linked againts freetype which was threaded), which
> >  	caused GD using perl to break. This was fixed by making the
> >  	non threaded perl58 link against the threaded libraries.
> This might well be possible.  I'll try with "GD not linked vs. freetype"
> tonight.

Indeed this was the root of all evil.

After removing freetype from the graphics/gd prerequisites,
      rebuilding libgd (removing ALL -lpthreads references), 
      mangling p5-GD/patches/patch-aa (set "$FT='n'")
      and then rebuilding graphics/p5-GD, 

things look much better indeed:

===> Testing for p5-GD-2.11nb2
PERL_DL_NONLAZY=1 /usr/pkg/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/GD..........FAILED test 10                                                 
        Failed 1/10 tests, 90.00% okay (less 2 skipped tests: 7 okay, 70.00%)
Failed Test Stat Wstat Total Fail  Failed  List of Failed
t/GD.t                    10    1  10.00%  10
2 subtests skipped.
Failed 1/2 test scripts, 50.00% okay. 1/11 subtests failed, 90.91% okay.
*** Error code 2

- test 10 is something with jpeg support, which I can't track down 
easily right now, but at least perl doesn't core dump anymore.

Suggestion 1: can the graphics/p5-GD pkgsrc be changed to refuse 
              compilation (with a meaningful error message) if 
              the combination of "perl-non-threaded" and "gd-threaded"
              is detected?  It's not going to work anyway, and will
              definitely confuse users (like me).

Suggestion 2: maybe it would make sense to split gd and p5-GD into
              "threaded-with-freetype" and "non-threaded" versions,
              that can be built with the respective perl versions?

Suggestion 3: CPAN has GD-2.16, which brings back GIF support *and*
              runs "make test" without errors.  It might be an idea to 
              pull that into pkgsrc...

USENET is *not* the non-clickable part of WWW!
Gert Doering - Munich, Germany                   
fax: +49-89-35655025