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: Thu, 07 Jun 2018 18:17:02 +0200 Message-ID: <871sdibmgx.fsf@gnu.org> References: <87zi0ho0mb.fsf@gmail.com> <87602zueou.fsf@gnu.org> <87po146xte.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]:46804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQxb2-0003rm-07 for guix-devel@gnu.org; Thu, 07 Jun 2018 12:17:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQxay-0002Qz-OP for guix-devel@gnu.org; Thu, 07 Jun 2018 12:17:07 -0400 In-Reply-To: <87po146xte.fsf@gmail.com> (Pierre Neidhardt's message of "Wed, 06 Jun 2018 11:58:37 +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? > > 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 > >> 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.) > > `-ldevmapper` is in the command, so it does not seem like it's the > problem here. Could you build it with -K, and then, cd into the failed build tree, remove libdevmapper-event-lvm2mirror.so*, and run: GUIX_LD_WRAPPER_DEBUG=3Dyes make ? That will allow you to see which =E2=80=98-rpath=E2=80=99 flags ld-wrapper = adds. HTH, Ludo=E2=80=99.