From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: =?utf-8?Q?=E2=80=A6?= which cannot be found in RUNPATH Date: Mon, 12 Jun 2017 21:38:58 +0200 Message-ID: <87r2yphu7h.fsf@fastmail.com> References: <593E3868.40204@crazy-compilers.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dKVB5-0007es-Rq for guix-devel@gnu.org; Mon, 12 Jun 2017 15:39:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dKVB1-0007Zy-7u for guix-devel@gnu.org; Mon, 12 Jun 2017 15:39:07 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41959) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dKVB1-0007X0-2q for guix-devel@gnu.org; Mon, 12 Jun 2017 15:39:03 -0400 In-Reply-To: <593E3868.40204@crazy-compilers.com> 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: Hartmut Goebel , Guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hartmut Goebel writes: > Hi guix! > > I have a package installing a lib as =E2=80=A6/lib/plasma/libDiscoverComm= on.so > and a second lib as =E2=80=A6/lib/other/lib.so. > > Building and linking works fine, but phase `validate-runpath' fails with: > > "=E2=80=A6/other/lib.so depends on 'libDiscoverCommon.so', which cannot b= e found > in RUNPATH". > > I checked the RUNPATH shown in this error-message and it includes the > correct output of this package. But the RUNPATH only includes "=E2=80=A6/= lib", > not "=E2=80=A6/lib/plasma" =E2=80=93 I don't know if this matters. > > It is one of the KDE packages, using the cmake-build-system, which did > not show this kind of errors (for me). libDiscoverCommon.so was > installed to the correct output of this package. > > I tried setting linker flags, as I've seen in other packages, but this > did not help. > > How to solve this? Cmake has a couple of options for controlling RUNPATH. https://cmake.org/Wiki/CMake_RPATH_handling See e.g. 'ceph' for a similar example. Would that approach work? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlk+7dMACgkQoqBt8qM6 VPqxLggAlxIrLqqJNmD0bXZR5cSX8MP4nvRIwvRSW9aGN5OOI1w9m8NfKyNeJjOY p8hGU9P06XWsQSpuONsUTa7YcYMrT6GJYttIgIlYnYOE8myv8/ZaL+8OrpAP7/2C nvXvBoN4W++I+03gq9r2hscPp5nRbrEmH7DV2FraIxBn5QbYo4qX3tm9xxjCQAV/ yCNGLeWU43zClph2V5txbi8g7OvS8tDoH8lILsalfhNb1PiuXkDZlrAjlRVZvGTJ lGmdT9Oj96fY6E6DVwdJE6b7+4OPOCALq9Y61oZqX+6zuNONH12fgbIpXm6P+Ce7 NGYMO0lHNNMOr0WMoKmpjFboBKOzSg== =FFFa -----END PGP SIGNATURE----- --=-=-=--