Subject: | OSX undefined symbols error |
Hello,
I'm unable to get Text::Aspell working on OSX (see below). My manual process is below, -MCPAN gave up in exactly the same way.
My info:
perl 5.8.2
mac os x 10.2.8 (aka darwin 6.8)
bash shell 2.05
All these pass with no errors:
# installing aspell and the english dictionary (v0.50.2-1)
fink install aspell
fink install aspell-en
# aspell command-line test
echo "the catt in the hat can't spelle vary wel." > foo.txt
aspell check foo.txt
# installing Text::Aspell (v0.04)
export LANG=en_US
export LC_ALL=C
perl Makefile.PL CCFLAGS=-I/sw/include LIBS="-L/sw/lib -laspell"
make
Error occurs here:
make test TEST_VERBOSE=1
dyld: /usr/bin/perl Undefined symbols:
__ZN7acommon10StringList3addENS_10ParmStringE
__ZN7acommon10StringList6assignEPKS0_
__ZN7acommon10StringList7destroyEv
__ZN7acommon11file_existsENS_10ParmStringE
__ZN7acommon11mode_stringE
__ZN7acommon11new_convertERNS_6ConfigENS_10ParmStringES2_
__ZN7acommon11remove_fileENS_10ParmStringE
__ZN7acommon12CanHaveErrorC1EPNS_5ErrorE
__ZN7acommon12PosibErrBase3delEv
__ZN7acommon12PosibErrBase3setEPKNS_9ErrorInfoENS_10ParmStringES4_S4_S4_
__ZN7acommon12PosibErrBase7releaseEv
__ZN7acommon12PosibErrBase9with_fileENS_10ParmStringE
__ZN7acommon12StringBuffer5allocEj
__ZN7acommon12StringBufferC1Ev
__ZN7acommon12getdata_pairERNS_7IStreamERNS_6StringES3_
__ZN7acommon13truncate_fileERNS_7FStreamENS_10ParmStringE
__ZN7acommon14GenericCopyPtrINS_5ErrorENS_7CopyPtrIS1_E5ParmsEE5resetEPS1_RKS4_
__ZN7acommon14figure_out_dirENS_10ParmStringES0_
__ZN7acommon15new_string_listEv
__ZN7acommon16add_possible_dirENS_10ParmStringES0_
__ZN7acommon16new_basic_configEv
__ZN7acdubious
Test returned status 0 (wstat 5, 0x5)
FAILED--1 test script could be run, alas--no output ever seen
make: *** [test_dynamic] Error 2
perl -Iblib/lib -Iblib/arch t/test.t
dyld: perl Undefined symbols:
__ZN7acommon10StringList3addENS_10ParmStringE
__ZN7acommon10StringList6assignEPKS0_
__ZN7acommon10StringList7destroyEv
__ZN7acommon11file_existsENS_10ParmStringE
__ZN7acommon11mode_stringE
__ZN7acommon11new_convertERNS_6ConfigENS_10ParmStringES2_
__ZN7acommon11remove_fileENS_10ParmStringE
__ZN7acommon12CanHaveErrorC1EPNS_5ErrorE
__ZN7acommon12PosibErrBase3delEv
__ZN7acommon12PosibErrBase3setEPKNS_9ErrorInfoENS_10ParmStringES4_S4_S4_
__ZN7acommon12PosibErrBase7releaseEv
__ZN7acommon12PosibErrBase9with_fileENS_10ParmStringE
__ZN7acommon12StringBuffer5allocEj
__ZN7acommon12StringBufferC1Ev
__ZN7acommon12getdata_pairERNS_7IStreamERNS_6StringES3_
__ZN7acommon13truncate_fileERNS_7FStreamENS_10ParmStringE
__ZN7acommon14GenericCopyPtrINS_5ErrorENS_7CopyPtrIS1_E5ParmsEE5resetEPS1_RKS4_
__ZN7acommon14figure_out_dirENS_10ParmStringES0_
__ZN7acommon15new_string_listEv
__ZN7acommon16add_possible_dirENS_10ParmStringES0_
__ZN7acommon16new_basic_configEv
__ZN7acommon18geTrace/BPT trap
Error disappears when "exit;" is put just before the "require Text::Aspell;" line, but not when it is put just after that line.
Let me know if there's anything I can do to help solve this one.
Thanks in advance,
Lux