editors/openoffice-3 build failure (lingucomponent) and fix
Jan Henrik Sylvester
me at janh.de
Mon Jul 23 15:36:01 UTC 2012
While the same version build fine some time ago, editors/openoffice-3
failed to build lingucomponent during my last attempt on
9.0-RELEASE/amd64 and 9.0-RELEASE/i386, because 'utfstrlen' was not
declared.
I found a patch to libreoffice on NetBSD for the very same issue:
ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/misc/libreoffice/patches/patch-lingucomponent_source_languageguessing_simpleguesser.cxx
I do not know if the fix is correct, but I did the same replacement and
with the patch attached in editors/openoffice-3/files/, I was able to
build editors/openoffice-3 again on both 9.0-RELEASE/amd64 and
9.0-RELEASE/i386.
Cheers,
Jan Henrik
-------------- next part --------------
--- lingucomponent/source/languageguessing/simpleguesser.cxx.orig 2012-01-10 10:42:30.000000000 +0000
+++ lingucomponent/source/languageguessing/simpleguesser.cxx 2012-07-22 09:59:41.000000000 +0000
@@ -114,7 +114,7 @@
if(!h){return guesses;}
//calculate le number of unicode charcters (symbols)
- int len = utfstrlen(text);
+ int len = strlen(text);
if( len > MAX_STRING_LENGTH_TO_ANALYSE ){len = MAX_STRING_LENGTH_TO_ANALYSE ;}
More information about the freebsd-office
mailing list