From: ludo@gnu.org (Ludovic Courtès)
To: Pierre Neidhardt <ambrevar@gmail.com>
Cc: Guix-devel <guix-devel@gnu.org>
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 [thread overview]
Message-ID: <874li1je4t.fsf@gnu.org> (raw)
In-Reply-To: <878t7dw8ce.fsf@gmail.com> (Pierre Neidhardt's message of "Sun, 17 Jun 2018 20:56:01 +0200")
Pierre Neidhardt <ambrevar@gmail.com> 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=yes make
[...]
> make[4]: Entering directory '/tmp/guix-build-lvm2-2.02.177.drv-0/LVM2.2.02.177/daemons/dmeventd/plugins/mirror'
> gcc -shared -Wl,-soname,libdevmapper-event-lvm2mirror.so.2.02 \
> -O2 -fPIC -L../../../../daemons/dmeventd/plugins/lvm2 -Wl,--version-script,.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
‘daemons/dmeventd/plugins/mirror/Makefile’ or otherwise arrange to have
‘-Wl,-rpath=OUT/lib’ passed when linking
libdevmapper-event-lvm2mirror.so.
Packages using Libtool don’t have this problem because Libtool relinks
upon installation so that the installed binaries have the right RUNPATH.
HTH,
Ludo’.
next prev parent reply other threads:[~2018-06-17 21:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-30 11:15 lvm2/device-mapper (dmeventd): libdevmapper-event-lvm2mirror.so: error: depends on 'libdevmapper-event-lvm2.so.2.02', which cannot be found in RUNPATH Pierre Neidhardt
2018-06-04 8:41 ` Ludovic Courtès
2018-06-06 9:58 ` Pierre Neidhardt
2018-06-07 16:17 ` Ludovic Courtès
2018-06-17 18:56 ` Pierre Neidhardt
2018-06-17 21:29 ` Ludovic Courtès [this message]
2018-06-28 18:17 ` Pierre Neidhardt
2018-06-29 8:37 ` Ludovic Courtès
2018-06-29 8:41 ` Pierre Neidhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874li1je4t.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=ambrevar@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.