Date: Tue, 20 Apr 2010 10:52:25 -0400 From: Greg Larkin <glarkin@FreeBSD.org> To: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> Cc: =?ISO-2022-JP?B?Sm91a29fTHVtaWobJEJnUxsoQnZp?= <jlumijar@sun3.oulu.fi>, Gerald Pfeifer <gerald@pfeifer.com>, FreeBSD Ports ML <freebsd-ports@freebsd.org> Subject: Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5 Message-ID: <4BCDBFA9.4050401@FreeBSD.org> In-Reply-To: <201004101333.AA01274@POLYMER5.scphys.kyoto-u.ac.jp> References: <4BBE88EB.2000708@FreeBSD.org> <201004101333.AA01274@POLYMER5.scphys.kyoto-u.ac.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tsurutani Naoki wrote: > Greg Larkin <glarkin@freebsd.org> 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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BCDBFA9.4050401>