Date: Mon, 23 Jul 2012 17:35:55 +0200 From: Jan Henrik Sylvester <me@janh.de> To: Maho Nakata <maho@FreeBSD.org> Cc: office-list freebsd <freebsd-office@freebsd.org> Subject: editors/openoffice-3 build failure (lingucomponent) and fix Message-ID: <500D6F5B.8030602@janh.de>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------090102070709030506070700 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------090102070709030506070700 Content-Type: text/plain; charset=UTF-8; name="patch-lingucomponent_source_languageguessing_simpleguesser.cxx" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="patch-lingucomponent_source_languageguessing_simpleguesser.c"; filename*1="xx" --- 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 ;} --------------090102070709030506070700--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?500D6F5B.8030602>