getting error while adding module to openser

View: New views
3 Messages — Rating Filter:   Alert me  

getting error while adding module to openser

by suresh tattikota :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi all
 
this is the steps i followed to add module  
 
 i took one example module as exMod and this exMod sub directory is in directory called  /modules  
 
 
1. created one makefile 
2.one .c file with one printf statement , .h file for corresponding .c file 
3.and added loadmodule "exMod.so" in openser.cfg file then 
4. i run the openser with  make prifix=/usr/local/ all and make prifix=/usr/local/ install
5  while i am running the openser it is not showing any thing
    
 
the .c  an .h file of my exMod are

exMod.c:

void print_modname()
{

printf("this is module name ");
}

exMod.h

void print_modname();

and my Makefile is :

include ../../Makefile.defs
auto_gen=
NAME=exMod.so
DEFS+=-I$(LOCALBASE)/include
LIBS=

include ../../Makefile.modules

so please help me regarding this


_______________________________________________
Users mailing list
Users@...
http://lists.openser.org/cgi-bin/mailman/listinfo/users

Re: getting error while adding module to openser

by Bogdan-Andrei Iancu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

is tour openser starting or not? if not, look (eventually in syslog) for
any startup errors.

Regards,
Bogdan

suresh tattikota wrote:

> hi all
> **
> *this is the steps i followed to add module  *
> **
> * i took one example module as exMod and this exMod sub directory is
> in directory called  /modules  *
> **
> **
> *1. created one makefile *
> *2.one .c file with one printf statement , .h file for corresponding
> .c file *
> *3.and added loadmodule "exMod.so" in openser.cfg file then *
> *4. i run the openser with * make prifix=/usr/local/ all and make
> prifix=/usr/local/ install
> 5  while i am running the openser it is not showing any thing
>    
>  
> *the .c  an .h file of my* *exMod are *
>
> *exMod.c:*
>
> void print_modname()
> {
>
> printf("this is module name ");
> }
>
> *exMod.h*
>
> void print_modname();
>
> and my Makefile is :
>
> include ../../Makefile.defs
> auto_gen=
> NAME=exMod.so
> DEFS+=-I$(LOCALBASE)/include
> LIBS=
>
> include ../../Makefile.modules
>
> so please help me regarding this
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users@...
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>  


_______________________________________________
Users mailing list
Users@...
http://lists.openser.org/cgi-bin/mailman/listinfo/users

Parent Message unknown Re: getting error while adding module to openser

by Bogdan-Andrei Iancu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well, the error message is quite self explaining:  *No such file or
directory*

check if the */usr/src/OpenSER/openser-1.2.0-tls/modules/pna.so  *really
exists.

Regards,
Bogdan


suresh tattikota wrote:

>  
> hi
> i checked it in log file,i am getting these errors
>  
> *ERROR: load_module: could not open module
> </usr/src/OpenSER/openser-1.2.0-*
> **
> *tls/modules/pna.so>:
> /usr/src/OpenSER/openser-1.2.0-tls/modules/pna.so: cannot open shared
> object file: No such file or directory
> *
> *openser: parse error (54,13-14): failed to load module*
>  
> *ERROR: no version info in module
> </usr/local/lib/openser/modules/pna.so>:
> /usr/local/lib/openser/modules/pna.so: undefined symbol: module_version*
>
> * ERROR: no version info in module
> </usr/local/lib/openser/modules/pna.so>:
> /usr/local/lib/openser/modules/pna.so: undefined symbol: module_version
> *
>
>  
> thank u
>
>  
> On 7/7/08, *Bogdan-Andrei Iancu* <bogdan@...
> <mailto:bogdan@...>> wrote:
>
>     Hi
>
>     is tour openser starting or not? if not, look (eventually in
>     syslog) for any startup errors.
>
>     Regards,
>     Bogdan
>
>     suresh tattikota wrote:
>
>         hi all
>         ** *this is the steps i followed to add module  *
>         ** * i took one example module as exMod and this exMod sub
>         directory is in directory called  /modules  *
>         ** ** *1. created one makefile *
>         *2.one .c file with one printf statement , .h file for
>         corresponding .c file *
>         *3.and added loadmodule "exMod.so" in openser.cfg file then *
>         *4. i run the openser with * make prifix=/usr/local/ all and
>         make prifix=/usr/local/ install
>         5  while i am running the openser it is not showing any thing
>             *the .c  an .h file of my* *exMod are *
>
>         *exMod.c:*
>
>         void print_modname()
>         {
>
>         printf("this is module name ");
>         }
>
>         *exMod.h*
>
>         void print_modname();
>
>         and my Makefile is :
>
>         include ../../Makefile.defs
>         auto_gen=
>         NAME=exMod.so
>         DEFS+=-I$(LOCALBASE)/include
>         LIBS=
>
>         include ../../Makefile.modules
>
>         so please help me regarding this
>
>         ------------------------------------------------------------------------
>
>         _______________________________________________
>         Users mailing list
>         Users@... <mailto:Users@...>
>         http://lists.openser.org/cgi-bin/mailman/listinfo/users
>          
>
>
>


_______________________________________________
Users mailing list
Users@...
http://lists.openser.org/cgi-bin/mailman/listinfo/users
LightInTheBox - Buy quality products at wholesale price