All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Juergen Gross <jgross@suse.com>
Cc: ian.jackson@citrix.com, wei.liu2@citrix.com,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH] tools/xenstore: add libdl dependency to libxenstore
Date: Fri, 9 Mar 2018 12:08:42 +0100	[thread overview]
Message-ID: <20180309110842.GD12975@aepfle.de> (raw)
In-Reply-To: <20180309102343.GB12975@aepfle.de>


[-- Attachment #1.1: Type: text/plain, Size: 853 bytes --]

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

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-03-09 11:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-07 10:17 [PATCH] tools/xenstore: add libdl dependency to libxenstore Juergen Gross
2018-03-07 10:29 ` Wei Liu
2018-03-07 11:01 ` Juergen Gross
2018-03-07 11:04   ` Wei Liu
2018-03-07 11:19 ` Ian Jackson
2018-03-07 11:49   ` Juergen Gross
2018-03-07 12:06     ` ian.jackson
2018-03-07 12:15       ` Juergen Gross
2018-03-09  8:36         ` Olaf Hering
2018-03-09 10:00           ` Juergen Gross
2018-03-09 10:23             ` Olaf Hering
2018-03-09 11:08               ` Olaf Hering [this message]
2018-03-09 16:12                 ` Wei Liu

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=20180309110842.GD12975@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=ian.jackson@citrix.com \
    --cc=jgross@suse.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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.
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.