From owner-freebsd-questions@FreeBSD.ORG Thu Aug 14 22:30:15 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEE5F1065673 for ; Thu, 14 Aug 2008 22:30:15 +0000 (UTC) (envelope-from jean_francois666@yahoo.com) Received: from web31301.mail.mud.yahoo.com (web31301.mail.mud.yahoo.com [68.142.198.96]) by mx1.freebsd.org (Postfix) with SMTP id B2F688FC12 for ; Thu, 14 Aug 2008 22:30:15 +0000 (UTC) (envelope-from jean_francois666@yahoo.com) Received: (qmail 47621 invoked by uid 60001); 14 Aug 2008 22:03:32 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=CC2y5xz6kIvdZH0c0KH6CR23WwXS6IgCSzKAb2poWb3zlCVmYRtIIZOwOfUXnVs+TAmgFCBuOARijYokvtkkDoogsKiYIGjSTPSA03GmpZsDejKkVaSQQdpKsJVcvy75cd3n1beGTHPZFbkyfhsKjZs/7VsCGJJmf8H2FLt+Tns=; X-YMail-OSG: qyT_yDwVM1k_dzsKZOeUOsQ0Jt_fA8q5n5eU2IM4D_1HwluYaw1crZ_qijxJuDbk9jujE7dWXWBCa7VcQ0A717yvQXDZ3WtI9e4INYjaPQ-- Received: from [141.85.0.106] by web31301.mail.mud.yahoo.com via HTTP; Thu, 14 Aug 2008 15:03:32 PDT X-Mailer: YahooMailWebService/0.7.218.2 Date: Thu, 14 Aug 2008 15:03:32 -0700 (PDT) From: Oancea Ionut-Francisc To: freebsd-questions@freebsd.org MIME-Version: 1.0 Message-ID: <864503.47214.qm@web31301.mail.mud.yahoo.com> X-Mailman-Approved-At: Thu, 14 Aug 2008 23:09:17 +0000 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: ionut.oancea@avira.com Subject: $ORIGIN problem in freebsd 6.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jean_francois666@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 22:30:16 -0000 Hi all, =A0 =A0=A0 I have a problem with the runtime library linking on freebsd6.2_= ix86... My executable file is linked to the others shared libraries (on com= pile time) and for the runtime, rpath was set to $ORIGIN( i checked this an= d with 'readelf' utility). Now, the issue is why, when i try to run my exec= utable, the shared libraries cannot be found although all needed libraries = are in the same path to the executable?The same thing result and after runn= ing 'ldd myexecutable' command, none library is find... I realize that the = $ORIGIN variable is ignored or unknown after I change the rpath with the en= tire path to the shared libraries and then everything goes properly. =A0=A0=A0=A0=A0 Is here another solution to set up the search path to the s= ame dir with the executable?...or I must to update my /libexec/ld-elf.so.1 = and my 'ld' utility(the version of ld is 2.15) Thanks =0A=0A=0A