CFT: print/pdftk port compiled with Java compiler from gcc 4.5

Greg Larkin glarkin at FreeBSD.org
Tue Apr 20 14:52:26 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tsurutani Naoki wrote:
> Greg Larkin <glarkin at 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 at 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 at 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 at 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-----



More information about the freebsd-ports mailing list