From: Enrico Weigelt <weigelt@metux.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Shared libraries in Gentoo
Date: Thu, 9 Sep 2010 05:11:12 +0200 [thread overview]
Message-ID: <20100909031112.GD15206@nibiru.local> (raw)
In-Reply-To: <AANLkTinw7FLp7fUuwey1VWWw63pboZmTodA0YeCTGzHM@mail.gmail.com>
* Al <oss.elmar@googlemail.com> wrote:
> But I was woundering if the /etc/ld.so.conf was only historical stuff.
> O.K. is not it's up-to-date. Good to know this.
Note that this only applies to certain platforms (mostly GNU/glibc
based ones). There might be completely different approaches.
It all depends on how your platform (in glibc-/gcc-world it is the
ld-stub) handles shared library loading. Some platforms might do
it directly in the process loader (I guess on native Windows it's
done by the kernel, not userland).
> But it also writes that dlopen() is specific for Linux and Solaris.
> There would be alternatives:
Depends on the libc you're using (btw: on GNU/Linux it has nothing
to do with the Linux kernel, but all done by glibc) For example,
the Windows API provides methods for loading shared libraries and
retrieving entry points - this can be used for an dlopen()
implementation (of course, the in-depth semantics, eg. symbol
visibility and linking orders could vary here).
> 1.) The glib library
Glib essentially bridges to the underlying OS API (for GNU platforms,
it calls glibc's dlopen(), on Windows it calls the DLL loader API).
For that case, there's nothing a proper libc could also do. Take a
sane libc and you don't need glib here.
> 2.) libltdl, which is part of GNU libtool
I doubt you really want to go into libtool hell ... ;-o
> Now I was woundering, which way would Gentoo choose or if that is not
> package specific at all. Are you sure dlopen() is used as a general
> approach on Gentoo?
It doesnt have anything to do with Gentoo (or any other distro),
instead it's a purely package specific issue. Gentoo just happens
to be based (mainly) on GNU libc, which provides dlopen().
> Also I installed a few libries with Prefix Gentoo on Cygwin. On Cygwin
> there is no /etc/ld.so.conf. Yet the libraries are found somehow. I
> still have to find out how it works in that environment.
Obviously they have a different lookup mechanism. The actually
library loading of course is Windows-specific (I doubt it would
be possible to support GNU-style ELF libraries entirely from
userland alone).
cu
--
----------------------------------------------------------------------
Enrico Weigelt, metux IT service -- http://www.metux.de/
phone: +49 36207 519931 email: weigelt@metux.de
mobile: +49 151 27565287 icq: 210169427 skype: nekrad666
----------------------------------------------------------------------
Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------
next prev parent reply other threads:[~2010-09-09 3:22 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-06 18:28 [gentoo-user] Shared libraries in Gentoo Al
2010-09-06 20:30 ` [gentoo-user] " Nikos Chantziaras
2010-09-06 21:24 ` Al
2010-09-06 21:38 ` Al
2010-09-06 22:49 ` Nikos Chantziaras
2010-09-07 1:00 ` Al
2010-09-09 3:11 ` Enrico Weigelt [this message]
2010-09-06 22:43 ` walt
2010-09-07 0:39 ` Al
2010-09-07 3:47 ` Ajai Khattri
2010-09-07 9:33 ` Al
2010-09-07 16:13 ` Ajai Khattri
2010-09-07 16:40 ` Alan McKinnon
2010-09-07 18:15 ` Al
2010-09-07 21:20 ` Alan McKinnon
2010-09-07 23:51 ` Al
2010-09-08 16:07 ` Al
2010-09-09 2:36 ` Enrico Weigelt
2010-09-09 8:55 ` Al
2010-09-10 1:00 ` Enrico Weigelt
2010-09-09 10:28 ` Al
2010-09-09 11:12 ` [gentoo-user] " Andrea Conti
2010-09-09 12:28 ` Al
2010-09-10 0:40 ` Enrico Weigelt
2010-09-10 0:38 ` [gentoo-user] " Enrico Weigelt
2010-09-09 0:56 ` Enrico Weigelt
2010-09-09 8:56 ` Alan McKinnon
2010-09-09 11:50 ` Al
2010-09-09 12:25 ` Alan McKinnon
2010-09-09 13:20 ` Al
2010-09-09 13:54 ` Alan McKinnon
2010-09-09 15:12 ` Neil Bothwick
2010-09-09 15:26 ` Alan McKinnon
2010-09-09 16:28 ` Neil Bothwick
2010-09-09 21:03 ` Graham Murray
2010-09-09 23:49 ` Enrico Weigelt
2010-09-10 16:43 ` Florian Philipp
2010-09-10 19:02 ` Alan McKinnon
2010-09-10 23:25 ` walt
2010-09-09 2:52 ` Enrico Weigelt
2010-09-09 15:02 ` Al
2010-09-10 0:19 ` Enrico Weigelt
2010-09-10 12:27 ` Al
2010-09-12 21:30 ` Enrico Weigelt
2010-09-12 22:47 ` Al
2010-09-13 1:11 ` Enrico Weigelt
2010-09-07 19:12 ` Al
2010-09-08 19:29 ` Al
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=20100909031112.GD15206@nibiru.local \
--to=weigelt@metux.de \
--cc=gentoo-user@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