[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] tools/xenstore: add libdl dependency to libxenstore



On Fri, Mar 09, 2018 at 12:08:42PM +0100, Olaf Hering wrote:
> 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.

I'm not sure what to make of this. I'm not sure what SUSE_ASNEEDED is
for. I guess I will leave this to you SuSE experts to sort out. :-)

Wei.

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.