Subject: | make test fails |
While trying to build the lastest Image::LibRSVG release 0.03, if i go through the normal make && make test && make install process the module failes on make test. But if i don't consider the make test part, and directly make install it seems like i can use the module normally. All the instructions of the examples.pl file runs correctly.
If I run manually perl t/1.t all 24 tests are ok. If i try to use Image::LibRSVG with other SVG files i created everything seems to run fine.
Follows more information on my configuration and librairies.
# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Image::LibRSVG
# make
cp examples.pl blib/lib/Image/examples.pl
cp lib/Image/LibRSVG.pm blib/lib/Image/LibRSVG.pm
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap /usr/share/perl/5.8/ExtUtils/typemap -typemap typemap LibRSVG.xs > LibRSVG.xsc && mv LibRSVG.xsc LibRSVG.c
cc -c -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libgsf-1 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -DVERSION=\"0.03\" -DXS_VERSION=\"0.03\" -fPIC "-I/usr/lib/perl/5.8/CORE" -D HAVE_SVGZ=1 LibRSVG.c
LibRSVG.xs: In function `rsvg_pixbuf_from_chars':
LibRSVG.xs:259: warning: return makes pointer from integer without a cast
LibRSVG.xs: At top level:
LibRSVG.xs:348: warning: type mismatch with previous implicit declaration
LibRSVG.xs:259: warning: previous implicit declaration of `rsvg_pixbuf_from_chars_at_size'
LibRSVG.xs:348: warning: `rsvg_pixbuf_from_chars_at_size' was previously implicitly declared to return `int'
LibRSVG.xs: In function `XS_Image__LibRSVG_getSupportedFormats':
LibRSVG.xs:475: warning: passing arg 2 of `g_slist_foreach' from incompatible pointer type
LibRSVG.xs: In function `XS_Image__LibRSVG_getKnownFormats':
LibRSVG.xs:488: warning: passing arg 2 of `g_slist_foreach' from incompatible pointer type
LibRSVG.xs: In function `XS_Image__LibRSVG_isFormatSupported':
LibRSVG.xs:518: warning: passing arg 2 of `g_slist_foreach' from incompatible pointer type
Running Mkbootstrap for Image::LibRSVG ()
chmod 644 LibRSVG.bs
rm -f blib/arch/auto/Image/LibRSVG/LibRSVG.so
LD_RUN_PATH="/usr/local/lib" cc -shared -L/usr/local/lib LibRSVG.o -o blib/arch/auto/Image/LibRSVG/LibRSVG.so -lrsvg-2 -lgdk_pixbuf-2.0 -lart_lgpl_2 -lpangoft2-1.0 -lgsf-1 -lpango-1.0 -lgmodule-2.0 -ldl -lgobject-2.0 -lxml2 -lpthread -lz -lm -lglib-2.0
chmod 755 blib/arch/auto/Image/LibRSVG/LibRSVG.so
cp LibRSVG.bs blib/arch/auto/Image/LibRSVG/LibRSVG.bs
chmod 644 blib/arch/auto/Image/LibRSVG/LibRSVG.bs
Manifying blib/man3/Image::LibRSVG.3pm
# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1....NOK 1# Failed test (t/1.t at line 9)
# Tried to use 'Image::LibRSVG'.
# Error: Can't load '/root/.cpan/build/Image-LibRSVG-0.03/blib/arch/auto/Image/LibRSVG/LibRSVG.so' for module Image::LibRSVG: /usr/lib/libfontconfig.so.1: undefined symbol: FT_Get_PS_Font_Info at /usr/lib/perl/5.8/DynaLoader.pm line 225.
# at (eval 1) line 2
# Compilation failed in require at (eval 1) line 2.
Can't locate object method "new" via package "Image::LibRSVG" at t/1.t line 16.
# Looks like you planned 24 tests but only ran 1.
# Looks like your test died just after 1.
t/1....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-24
Failed 24/24 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/1.t 255 65280 24 47 195.83% 1-24
Failed 1/1 test scripts, 0.00% okay. 24/24 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 2
# Versions of libraries used on a i686 Debian/testing system:
fontconfig: 2.2.2-2
libfreetype6: 2.1.7-2
libfreetype6-dev: 2.1.7-2
librsvg2-2: 2.5.0-2
librsvg2-common: 2.5.0-2
librsvg2-dev: 2.5.0-2
# pkg-config --cflags librsvg-2.0
-I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libgsf-1
# pkg-config --libs-only-l librsvg-2.0
-lrsvg-2 -lgdk_pixbuf-2.0 -lart_lgpl_2 -lpangoft2-1.0 -lgsf-1 -lpango-1.0 -lgmodule-2.0 -ldl -lgobject-2.0 -lxml2 -lpthread -lz -lm -lglib-2.0
# perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration:
Platform:
osname=linux, osvers=2.4.25-ti1211, archname=i386-linux-thread-multi
uname='linux kosh 2.4.25-ti1211 #1 thu feb 19 18:20:12 est 2004 i686 gnulinux '
config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i386-linux -Dprefix=/usr -Dprivlib=/usr/share/perl/5.8 -Darchlib=/usr/lib/perl/5.8 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.8.3 -Dsitearch=/usr/local/lib/perl/5.8.3 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Uusesfio -Uusenm -Duseshrplib -Dlibperl=libperl.so.5.8.3 -Dd_dosuid -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O3',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='3.3.3 (Debian 20040314)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
perllibs=-ldl -lm -lpthread -lc -lcrypt
libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libperl.so.5.8.3
gnulibc_version='2.3.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Built under linux
Compiled at Mar 27 2004 16:21:10
@INC:
/etc/perl
/usr/local/lib/perl/5.8.3
/usr/local/share/perl/5.8.3
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.8
/usr/share/perl/5.8
/usr/local/lib/site_perl
/usr/local/lib/perl/5.8.2
/usr/local/share/perl/5.8.2
/usr/local/lib/perl/5.8.0
/usr/local/share/perl/5.8.0
.
# uname -a
Linux - 2.4.20 #2 Thu Apr 24 11:40:43 CEST 2003 i686 GNU/Linux