PerlAlien / Alien-Hunspell

Install hunspell
0 stars 1 forks source link

Solaris support #2

Closed plicease closed 7 years ago

plicease commented 8 years ago

Builds and installs okay, but the produced .a file seems to have non-PIC code in it:

t/05-core.t ............ Can't load '/home/ollisg/.cpanm/work/1450979435.12693/Text-Hunspell-2.12/blib/arch/auto/Text/Hunspell/Hunspell.so' for module Text::Hunspell: ld.so.1: perl: fatal: relocation error: R_AMD64_PC32: file /home/ollisg/.cpanm/work/1450979435.12693/Text-Hunspell-2.12/blib/arch/auto/Text/Hunspell/Hunspell.so: symbol main: value 0x228000b18de4 does not fit at /home/ollisg/opt/perl/5.20.1/lib/5.20.1/i86pc-solaris-64/DynaLoader.pm line 193.
 at t/05-core.t line 6.

despite the --with-pic flag being passed to configure

plicease commented 8 years ago

Tried upgrading libtool via monkey patch, like we do on MSWin32, but that didn't seem to help.

plicease commented 8 years ago

Work around is obviously to install hunspell in the system and let Alien::Hunspell find it via pkg-config.

plicease commented 7 years ago

Hard to say if this is still a problem since I no longer have a slowlaris VM to test this on. Nobody is clamoring for it (although feel free to reopen this if it is a problem for you).