From owner-freebsd-office@FreeBSD.ORG Mon Jul 23 15:36:01 2012 Return-Path: Delivered-To: freebsd-office@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28224106564A; Mon, 23 Jul 2012 15:36:01 +0000 (UTC) (envelope-from me@janh.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by mx1.freebsd.org (Postfix) with ESMTP id AC3BE8FC16; Mon, 23 Jul 2012 15:36:00 +0000 (UTC) Received: from nb981.math (31-18-144-171-dynip.superkabel.de [31.18.144.171]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0Mgrky-1TFHN01XaS-00MZom; Mon, 23 Jul 2012 17:35:58 +0200 Message-ID: <500D6F5B.8030602@janh.de> Date: Mon, 23 Jul 2012 17:35:55 +0200 From: Jan Henrik Sylvester User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120619 Thunderbird/13.0.1 MIME-Version: 1.0 To: Maho Nakata Content-Type: multipart/mixed; boundary="------------090102070709030506070700" X-Provags-ID: V02:K0:tYhfsiYgT0bXSEamV9YINhHDB78slyEu97Fpcsxs/ev G8R7DxDRh0GLqn1kB9P4Kacw8qqDJ1lzHqizCh1q5MCvC6wIgJ Y9Z0Ldth7nC6GYxCB8qw64lF7JwUoycAZ8z9CK3OqZfGVp+Oky IPNusSoaKRXQdwBJ3blsTR32WlAPLOBNeHfeYP4uqlfoXez/Xt UUUKfZTCs0J5KoSVtWh4toMdKF0BWHBDVayUt4IHMMTU7ndNl1 mwMjB2FW9PU89oeDoI6r7nzolLlkCkXyBKhDiJkyqv3AZwuctk Ncv6g2IBfMteJAw6tnQFoHSJwlHA8WKC4ii+QHEg4QkSONILg= = Cc: office-list freebsd Subject: editors/openoffice-3 build failure (lingucomponent) and fix X-BeenThere: freebsd-office@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Office applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2012 15:36:01 -0000 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--