[Devel] static compilation ... openser1.2

Cesc cesc.santa at gmail.com
Sun Apr 22 19:15:40 CEST 2007


Hi all,

I have a patch to allow easy compilation of modules statically ... it
does not effect a "normal" (shared modules) compilation, so what was
working, keeps working.
The only problem remaining is global variables colliding among modules
(db_url, user_column, ... ). This means that not even the "standard"
set of modules can be linked (they all compile, but linking produces
the collisions).  But for smaller sets of modules (i have a basic
presence server with dbtext, no usrloc or registration all linked
statically), it does work.

Shall I commit it or do you prefer a tracker patch?
I would not put a lot of effort on "fixing" the 1.2 modules ... do the
fixing only on trunk, but the static_build option, shall be also on
1.2.

Regards,

Cesc

On 4/18/07, Cesc <cesc.santa at gmail.com> wrote:
> Hi Daniel,
>
> Well, I took a second look at it and I think it is a one time effort,
> which once solved and if future development sticks to the rules, shall
> not be too complicated. It could definitely be made easier, but
> costing development time ... to bring it up to speed now is a question
> of routine work, which by the way i am halfway.
>
> The issues are:
> - collision of global variables defined in modules: solvable
> - missing libraries when linking: solvable
> - on register_built_in_modules: massive repetitive code ... boring, but doable
>
> Unless we redesign completely, I think I can bring all modules up to a
> statically compilable state in 1.2 and port it to trunk.
> Take a look yourself, the key is in sr_module.c/h
>
> Cesc
>
> On 4/18/07, Daniel-Constantin Mierla <daniel at voice-system.ro> wrote:
> > Hello Cesc,
> >
> > I think then we should start discussing how to make static compilation
> > easier, I see no reason to commit an intermediary patch and then
> > refurbish everything. Awaiting your proposal.
> >
> > Cheers,
> > Daniel
> >
> >
> > On 04/17/07 02:52, Cesc wrote:
> > > Hi,
> > >
> > > I have compiled openser1.2 statically, well, at least the few modules
> > > I needed.
> > > This is a nice feature, I think, to compile statically, specially for
> > > those like me who compile and forget ... less mess in terms of
> > > installation and maintenance ...
> > > Anyway, I can send the patch which allows compilation of these few
> > > modules ... but I do think that some effort shall be placed in
> > > redesigning the things that make static compilation easier ... or
> > > maybe not and just do it once and for all and coming modules shall
> > > adapt to it.
> > >
> > > Bogdan, Daniel? or shall I just commit it? it is for v1.2 ... i am not
> > > working on trunk, but this part shall be exactly the same ...
> > >
> > > Cesc
> > >
> > > _______________________________________________
> > > Devel mailing list
> > > Devel at openser.org
> > > http://openser.org/cgi-bin/mailman/listinfo/devel
> > >
> >
>



More information about the Devel mailing list