From owner-freebsd-ports@FreeBSD.ORG Tue Apr 20 14:52:26 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 A55DE1065689 for ; Tue, 20 Apr 2010 14:52:26 +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 7F85D8FC2A for ; Tue, 20 Apr 2010 14:52:26 +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 1O4EoG-000BaP-SI; Tue, 20 Apr 2010 10:52:24 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 73B3B3EAEA2D; Tue, 20 Apr 2010 10:52:20 -0400 (EDT) Message-ID: <4BCDBFA9.4050401@FreeBSD.org> Date: Tue, 20 Apr 2010 10:52:25 -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.4 (/) 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, 20 Apr 2010 14:52:26 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tsurutani Naoki wrote: > Greg Larkin wrote: > [... original patching instructions deleted ...] > [... results of first patch set testing ...] > > 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 > [...] > > 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 > > > --- > Tsurutani Naoki > turutani@scphys.kyoto-u.ac.jp Hello Tsurutani, I have a new patch set for you to build pdftk with gcc 4.5. This one fixes the libstdc++ versioning problem by passing the -Wl,rpath argument to gcj (thank you, Gerald) so pdftk finds the correct shared library. You can find the patch files here: http://people.freebsd.org/~glarkin/diffs/gcc45%2bgcj-2.diff http://people.freebsd.org/~glarkin/diffs/pdftk%2bgcc45-2.diff To apply them, first update your ports tree to get the latest version of lang/gcc45 and fetch the patch files into /usr/ports. Then follow these steps: cd /usr/ports patch < gcc45+gcj-2.diff patch < pdftk+gcc45-2.diff cd lang/gcc45 && make deinstall install clean cd ../../print/pdftk find files -name patch-\*.orig -delete make deinstall install clean Let me know how that works for you, and if everything builds successfully, I'll commit the changes to the ports tree. 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/ iD8DBQFLzb+p0sRouByUApARAnOtAJ0TxJCPfuTSemZz1QEKU9UWBZcwuQCgo3+m PY3Sz2PDIyUmJFBtKLPiugg= =do8G -----END PGP SIGNATURE-----