CFT: print/pdftk port compiled with Java compiler from gcc 4.5
glarkin at FreeBSD.org
Tue Apr 13 18:25:38 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
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: 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: *** [Anchor.o] Error 1
> gmake: Leaving directory `/usr/local/work/usr/ports/print/pdftk/work/pdftk-1.41/java_libs/com/lowagie/text'
> gmake: *** [itext] Error 2
> gmake: 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).
As far as I can tell, this error is caused by the LANG setting which
changes the line:
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!
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/
-----END PGP SIGNATURE-----
More information about the freebsd-ports