CC: | joaoffm [...] gmail.com |
Subject: | Tests fail in Fedora 13 |
Hello
Makefile.PL complains about lack of libiconv (but it seems there isn't
one for fedora13), make compiles, but complains with types conversions,
and make test fails.
Complete log bellow, hope it helps to debug the problem.
Thanks.
PS: running on a 64 bit machine, but I think that is not relevant.
[ambs@p-pal Text-Unaccent-1.08]$ perl Makefile.PL
Note (probably harmless): No library found for -liconv
Writing Makefile for Text::Unaccent
Writing MYMETA.yml and MYMETA.json
[ambs@p-pal Text-Unaccent-1.08]$ make
Skip blib/lib/Text/Unaccent.pm (unchanged)
gcc -c -I. -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -fPIC
"-I/usr/lib64/perl5/CORE" -DHAVE_CONFIG_H Unaccent.c
Unaccent.xs: In function ‘XS_Text__Unaccent_unac_string’:
Unaccent.xs:71: warning: passing argument 5 of ‘unac_string’ from
incompatible pointer type
unac.h:94: note: expected ‘size_t *’ but argument is of type ‘int *’
Unaccent.xs: In function ‘XS_Text__Unaccent_unac_string_utf16’:
Unaccent.xs:88: warning: passing argument 4 of ‘unac_string_utf16’ from
incompatible pointer type
unac.h:78: note: expected ‘size_t *’ but argument is of type ‘int *’
gcc -c -I. -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -fPIC
"-I/usr/lib64/perl5/CORE" -DHAVE_CONFIG_H unac.c
unac.c: In function ‘unac_string’:
unac.c:13888: warning: passing argument 6 of ‘convert’ from incompatible
pointer type
unac.c:13771: note: expected ‘size_t *’ but argument is of type ‘int *’
unac.c:13892: warning: passing argument 4 of ‘unac_string_utf16’ from
incompatible pointer type
unac.c:13672: note: expected ‘size_t *’ but argument is of type ‘int *’
Running Mkbootstrap for Text::Unaccent ()
chmod 644 Unaccent.bs
rm -f blib/arch/auto/Text/Unaccent/Unaccent.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
Unaccent.o unac.o -o blib/arch/auto/Text/Unaccent/Unaccent.so \
\
chmod 755 blib/arch/auto/Text/Unaccent/Unaccent.so
cp Unaccent.bs blib/arch/auto/Text/Unaccent/Unaccent.bs
chmod 644 blib/arch/auto/Text/Unaccent/Unaccent.bs
Manifying blib/man3/Text::Unaccent.3pm
[ambs@p-pal Text-Unaccent-1.08]$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/unac.t .. 1/4 # Test 1 got: "ISO-8859-1" (t/unac.t at line 24)
# Expected: "ete" (removing accents from ?t? (1))
# t/unac.t line 24 is: ok(unac_string("ISO-8859-1", "?t?"), "ete",
"removing accents from ?t? (1)");
# Test 2 got: "ISO-8859-1" (t/unac.t at line 25)
# Expected: "ete" (removing accents from ?t? (2))
# t/unac.t line 25 is: ok(unac_string("ISO-8859-1", "?t?"), "ete",
"removing accents from ?t? (2)");
t/unac.t .. Failed 2/4 subtests
Test Summary Report
-------------------
t/unac.t (Wstat: 0 Tests: 4 Failed: 2)
Failed tests: 1-2
Files=1, Tests=4, 0 wallclock secs ( 0.02 usr + 0.01 sys = 0.03 CPU)
Result: FAIL
Failed 1/1 test programs. 2/4 subtests failed.
make: *** [test_dynamic] Error 255
[ambs@p-pal Text-Unaccent-1.08]$