Subject: perl text::iconv failing..
To: None <current-users@netbsd.org>
From: Jonathan Kay <jpk@panix.com>
List: current-users
Date: 01/17/2004 22:32:08
Hello all,
I'm trying to get perl 5.8.1 in -current (1.6ZG) to work with Text::Iconv
and it's not working so well--it compiles fine:
$ make
cp Iconv.pm blib/lib/Text/Iconv.pm
AutoSplitting blib/lib/Text/Iconv.pm (blib/lib/auto/Text/Iconv)
/usr/pkg/bin/perl /usr/pkg/lib/perl5/5.8.1/ExtUtils/xsubpp -typemap /usr/pkg/lib/perl5/5.8.1/ExtUtils/typemap -typemap typemap Iconv.xs > Iconv.xsc && mv Iconv.xsc Iconv.c
cc -c -fno-strict-aliasing -I/usr/pkg/include -O2 -O3 -mcpu=i686 -march=i686 -I/usr/pkg/include -DVERSION=\"1.2\" -DXS_VERSION=\"1.2\" -DPIC -fPIC "-I/usr/pkg/lib/perl5/5.8.1/i386-netbsd/CORE" Iconv.c
Running Mkbootstrap for Text::Iconv ()
chmod 644 Iconv.bs
rm -f blib/arch/auto/Text/Iconv/Iconv.so
LD_RUN_PATH="" cc --whole-archive -shared -Wl,-R/usr/pkg/lib -L/usr/pkg/lib Iconv.o -o blib/arch/auto/Text/Iconv/Iconv.so -L/usr/pkg/lib/perl5/5.8.1/i386-netbsd/CORE -Wl,-R/usr/pkg/lib/perl5/5.8.1/i386-netbsd/CORE -lperl
chmod 755 blib/arch/auto/Text/Iconv/Iconv.so
cp Iconv.bs blib/arch/auto/Text/Iconv/Iconv.bs
chmod 644 blib/arch/auto/Text/Iconv/Iconv.bs
Manifying blib/man3/Text::Iconv.3
but make test fails miserably:
$ make test
PERL_DL_NONLAZY=1 /usr/pkg/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_load........Can't load '$HOME/g/build/Text-Iconv-1.2/blib/arch/auto/Text/Iconv/Iconv.so' for module Text::Iconv: /root/.cpan/build/Text-Iconv-1.2/blib/arch/auto/Text/Iconv/Iconv.so: Undefined PLT symbol "libiconv_open" (symnum = 35) at /usr/pkg/lib/perl5/5.8.1/i386-netbsd/DynaLoader.pm line 229.
at t/00_load.t line 3
Compilation failed in require at t/00_load.t line 3.
BEGIN failed--compilation aborted at t/00_load.t line 3.
t/00_load........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/01_charsets....Can't load '$HOME/g/build/Text-Iconv-1.2/blib/arch/auto/Text/Iconv/Iconv.so' for module Text::Iconv: /root/.cpan/build/Text-Iconv-1.2/blib/arch/auto/Text/Iconv/Iconv.so: Undefined PLT symbol "libiconv_open" (symnum = 35) at /usr/pkg/lib/perl5/5.8.1/i386-netbsd/DynaLoader.pm line 229.
at t/01_charsets.t line 3
Compilation failed in require at t/01_charsets.t line 3.
BEGIN failed--compilation aborted at t/01_charsets.t line 3.
t/01_charsets....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-13
Failed 13/13 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/00_load.t 255 65280 1 1 100.00% 1
t/01_charsets.t 255 65280 13 25 192.31% 1-13
Failed 2/2 test scripts, 0.00% okay. 14/14 subtests failed, 0.00% okay.
*** Error code 2
Stop.
make: stopped in $HOME/build/Text-Iconv-1.2
am I just doing something wrong?
Thanks!
Jonathan