From owner-freebsd-ports@FreeBSD.ORG Tue Apr 13 18:13: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 34795106564A for ; Tue, 13 Apr 2010 18:13: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 0ED4F8FC14 for ; Tue, 13 Apr 2010 18:13:51 +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 1O1kcK-000PIG-OF; Tue, 13 Apr 2010 14:13:50 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 6DB203E583F3; Tue, 13 Apr 2010 14:13:44 -0400 (EDT) Message-ID: <4BC4B44C.60006@FreeBSD.org> Date: Tue, 13 Apr 2010 14:13:32 -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: <4BC3E384.2090702@FreeBSD.org> <201004130436.AA01277@POLYMER5.scphys.kyoto-u.ac.jp> In-Reply-To: <201004130436.AA01277@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.3 (/) 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 18:13:52 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tsurutani Naoki wrote: > Greg Larkin wrote: > >> Can you run the following command for me on your system? >> >> ldconfig -r | grep gcc45 > > % ldconfig -r | grep gcc45 > search directories: [...] > > % ldconfig -r | grep libstdc++.so.6 > 80:-lstdc++.6 => /usr/lib/libstdc++.so.6 > 848:-lstdc++.6 => /usr/local/lib/compat/pkg/libstdc++.so.6 > 1146:-lstdc++.6 => /usr/local/lib/gcc/i386-portbld-freebsd8.0/3.4.6/libstdc++.so.6 > 1148:-lstdc++.6 => /usr/local/lib/gcc44/libstdc++.so.6 > 1159:-lstdc++.6 => /usr/local/lib/gcc45/libstdc++.so.6 > > Setting LD_LIBRARY_PATH=/usr/local/lib/gcc45 before running pdftk > can avoid this error. > I am not familiar with rpath, but something is wrong arround it, I think. > gcc can embed some rpath infomation when building pdftk, > or we must add some linker option about rpath in building pdftk. > In any case, pdftk must have runtime dependence on gcc45... > > > --- > 鶴谷直樹 > turutani@scphys.kyoto-u.ac.jp Hi Tsurutani, Ok, I see why there's a problem now. My linker hints were set up in such a way that /usr/local/lib/gcc45 appeared before /usr/lib, so I didn't have the libstdc++.so.6 problem. However, that's not a normal configuration, so we have to fix this another way. Gerald, you ran into this problem a while back and posted a question about it here: http://www.mail-archive.com/freebsd-ports@freebsd.org/msg23261.html There are some other folks with the same problem here (old thread): http://gcc.gnu.org/ml/gcc/2001-03/msg01069.html Did you ever decide on a resolution for this problem? Should I simply create a wrapper script for pdftk that sets LD_LIBRARY_PATH, or is the rpath solution better? Tsurutani, in the mean time, can you run pdftk with LD_LIBRARY_PATH set until we decide on the solution? 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/ iD8DBQFLxLRM0sRouByUApARAvfDAJ93Bm4wyhUlpl7PTZR6Ulpg9J31SQCfTAIu 9QRjwZAlBepsnFpWuGuMvZ8= =KPDi -----END PGP SIGNATURE-----