Menu

#203 hfstospell fails to build on 32 bit Linux

future
open
nobody
None
1
2013-09-27
2013-09-27
No

On current trunk (r3521) declaration and definition of hfst_strndup do not match which leads to linker error on 32 bit platforms:

...
CXXLD hfst-ospell
./.libs/libhfstospell.so: undefined reference to `hfst_strndup(char const*, unsigned int)'
collect2: error: ld returned 1 exit status
make[1]: *** [hfst-ospell] Virhe 1
make[1]: Poistutaan hakemistosta "/tmp/t/hfstospell"
make: *** [all] Virhe 2

This is because "unsigned long" is not the same as "size_t".

Discussion

MongoDB Logo MongoDB