[Serusers] Re: Module programming question

Jan Janak jan at iptel.org
Mon May 23 17:24:34 CEST 2005


Put MODULE_VERSION macro in one of your source files. See
sip_router/modules/auth/auth_mod.c for details.

  Jan.

On 22-05-2005 16:41, Daniel Corbe wrote:
> Here's another question:
> 
> I got my module to compile by taking _init out and reworking the
> initalization of the module into something else.
> 
> Now when SER loads I get:
> 
> May 22 21:34:00 proxy2 ser: ERROR: no version info in module
> </usr/local/lib/ser/modules/radius_cache.so>: Undefined symbol
> "module_version"
> 
> What is module_version?  How do I define it?
> 
> Thanks.
> 
> -Daniel
> 
> 
> On 5/22/05, Daniel Corbe <daniel.junkmail at gmail.com> wrote:
> > Hello,
> > 
> > I have a SER module which I've written in C and I'm trying to compile.
> >  When I compile it I get this error:
> > 
> > 20:53:24 root#proxy2:/usr/local/src/ser-0.9.0/modules/radius_cache>gcc
> > -shared -o radius_cache.so radius_cache.o
> > radius_cache.o: In function `_init':
> > radius_cache.o(.text+0x0): multiple definition of `_init'
> > /usr/lib/crti.o(.init+0x0): first defined here
> > 
> > Is there something else in SER that exports _init already?
> > 
> > Thanks.
> > 
> > -Daniel
> >
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list