Subject: | Fails to run on Fedora Core 1 |
Attempted to install Text::Unaccent-1.01 from CPAN on Fedora Core 1 Linux distribution. Distribution apparently lacks -libiconv, but has iconv executable as part of glibc-common-2.3.2-101.4 package.
perl, v5.8.1 built for i386-linux-thread-multi
Linux yuff.moxyledge.org 2.4.22-1.2174.nptl #1 Wed Feb 18 16:38:32 EST 2004 i686 athlon i386 GNU/Linux
Compile runs (with warning), but tests fail:
% perl Makefile.PL
Note (probably harmless): No library found for -liconv
Writing Makefile for Text::Unaccent
% make
gcc -c -I. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686 -DVERSION=\"1.01\" -DXS_VERSION=\"1.01\" -fPIC "-I/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE" Unaccent.c
gcc -c -I. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686 -DVERSION=\"1.01\" -DXS_VERSION=\"1.01\" -fPIC "-I/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE" unac.c
unac.c: In function `convert':
unac.c:9193: warning: passing arg 2 of `iconv' from incompatible pointer type
Running Mkbootstrap for Text::Unaccent ()
chmod 644 Unaccent.bs
rm -f blib/arch/auto/Text/Unaccent/Unaccent.so
LD_RUN_PATH="" gcc -shared -L/usr/local/lib 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
% make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/unac....NOK 1# Test 1 got: 'été' (t/unac.t at line 7)
# Expected: 'ete' (removing accents from été (1))
# t/unac.t line 7 is: ok(unac_string("ISO-8859-1", "été"), "ete", "removing accents from été (1)");
t/unac....NOK 2# Test 2 got: 'été' (t/unac.t at line 8)
# Expected: 'ete' (removing accents from été (2))
# t/unac.t line 8 is: ok(unac_string("ISO-8859-1", "été"), "ete", "removing accents from été (2)");
t/unac....FAILED tests 1-2
Failed 2/3 tests, 33.33% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/unac.t 3 2 66.67% 1-2
Failed 1/1 test scripts, 0.00% okay. 2/3 subtests failed, 33.33% okay.
make: *** [test_dynamic] Error 255
Thanks!