fayland has asked for the wisdom of the Perl Monks concerning the following question:

anyone got any luck on Text::Aspell in Win32 box?
from the http://search.cpan.org/src/HANK/Text-Aspell-0.09/README, there is only 5.8 ppd
and I tried to compile from the source code and get:
E:\Downloads\Text-Aspell-0.09>perl Makefile.PL CCFLAGS=-IC:/strawberry +/Aspell/include LIBS=-LC:/stra wberry/Aspell/lib -laspell Checking if your kit is complete... Looks good Writing Makefile for Text::Aspell E:\Downloads\Text-Aspell-0.09>dmake cp Aspell.pm blib\lib\Text\Aspell.pm C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp + -noprototypes -typemap C:\str awberry\perl\lib\ExtUtils\typemap -typemap typemap Aspell.xs > Aspell +.xsc && C:\strawberry\perl\bin \perl.exe -MExtUtils::Command -e mv Aspell.xsc Aspell.c gcc -c -IC:/strawberry/Aspell/include -s -O2 -DVERSION=\" +0.09\" -DXS_VERSION=\"0.09\ " "-IC:\strawberry\perl\lib\CORE" Aspell.c Running Mkbootstrap for Text::Aspell () C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Aspel +l.bs C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Text::Aspell\", 'DLBASE' => 'Aspell', 'D +L_FUNCS' => { }, 'FUNCLIST' = > [], 'IMPORTS' => { }, 'DL_VARS' => []);" dlltool --def Aspell.def --output-exp dll.exp g++ -o blib\arch\auto\Text\Aspell\Aspell.dll -Wl,--base-file -Wl,dll.b +ase -mdll -s -L"C:\strawberry\ perl\lib\CORE" -L"C:\strawberry\c\lib" Aspell.o -Wl,--image-base,0x2d1 +f0000 C:\strawberry\perl\lib\ CORE\libperl510.a C:\strawberry\c\lib\libmsvcrt.a C:\strawberry\c\lib\ +libmoldname.a C:\strawberry\c\ lib\libkernel32.a C:\strawberry\c\lib\libuser32.a C:\strawberry\c\lib\ +libgdi32.a C:\strawberry\c\lib \libwinspool.a C:\strawberry\c\lib\libcomdlg32.a C:\strawberry\c\lib\l +ibadvapi32.a C:\strawberry\c\l ib\libshell32.a C:\strawberry\c\lib\libole32.a C:\strawberry\c\lib\lib +oleaut32.a C:\strawberry\c\lib \libnetapi32.a C:\strawberry\c\lib\libuuid.a C:\strawberry\c\lib\libws +2_32.a C:\strawberry\c\lib\lib mpr.a C:\strawberry\c\lib\libwinmm.a C:\strawberry\c\lib\libversion.a +C:\strawberry\c\lib\libodbc32. a C:\strawberry\c\lib\libodbccp32.a dll.exp Aspell.o:Aspell.c:(.text+0x11): undefined reference to `new_aspell_spe +ller' Aspell.o:Aspell.c:(.text+0x1b): undefined reference to `aspell_error_n +umber' Aspell.o:Aspell.c:(.text+0x2d): undefined reference to `aspell_error_m +essage' Aspell.o:Aspell.c:(.text+0x59): undefined reference to `delete_aspell_ +config' Aspell.o:Aspell.c:(.text+0x68): undefined reference to `to_aspell_spel +ler' Aspell.o:Aspell.c:(.text+0x73): undefined reference to `aspell_speller +_config' Aspell.o:Aspell.c:(.text+0x15c): undefined reference to `new_aspell_co +nfig' Aspell.o:Aspell.c:(.text+0x3fd): undefined reference to `delete_aspell +_speller' Aspell.o:Aspell.c:(.text+0x833): undefined reference to `aspell_config +_possible_elements' Aspell.o:Aspell.c:(.text+0x850): undefined reference to `aspell_config +_retrieve' Aspell.o:Aspell.c:(.text+0x885): undefined reference to `aspell_key_in +fo_enumeration_next' Aspell.o:Aspell.c:(.text+0x8a2): undefined reference to `delete_aspell +_key_info_enumeration' Aspell.o:Aspell.c:(.text+0xc27): undefined reference to `aspell_config +_replace' Aspell.o:Aspell.c:(.text+0xc32): undefined reference to `aspell_config +_error_number' Aspell.o:Aspell.c:(.text+0xc47): undefined reference to `aspell_config +_error_message' Aspell.o:Aspell.c:(.text+0xf44): undefined reference to `aspell_config +_remove' Aspell.o:Aspell.c:(.text+0xf4f): undefined reference to `aspell_config +_error_number' Aspell.o:Aspell.c:(.text+0xf64): undefined reference to `aspell_config +_error_message' Aspell.o:Aspell.c:(.text+0x1264): undefined reference to `aspell_confi +g_retrieve' Aspell.o:Aspell.c:(.text+0x1272): undefined reference to `aspell_confi +g_error_number' Aspell.o:Aspell.c:(.text+0x1287): undefined reference to `aspell_confi +g_error_message' Aspell.o:Aspell.c:(.text+0x140a): undefined reference to `new_aspell_s +tring_list' Aspell.o:Aspell.c:(.text+0x1415): undefined reference to `aspell_strin +g_list_to_mutable_container' Aspell.o:Aspell.c:(.text+0x1541): undefined reference to `aspell_confi +g_retrieve_list' Aspell.o:Aspell.c:(.text+0x154c): undefined reference to `aspell_confi +g_error_number' Aspell.o:Aspell.c:(.text+0x1566): undefined reference to `aspell_confi +g_error_message' Aspell.o:Aspell.c:(.text+0x1584): undefined reference to `delete_aspel +l_string_list' Aspell.o:Aspell.c:(.text+0x15b3): undefined reference to `aspell_strin +g_list_elements' Aspell.o:Aspell.c:(.text+0x160b): undefined reference to `aspell_strin +g_enumeration_next' Aspell.o:Aspell.c:(.text+0x1619): undefined reference to `delete_aspel +l_string_enumeration' Aspell.o:Aspell.c:(.text+0x1624): undefined reference to `delete_aspel +l_string_list' Aspell.o:Aspell.c:(.text+0x1d6f): undefined reference to `aspell_spell +er_check' Aspell.o:Aspell.c:(.text+0x1d7d): undefined reference to `aspell_spell +er_error' Aspell.o:Aspell.c:(.text+0x1d91): undefined reference to `aspell_spell +er_error_number' Aspell.o:Aspell.c:(.text+0x1da2): undefined reference to `aspell_spell +er_error_message' Aspell.o:Aspell.c:(.text+0x2067): undefined reference to `aspell_spell +er_suggest' Aspell.o:Aspell.c:(.text+0x2077): undefined reference to `aspell_word_ +list_elements' Aspell.o:Aspell.c:(.text+0x20cb): undefined reference to `aspell_strin +g_enumeration_next' Aspell.o:Aspell.c:(.text+0x20d9): undefined reference to `delete_aspel +l_string_enumeration' Aspell.o:Aspell.c:(.text+0x2141): undefined reference to `aspell_spell +er_error_number' Aspell.o:Aspell.c:(.text+0x2152): undefined reference to `aspell_spell +er_error_message' Aspell.o:Aspell.c:(.text+0x23ef): undefined reference to `aspell_spell +er_add_to_personal' Aspell.o:Aspell.c:(.text+0x23fd): undefined reference to `aspell_spell +er_error' Aspell.o:Aspell.c:(.text+0x240c): undefined reference to `aspell_spell +er_error_number' Aspell.o:Aspell.c:(.text+0x241d): undefined reference to `aspell_spell +er_error_message' Aspell.o:Aspell.c:(.text+0x274f): undefined reference to `aspell_spell +er_add_to_session' Aspell.o:Aspell.c:(.text+0x275d): undefined reference to `aspell_spell +er_error' Aspell.o:Aspell.c:(.text+0x2771): undefined reference to `aspell_spell +er_error_number' Aspell.o:Aspell.c:(.text+0x2782): undefined reference to `aspell_spell +er_error_message' Aspell.o:Aspell.c:(.text+0x2b47): undefined reference to `aspell_spell +er_store_replacement' Aspell.o:Aspell.c:(.text+0x2b55): undefined reference to `aspell_spell +er_error' Aspell.o:Aspell.c:(.text+0x2b69): undefined reference to `aspell_spell +er_error_number' Aspell.o:Aspell.c:(.text+0x2b7a): undefined reference to `aspell_spell +er_error_message' Aspell.o:Aspell.c:(.text+0x2e07): undefined reference to `aspell_spell +er_save_all_word_lists' Aspell.o:Aspell.c:(.text+0x2e15): undefined reference to `aspell_spell +er_error' Aspell.o:Aspell.c:(.text+0x2e29): undefined reference to `aspell_spell +er_error_number' Aspell.o:Aspell.c:(.text+0x2e3a): undefined reference to `aspell_spell +er_error_message' Aspell.o:Aspell.c:(.text+0x30c7): undefined reference to `aspell_spell +er_clear_session' Aspell.o:Aspell.c:(.text+0x30d5): undefined reference to `aspell_spell +er_error' Aspell.o:Aspell.c:(.text+0x30e4): undefined reference to `aspell_spell +er_error_number' Aspell.o:Aspell.c:(.text+0x30f5): undefined reference to `aspell_spell +er_error_message' Aspell.o:Aspell.c:(.text+0x331b): undefined reference to `get_aspell_d +ict_info_list' Aspell.o:Aspell.c:(.text+0x3323): undefined reference to `aspell_dict_ +info_list_elements' Aspell.o:Aspell.c:(.text+0x33f1): undefined reference to `aspell_dict_ +info_enumeration_next' Aspell.o:Aspell.c:(.text+0x3406): undefined reference to `delete_aspel +l_dict_info_enumeration' Aspell.o:Aspell.c:(.text+0x35bb): undefined reference to `get_aspell_d +ict_info_list' Aspell.o:Aspell.c:(.text+0x35c3): undefined reference to `aspell_dict_ +info_list_elements' Aspell.o:Aspell.c:(.text+0x364d): undefined reference to `aspell_dict_ +info_enumeration_next' Aspell.o:Aspell.c:(.text+0x385c): undefined reference to `delete_aspel +l_dict_info_enumeration' Aspell.o:Aspell.c:(.text+0x3a2f): undefined reference to `aspell_confi +g_possible_elements' Aspell.o:Aspell.c:(.text+0x3aaf): undefined reference to `aspell_key_i +nfo_enumeration_next' Aspell.o:Aspell.c:(.text+0x3c03): undefined reference to `delete_aspel +l_key_info_enumeration' collect2: ld returned 1 exit status dmake: Error code 129, while making 'blib\arch\auto\Text\Aspell\Aspel +l.dll'

