Skip Menu |

This queue is for tickets about the Cairo CPAN distribution.

Report information
The Basics
Id: 37326
Status: resolved
Priority: 0/
Queue: Cairo

People
Owner: Nobody in particular
Requestors: raherh [...] gmail.com
Cc:
AdminCc:

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



Subject: failed tests when installing on Solaris
I install on Solaris 10, perl 5.8.8, and make test produces: PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/Cairo.............1/73 # Failed test at t/Cairo.t line 279. # got: 'no-memory' # expected: 'success' # Looks like you failed 1 test of 73. t/Cairo............. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/73 subtests (less 5 skipped subtests: 67 okay) t/CairoFont.........1/20 # Failed test at t/CairoFont.t line 64. # got: 'no-memory' # expected: 'success' # Looks like you failed 1 test of 20. t/CairoFont......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/20 subtests t/CairoFt...........skipped: need Cairo with FreeType support and Font::FreeType t/CairoMatrix.......ok t/CairoPath.........ok t/CairoPattern......ok t/CairoSurface......ok Test Summary Report ------------------- t/Cairo.t (Wstat: 256 Tests: 73 Failed: 1) Failed test: 73 Non-zero exit status: 1 t/CairoFont.t (Wstat: 256 Tests: 20 Failed: 1) Failed test: 12 Non-zero exit status: 1 t/CairoSurface.t (Wstat: 0 Tests: 72 Failed: 0) TODO passed: 41 Files=7, Tests=204, 1 wallclock secs ( 0.16 usr 0.06 sys + 1.03 cusr 0.17 csys = 1.42 CPU) Result: FAIL Failed 2/7 test programs. 2/204 subtests failed. make: *** [test_dynamic] Error 29 Also there's a typo in README stating: ExtUtils::Depends >= 1.0 I couldn't find much docs where to find something to clarify a bit this problem. Radek
On Wed Jul 02 03:55:19 2008, rahe wrote: Show quoted text
> t/Cairo.............1/73 > # Failed test at t/Cairo.t line 279. > # got: 'no-memory' > # expected: 'success' > # Looks like you failed 1 test of 73. > t/CairoFont.........1/20 > # Failed test at t/CairoFont.t line 64. > # got: 'no-memory' > # expected: 'success' > # Looks like you failed 1 test of 20.
These failures look like there is something wrong with your system or the cairo library itself. Are the failures reproducible? Even if you have enough free memory? When you install anyway, do the examples in the 'examples' directory work correctly? Show quoted text
> Also there's a typo in README stating: > ExtUtils::Depends >= 1.0
Fixed in CVS. Thanks!
From: raherh [...] gmail.com
On Sat Sep 06 15:28:33 2008, TSCH wrote: Show quoted text
> These failures look like there is something wrong with your system or > the cairo library itself. Are the failures reproducible? Even if you > have enough free memory? When you install anyway, do the examples in > the 'examples' directory work correctly? >
Free memory is over 1G. After installing, examples produce no output. I installed cairo 1.4.10 from sunfreeware.
On Mon Sep 08 05:33:02 2008, rahe wrote: Show quoted text
> Free memory is over 1G. After installing, examples produce no output. > I installed cairo 1.4.10 from sunfreeware.
The examples are meant to create *.png files named like the example itself. They are not meant to output anything to the console. Do the examples create correct-looking output files for you?
From: raherh [...] gmail.com
On Mon Sep 08 16:32:49 2008, TSCH wrote: Show quoted text
> The examples are meant to create *.png files named like the example > itself. They are not meant to output anything to the console. Do the > examples create correct-looking output files for you?
No, there are no png files.
On Tue Sep 09 03:12:49 2008, rahe wrote: Show quoted text
> > The examples are meant to create *.png files named like the example > > itself. They are not meant to output anything to the console. Do the > > examples create correct-looking output files for you?
> > No, there are no png files.
OK, please try the attached C program then. Compile and run it with $ gcc `pkg-config --cflags --libs cairo` cairo-test.c -o cairo-test $ ./cairo-test It should produce cairo-test.png containing a white diagonal line. If it does, then we have a problem in the bindings. If it doesn't, then there's something wrong with your installation of the cairo library.
#include <cairo/cairo.h> /* gcc `pkg-config --cflags --libs cairo` cairo-test.c -o cairo-test */ int main (int argc, char **argv) { cairo_t *cr; cairo_surface_t *surface; surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 256, 256); cr = cairo_create (surface); cairo_set_source_rgb (cr, 1.0, 1.0, 1.0); cairo_move_to (cr, 0, 0); cairo_line_to (cr, 256, 256); cairo_stroke (cr); cairo_surface_write_to_png (surface, "cairo-test.png"); cairo_destroy (cr); cairo_surface_destroy (surface); }
From: raherh [...] gmail.com
Show quoted text
> OK, please try the attached C program then. Compile and run it with > > $ gcc `pkg-config --cflags --libs cairo` cairo-test.c -o cairo-test > $ ./cairo-test > > It should produce cairo-test.png containing a white diagonal line. If > it does, then we have a problem in the bindings. If it doesn't, then > there's something wrong with your installation of the cairo library.
It does produce a png image with a chessboard and a diagonal line.
On Mon Oct 20 03:59:58 2008, rahe wrote: Show quoted text
> > It should produce cairo-test.png containing a white diagonal line. If > > it does, then we have a problem in the bindings. If it doesn't, then > > there's something wrong with your installation of the cairo library.
> > It does produce a png image with a chessboard and a diagonal line.
Just to be sure: the attached Perl program does not produce the same PNG file? In that case: what's the output of the following? $ ldd cairo-test # the binary from the C program $ ldd Cairo.so # the library created when compiling the Cairo module And can you verify that the Perl programs (the examples and the one I attach) actually use the Cairo bindings you installed, not some system-installed ones?
use strict; use warnings; use Cairo; my $surface = Cairo::ImageSurface->create ('argb32', 256, 256); my $cr = Cairo::Context->create ($surface); $cr->set_source_rgb (1.0, 1.0, 1.0); $cr->move_to (0, 0); $cr->line_to (256, 256); $cr->stroke (); $surface->write_to_png ("cairo-test.png");
From: raherh [...] gmail.com
On Sat Nov 01 10:06:27 2008, TSCH wrote: Show quoted text
> Just to be sure: the attached Perl program does not produce the same
PNG Show quoted text
> file?
The png files are same. Show quoted text
> In that case: what's the output of the following? > > $ ldd cairo-test # the binary from the C program > > $ ldd Cairo.so # the library created when compiling the Cairo
module They have the same linked libraries. Show quoted text
> And can you verify that the Perl programs (the examples and the one I > attach) actually use the Cairo bindings you installed, not some > system-installed ones?
I'm not aware of any other Cairo libs. I installed new libs and Perl modules on a fresh solaris 10 system and Cairo module tests ok. ldd outputs on both boxes are same, can't find any difference.
On Wed Nov 12 10:14:52 2008, rahe wrote: Show quoted text
> > Just to be sure: the attached Perl program does not produce the same
PNG Show quoted text
> > file?
> The png files are same.
So, err, there is no problem at all? What were we talking about all this time then? Show quoted text
> I'm not aware of any other Cairo libs. > I installed new libs and Perl modules on a fresh solaris 10 system and > Cairo module tests ok. ldd outputs on both boxes are same, can't find > any difference.
Oh, so the problem with the tests was just a temporary hick-up that is now fixed?
From: raherh [...] gmail.com
On Wed Nov 12 13:46:01 2008, TSCH wrote: Show quoted text
> On Wed Nov 12 10:14:52 2008, rahe wrote:
> > > Just to be sure: the attached Perl program does not produce the
same Show quoted text
> PNG
> > > file?
> > The png files are same.
> > So, err, there is no problem at all? What were we talking about all > this time then? >
> > I'm not aware of any other Cairo libs. > > I installed new libs and Perl modules on a fresh solaris 10 system
and Show quoted text
> > Cairo module tests ok. ldd outputs on both boxes are same, can't
find Show quoted text
> > any difference.
> > Oh, so the problem with the tests was just a temporary hick-up that is > now fixed?
I had the opportunity to install the Cairo module on a different box where make test is ok. The problem with Cairo installation on the original box we were talking about persists. Your cairo-test.c compiles and produces png but make test of Cairo module gives errors as above.
From: raherh [...] gmail.com
I had to set up font cache with fc-cache for new fonts from openwin dir. Now I get success instead of no-memory. Thank you for help.
On Thu Nov 13 06:41:40 2008, rahe wrote: Show quoted text
> I had to set up font cache with fc-cache for new fonts from openwin dir. > Now I get success instead of no-memory.
OK, closing the bug then.