From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH] tools/xenstore: add libdl dependency to libxenstore Date: Fri, 9 Mar 2018 12:08:42 +0100 Message-ID: <20180309110842.GD12975@aepfle.de> References: <20180307101744.32608-1-jgross@suse.com> <23199.51911.713278.912475@mariner.uk.xensource.com> <23199.54702.631341.284821@mariner.uk.xensource.com> <20180309083633.GA12975@aepfle.de> <579ae32f-1800-7416-ee5c-ef384804bca0@suse.com> <20180309102343.GB12975@aepfle.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5875059313277077680==" Return-path: Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euFtH-00061D-E4 for xen-devel@lists.xenproject.org; Fri, 09 Mar 2018 11:08:47 +0000 In-Reply-To: <20180309102343.GB12975@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" To: Juergen Gross Cc: ian.jackson@citrix.com, wei.liu2@citrix.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org --===============5875059313277077680== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NtwzykIc2mflq5ck" Content-Disposition: inline --NtwzykIc2mflq5ck Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Fri, Mar 09, Olaf Hering wrote: > abuild@latitude:~> readelf -Wa /usr/lib64/libpython2.7.so | grep dlsym > 00000000003e5e08 000000d900000007 R_X86_64_JUMP_SLOT 0000000000000000 dlsym@GLIBC_2.2.5 + 0 > 217: 0000000000000000 0 FUNC GLOBAL DEFAULT UND dlsym@GLIBC_2.2.5 (10) > abuild@latitude:~> readelf -Wa /usr/lib64/libxenstore.so | grep dlsym > 00000000002071b0 0000002b00000007 R_X86_64_JUMP_SLOT 0000000000000000 dlsym + 0 > 43: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND dlsym The difference is SUSE_ASNEEDED=1 in environment. If it is set, libxenstore.so will not link to libdl.so. If it is not, libxenstore.so will link to libdl.so. Since package building exports SUSE_ASNEEDED=1 usage of -lxenstore will fail. Not sure how all the other packages use dlsym(), clearly xenstore does something different. Olaf --NtwzykIc2mflq5ck Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSkRyP6Rn//f03pRUBdQqD6ppg2fgUCWqJrOgAKCRBdQqD6ppg2 fkkpAJ9h1MQN/UA2jL8G3pLqW6S4zAELTQCfW9IsHvKgP/85ynFZbxQBJo57XME= =0Dfg -----END PGP SIGNATURE----- --NtwzykIc2mflq5ck-- --===============5875059313277077680== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============5875059313277077680==--