From owner-freebsd-ports@FreeBSD.ORG Tue Apr 13 03:22:52 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 B61C5106566C for ; Tue, 13 Apr 2010 03:22:52 +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 92DA98FC17 for ; Tue, 13 Apr 2010 03:22:52 +0000 (UTC) Received: from mail1.sourcehosting.net ([74.205.51.45] helo=v102.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O1Wi4-000Iz8-ED; Mon, 12 Apr 2010 23:22:50 -0400 Message-ID: <4BC3E384.2090702@FreeBSD.org> Date: Mon, 12 Apr 2010 23:22:44 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Macintosh/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 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Spam-Score: -4.7 (----) 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 03:22:52 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tsurutani Naoki wrote: > Greg Larkin wrote: > >> You can find the patches here: >> >> http://people.freebsd.org/~glarkin/diffs/gcc45%2bgcj.diff >> http://people.freebsd.org/~glarkin/diffs/pdftk%2bgcc45.diff >> >> Fetch each patch file into /usr/ports and then run: >> >> patch < gcc45+gcj.diff >> patch < pdftk+gcc45.diff >> cd print/pdftk && make install clean >> >> If all goes well, you will be left with a working pdftk executable, >> successfully compiled with gcj45. If you run into any problems, please >> let me know and include the output of "uname -a" and the output from the >> make process. > > 1. FreeBSD/amd64 8-STABLE : building OK, but failed to run. > % uname -a > FreeBSD h116.65.226.10.32118.vlan.kuins.net 8.0-STABLE FreeBSD 8.0-STABLE #22: Sat Feb 13 14:06:06 JST 2010 turutani@h116.65.226.10.32118.vlan.kuins.net:/usr/obj/usr/src/sys/POLYMER13 amd64 > % pdftk /usr/local/share/doc/OpenEXR/TechnicalIntroduction.pdf output out.pdf owner_pw foopass > /libexec/ld-elf.so.1: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.11 required by /usr/local/bin/pdftk not found Hi Tsurutani, Can you run the following command for me on your system? ldconfig -r | grep gcc45 If there's no output from that command, then something went wrong with the ldconfig stage of the pdftk port installation. Would you mind rebuilding pdftk and capturing the output of "make install clean" for me? I should be able to tell if something is going wrong during installation. Before you do that, though, please test my theory by doing the following: ldconfig -v -m /usr/local/lib/gcc45 When that command finishes, try running pdftk again. If it works, then we know there's something wrong with the ldconfig step, and the output of the port build/installation will help me troubleshoot it. > > 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). I'm not sure what's going on here, but I'll have a look at the source file in question to see if there's a problem with it. > > 3, 4. FreeBSD/i386 8-STABLE : just the same on amd64. > % uname -a > FreeBSD h120.65.226.10.32118.vlan.kuins.net 8.0-STABLE FreeBSD 8.0-STABLE #22: Sat Feb 13 14:53:25 JST 2010 turutani@h120.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386 > % pdftk /usr/local/share/doc/OpenEXR/TechnicalIntroduction.pdf output suzu.128.pdf owner_pw foopass > /libexec/ld-elf.so.1: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.11 required by /usr/local/bin/pdftk not found > These errors should be fixed by the same solution as in #1 above. Thank you, Greg > > --- > Tsurutani Naoki > turutani@scphys.kyoto-u.ac.jp -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvD44QACgkQ0sRouByUApBzJgCeKdXKrPKinVJzBvhHbgXdViri /5gAni8lxEExcY1EYx8xnGyoVcbKAyVf =nH9T -----END PGP SIGNATURE-----