any suggestion is welcome.

Thanks.

Replies are listed 'Best First'.
Re: Text::Aspell on Win32 box (Perl 5.10)
by holli (Abbot) on Jan 13, 2009 at 03:09 UTC
    What version of Perl do you run? If 5.10 then version for 5.8 should work too, if 5.6 there is also a ppd available. If earlier version, then upgrade =). If you wonder why there are two module versions for 5.8 and 5.6 is that these two Perl versions where binary incompatible, so all XS modules had to be recompiled.


    holli, /regexed monk/

      well, I tried. and get:

      C:\Documents and Settings\Administrator>ppm install http://theoryx5.uw +innipeg.ca/ppms/Text-Aspell.pp d Installing package 'http://theoryx5.uwinnipeg.ca/ppms/Text-Aspell.ppd' +... Error installing package 'http://theoryx5.uwinnipeg.ca/ppms/Text-Aspel +l.ppd': Read a PPD for 'http:/ /theoryx5.uwinnipeg.ca/ppms/Text-Aspell.ppd', but it is not intended f +or this build of Perl (MSWin32 -x86-multi-thread-5.10)

      my perl is strawberry-perl-5.10.0.3.exe

      Thanks.

Re: Text::Aspell on Win32 box (Perl 5.10)
by Anonymous Monk on Jan 13, 2009 at 02:07 UTC
    Do not use pastebin type service, post the code here, use code tags (<code>code or data here</code> or <c> </c> for short)
Re: Text::Aspell on Win32 box (Perl 5.10)
by syphilis (Archbishop) on Jan 13, 2009 at 18:05 UTC
    The Aspell library is being found ok, so those 'undefined references' should have been resolved if your Aspell library was capable of resolving them. I'm therefore wondering if the version of Aspell that you have is not suited to Text-Aspell-0.09. Perhaps it is too old (or too new). What version of the Aspell library do you have, and where did you get it ?

    Cheers,
    Rob