You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Alexander Broekhuis <a....@gmail.com> on 2011/05/27 08:23:50 UTC
apr_dso_load with RTLD_LAZY and RTLD_LOCAL
Hello,
Currently there is only apr_dso_load which loads libraries globally
(RTLD_GLOBAL) and resolves everything direct (RTLD_NOW). Is there an
alternative for which I can define the flags myself?
The documentation of 1.4 states: Bug: We aught to provide an
alternative to RTLD_GLOBAL, which is the only supported method of
loading DSOs today.
Some progress on this?
Thanks in advance
--
Met vriendelijke groet,
Alexander Broekhuis
Re: apr_dso_load with RTLD_LAZY and RTLD_LOCAL
Posted by Massimo Manghi <mx...@apache.org>.
At least providing a way for specifying different load flags can be
useful,
and having even RTLD_LOCAL might be a recommended default in many cases
Recently I ran into a problem connected with these flags developing
mod_rivet. This sort of trouble occurred in a weird way and it was a
real waste of time to track it down. The discussion that followed on
the Tcl Core Team dev list came to the conclusion that the problems
RTLD_GLOBAL was meant to address could be solved in different and more
consistent ways, the choice didn't return enough advantages to break
even with the drawbacks and was potentially harmful. See
http://sourceforge.net/tracker/?func=detail&aid=3216070&group_id=10894&atid=110894
-- Massimo
On Fri, 27 May 2011 08:23:50 +0200, Alexander Broekhuis wrote:
> Hello,
>
> Currently there is only apr_dso_load which loads libraries globally
> (RTLD_GLOBAL) and resolves everything direct (RTLD_NOW). Is there an
> alternative for which I can define the flags myself?
> The documentation of 1.4 states: Bug: We aught to provide an
> alternative to RTLD_GLOBAL, which is the only supported method of
> loading DSOs today.
>
> Some progress on this?
>
> Thanks in advance