public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] libtool lt_dlopenext vs. gen_ld_script: breakages at runtime
Date: Wed, 8 Jan 2014 20:27:32 +0000	[thread overview]
Message-ID: <robbat2-20140108T202349-264675106Z@orbis-terrarum.net> (raw)
In-Reply-To: <20140108201443.28291.qmail@stuge.se>

On Wed, Jan 08, 2014 at 09:14:43PM +0100, Peter Stuge wrote:
> Robin H. Johnson wrote:
> > Comments:
> > ---------
> > In bug #4411, comment 43, vapier noted:
> > > any package that does dlopen("libfoo.so") without the version info like ".so.X" is broken.
> > In this case, the lt_dlopenext consumer is explicitly testing multiple
> > versions of libusb at runtime, and picking the correct interface:
> > it doesn't need to depend on a specific version.
> vapier is still correct and the consumer is indeed broken, it does
> too need to specify the .so version in the dlopen() call, at least
> in the case of libusb.
> > This is also because the lt_dlopenext interface does NOT accepted
> > files versioned after the .so: it needs the filename with no extensions.
> Hm, that seems limited?
It's NOT calling dlopen directly. It's calling the lt_dlopenext
interface from libtool. That iterates over the possible combinations
that end with ".so", and never iterates over the numbered suffixes.

lt_dlforeachfile actully complicates it even more, but also doesn't see
the numbered suffixes.

So should you're saying that we need to change libtool's code now?

-- 
Robin Hugh Johnson
Gentoo Linux: Developer, Infrastructure Lead
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85


  reply	other threads:[~2014-01-08 20:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-05  4:09 [gentoo-dev] libtool lt_dlopenext vs. gen_ld_script: breakages at runtime Robin H. Johnson
2014-01-06 19:23 ` William Hubbs
2014-01-06 19:31   ` Robin H. Johnson
2014-01-08  8:59 ` [gentoo-dev] " Steven J. Long
2014-01-08 20:14 ` [gentoo-dev] " Peter Stuge
2014-01-08 20:27   ` Robin H. Johnson [this message]
2014-01-08 20:43     ` Rick "Zero_Chaos" Farina
2014-01-12 11:15       ` [gentoo-dev] " Steven J. Long

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=robbat2-20140108T202349-264675106Z@orbis-terrarum.net \
    --to=robbat2@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox