From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: lvm2/device-mapper (dmeventd): libdevmapper-event-lvm2mirror.so: error: depends on 'libdevmapper-event-lvm2.so.2.02', which cannot be found in RUNPATH Date: Sun, 17 Jun 2018 23:29:22 +0200 Message-ID: <874li1je4t.fsf@gnu.org> References: <87zi0ho0mb.fsf@gmail.com> <87602zueou.fsf@gnu.org> <878t7dw8ce.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUfEi-0007be-RW for guix-devel@gnu.org; Sun, 17 Jun 2018 17:29:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUfEi-0000yG-15 for guix-devel@gnu.org; Sun, 17 Jun 2018 17:29:24 -0400 In-Reply-To: <878t7dw8ce.fsf@gmail.com> (Pierre Neidhardt's message of "Sun, 17 Jun 2018 20:56:01 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: Guix-devel Pierre Neidhardt skribis: >> Could you paste the excerpt from that log that shows the command that >> produced libdevmapper-event-lvm2mirror.so? >> >> It may be a matter of adding -ldevmapper to that command (which in turn >> will lead ld-wrapper to add the right -Wl,-rpath flag.) > > Done, here is the result: > >> env GUIX_LD_WRAPPER_DEBUG=3Dyes make [...] > make[4]: Entering directory '/tmp/guix-build-lvm2-2.02.177.drv-0/LVM2.2.0= 2.177/daemons/dmeventd/plugins/mirror' > gcc -shared -Wl,-soname,libdevmapper-event-lvm2mirror.so.2.02 \ > -O2 -fPIC -L../../../../daemons/dmeventd/plugins/lvm2 -Wl,--version-scr= ipt,.export.sym -Wl,-z,relro -L../../../../libdm -L../../../../lib -L../../= ../../libdaemon/client -L../../../../daemons/dmeventd dmeventd_mirror.o -= ldevmapper-event-lvm2 -ldevmapper -o libdevmapper-event-lvm2mirror.so.2.02 [...] > There does not seem to be any "-rpath" towards the output. Indeed. So I think you need to modify =E2=80=98daemons/dmeventd/plugins/mirror/Makefile=E2=80=99 or otherwise arr= ange to have =E2=80=98-Wl,-rpath=3DOUT/lib=E2=80=99 passed when linking libdevmapper-event-lvm2mirror.so. Packages using Libtool don=E2=80=99t have this problem because Libtool reli= nks upon installation so that the installed binaries have the right RUNPATH. HTH, Ludo=E2=80=99.