From owner-freebsd-ports@FreeBSD.ORG Tue Apr 13 18:25:38 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 466E11065677 for ; Tue, 13 Apr 2010 18:25:38 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 2053C8FC1B for ; Tue, 13 Apr 2010 18:25:37 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O1knj-000PLk-S1; Tue, 13 Apr 2010 14:25:36 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 41F3A3E5859C; Tue, 13 Apr 2010 14:25:32 -0400 (EDT) Message-ID: <4BC4B712.2080109@FreeBSD.org> Date: Tue, 13 Apr 2010 14:25:22 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Tsurutani Naoki References: <4BBE88EB.2000708@FreeBSD.org> <201004101333.AA01274@POLYMER5.scphys.kyoto-u.ac.jp> In-Reply-To: <201004101333.AA01274@POLYMER5.scphys.kyoto-u.ac.jp> X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) Cc: =?ISO-2022-JP?B?Sm91a29fTHVtaWobJEJnUxsoQnZp?= , Gerald Pfeifer , FreeBSD Ports ML Subject: Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2010 18:25:38 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tsurutani Naoki wrote: [...] > 2. FreeBSD/amd64 8-STABLE, with LANG=ja_JP.eucJP : building failure. > gmake -C "/usr/local/work/usr/ports/print/pdftk/work/pdftk-1.41/java_libs/com/lowagie/text"; > gmake[2]: Entering directory `/usr/local/work/usr/ports/print/pdftk/work/pdftk-1.41/java_libs/com/lowagie/text' > /usr/local/bin/gcj45 -L/usr/local/lib -O2 -w --encoding=UTF-8 --classpath="/usr/local/work/usr/ports/print/pdftk/work/pdftk-1.41/java_libs" -c Anchor.java -o Anchor.o > /usr/local/work/usr/ports/print/pdftk/work/pdftk-1.41/java_libs/com/lowagie/text/markup/MarkupParser.java:186: error: String literal is not properly closed by a double-quote > if (value.startsWith("〒) > ^^^ > ... > 112 problems (112 errors) > gmake[2]: *** [Anchor.o] Error 1 > gmake[2]: Leaving directory `/usr/local/work/usr/ports/print/pdftk/work/pdftk-1.41/java_libs/com/lowagie/text' > gmake[1]: *** [itext] Error 2 > gmake[1]: Leaving directory `/usr/local/work/usr/ports/print/pdftk/work/pdftk-1.41/java_libs' > gmake: *** [java_libs] Error 2 > *** Error code 1 > (some messages are translated). Hi Tsurutani, As far as I can tell, this error is caused by the LANG setting which changes the line: if (value.startsWith("\"")) into something that results an unterminated string. I suppose the backslash loses its meaning as an escape character. I found some references to the same error in Google, posted by folks trying to compile software with different LANG settings. I haven't found a general fix yet, but maybe it can be done by building a character string from individual, unescaped characters, then converting them to a java.lang.String object for use in the .startsWith() function. If you could submit a PR to support building with LANG=ja_JP.eucJP, I would be very appreciative! Thank you, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLxLcS0sRouByUApARAm4aAKC2xbzaY34Q1GAPCv+mVifG7raC0QCgtjwZ eGEmwcVfVM5N2AbrfjDFJLs= =cfvI -----END PGP SIGNATURE-----