Skip Menu |

This queue is for tickets about the PDF-Cairo CPAN distribution.

Report information
The Basics
Id: 129789
Status: open
Priority: 0/
Queue: PDF-Cairo

People
Owner: JGREELY [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: Can't locate object method "create" via package "Cairo::RecordingSurface"
Seen on a CentOS6 system: ... # # Library versions linked against: # cairo: 1.8.8 # pango: 1.28.1 # freetype: 2.3.11 ... # Failed test 'libcairo recording surface support' # at t/00-load.t line 18. # Testing PDF::Cairo 1.04, Perl 5.024003, /opt/perl-5.24.3/bin/perl5.24.3 Can't locate object method "create" via package "Cairo::RecordingSurface" (perhaps you forgot to load "Cairo::RecordingSurface"?) at /home/cpansand/.cpan/build/2019060902/PDF-Cairo-1.04-h2eJzn/blib/lib/PDF/Cairo/Font.pm line 263. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 2 just after 13. t/00-load.t ... Dubious, test returned 2 (wstat 512, 0x200) Failed 1/13 subtests # # Testing PDF::Cairo::Box 1.04, Perl 5.024003, /opt/perl-5.24.3/bin/perl5.24.3 t/01-box.t .... ok # # Testing PDF::Cairo 1.04, Perl 5.024003, /opt/perl-5.24.3/bin/perl5.24.3 Can't locate object method "create" via package "Cairo::RecordingSurface" (perhaps you forgot to load "Cairo::RecordingSurface"?) at /home/cpansand/.cpan/build/2019060902/PDF-Cairo-1.04-h2eJzn/blib/lib/PDF/Cairo/Font.pm line 263. t/02-cairo.t .. Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run ...
On Sun Jun 09 05:19:31 2019, SREZIC wrote: Show quoted text
> # Library versions linked against: > # cairo: 1.8.8
I saw this in the test results for 1.03, and added the library versions to the test to confirm that your Cairo was older than 1.10.0 (September 2010), which is when recording surfaces were added. Since I use them extensively, I added a version check to the test script, and mentioned it in the README. I'll change the version check to BAIL_OUT of the test script, so it doesn't bother trying to load the module.