trying to install the Text::Unaccent module
I have next error, Can someone help ?
C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
Unaccent.o:Unaccent.c:(.text+0x96):
undefined reference to `unac_debug_callback'
collect2.exe: error: ld returned 1 exit status
gmake: *** [Makefile:480: blib\arch\auto\Text\Unaccent\Unaccent.xs.dll] Error 1
LDACHARY/Text-Unaccent-1.08.tar.gz
C:\STRAWB~1\c\bin\gmake.exe -- NOT OK
Stopping: 'install' failed for 'Text::Unaccent'.
[Wrapped long lone for readability]
This issue has been reported earlier here: https://rt.cpan.org/Public/Bug/Display.html?id=124815
As commented by SREZIC in that thread: Adding
to
unac.cseems to workaround the problem. I tested this on Windows 11, Strawberry perl version 5.32.1 and this works fine:Downloaded the tar ball here: https://cpan.metacpan.org/authors/id/L/LD/LDACHARY/Text-Unaccent-1.08.tar.gz
Unpacked and extracted the tar ball
Cd into the unpacked directory, and edit
unac.c. Like the following patch shows:Run
perl Makefile.PL; gmake; gmake test; gmake install::