On Sat Oct 16 14:44:36 2004, guest wrote:
Show quoted text> same problem, unfixed for 2 years!
> yeesh.
> I am using 5.8.0 with libgd.so.2.0.0, GD 2.16.
> Same error for ex2.pl. For some reason the write_jpeg routine fails to
> make a filehandle and passes an undef to GD.
> Error is now:
> Can't use an undefined value as a symbol reference at
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/GD.pm line 183.
On my testing platform (GD-Dashboard-0.04, GD-2.30, gd-2.0.33, Perl
5.6.0, AIX 5.1), this failure (which also occurs during 'make test') was
caused by the use of a DOS type directory separator in the filespec used
to create the GD::Dashboard object in test.pl. That is:
my $d1 = new GD::Dashboard(FNAME=>'examples\m1.jpg');
caused GD::Image to fail when attempting to open the file that was
actually located at 'examples/m1.jpg'. Changing the separator to match
my platform allowed make test to run to completion. Perhaps the author
could move test.pl to the examples subdirectory then launch the tests
from there rather than pass the dir separator as above.