Re: [asterisk-dev] ugly fix for module embedding bug (Re: module embedding help ?)

2007-11-06 Thread Luigi Rizzo
On Tue, Nov 06, 2007 at 10:39:52AM -0600, Russell Bryant wrote: > Luigi Rizzo wrote: > > I have an ugly fix, below - store the relevant values from > > module_list in a static variable not subject to constructors, > > and restore module_list from that variable near the beginning > > of load_modules

Re: [asterisk-dev] ugly fix for module embedding bug (Re: module embedding help ?)

2007-11-06 Thread Michael Iedema
On 11/6/07, Luigi Rizzo <[EMAIL PROTECTED]> wrote: > done - just put in trunk/ a slightly better patch that should take care > of random order in calling the constructors involved here. > I know this question is hated, but any hope of this fix being applied to the 1.4 branch or has the loader chan

Re: [asterisk-dev] ugly fix for module embedding bug (Re: module embedding help ?)

2007-11-06 Thread Russell Bryant
Luigi Rizzo wrote: > I have an ugly fix, below - store the relevant values from > module_list in a static variable not subject to constructors, > and restore module_list from that variable near the beginning > of load_modules(). > > However i don't like it too much, and furthermore I am afraid tha

[asterisk-dev] ugly fix for module embedding bug (Re: module embedding help ?)

2007-11-06 Thread Luigi Rizzo
I found the bug that causes module embedding not to work on FreeBSD (and maybe on other architectures too). Module embedding is implemented using some linker magic that causes ast_module_register() to be called for each of the embedded objects. This in turn adds the entry to a list, module_list, i