[SR-Users] error loading perl module

Daniel-Constantin Mierla miconda at gmail.com
Thu Jul 1 10:48:03 CEST 2010


Hello,

keep cc-ing the mailing list for any message, so next people that come 
and scan mailing list archive for the same issue discover the solution 
and whether was good or not.

Cheers,
Daniel


On 6/30/10 11:40 PM, "Nicolas Rüger" wrote:
> Hello Daniel,
>
> thanks for the fast answer. I followed your suggestion and now (after fixing a few minor bugs) it works! :)
>
> Many many thanks...
>
> Nicolas
>
>
>
>
>
> -------- Original-Nachricht --------
>    
>> Datum: Wed, 30 Jun 2010 21:44:36 +0200
>> Von: Daniel-Constantin Mierla<miconda at gmail.com>
>> An: "Nicolas Rüger"<NicolasRueger at gmx.de>
>> CC: sr-users at lists.sip-router.org
>> Betreff: Re: [SR-Users] error loading perl module
>>      
>    
>> Hello,
>>
>> On 6/30/10 9:24 PM, "Nicolas Rüger" wrote:
>>      
>>> Hello,
>>>
>>> I try to use the PERL module in kamailio v3 for some research due to my
>>>        
>> thesis.
>>      
>>> I'm using debian lenny, kamailio_3.0.0 and perl_5.10.0.
>>>
>>>
>>> 1.) The Problem
>>>
>>> Starting Kamailio via "./kamctl start" drops the general error JUST when
>>>        
>> I try to load the PERL module:
>>      
>>> ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start
>>>        
>> failed
>>      
>>>
>>>
>>>
>>> 2.) The search for errors
>>>
>>> I got the following errors (and warnings) in DEBUG mode by starting
>>>        
>> "kamailio -d" for debugging:
>>      
>>> [...]
>>>
>>> 0(10776) DEBUG:<core>   [sr_module.c:382]: load_module: trying to
>>>        
>> load</opt/kamailio-3.0.0/lib/kamailio/modules_k/perl.so>
>>      
>>> 0(10776) WARNING:<core>   [sr_module.c:445]:
>>>        
>> /opt/kamailio-3.0.0/lib/kamailio/modules_k/perl.so: exports dlflags interface is deprecated and it will
>> not be supported in newer versions; consider using mod_register() instead
>> 0(10776)
>>      
>>> [...]
>>>
>>>    0(10778) ERROR: perl [perl.c:330]: insufficient module parameters.
>>>        
>> Module not loaded.
>>      
>>>    0(10778) ERROR:<core>   [sr_module.c:874]: init_mod(): Error while
>>>        
>> initializing module perl
>>      
>>>
>>>        
>> seems you don't have the parameter 'filename' set:
>>
>> http://kamailio.org/docs/modules/stable/modules_k/perl.html#id2928387
>>
>> Cheers,
>> Daniel
>>
>>
>>      
>>>
>>>
>>> 3.) What I did before...
>>>
>>> 3.1) Compiled Kamailio
>>>
>>> I compiled Kamailio 3.0.0 using the following commands, where $1 is the
>>>        
>> target:
>>      
>>> make prefix=$1/ include_modules="db_mysql tls perl" cfg
>>>
>>> make Q=1 all
>>>
>>> make install
>>>
>>> #make prefix=$1/ TLS=1
>>> #make prefix=$1/ TLS=1 modules
>>> #make prefix=$1/ TLS=1 install
>>>
>>> #make prefix=$1/ include_modules="db_mysql" modules
>>> #make prefix=$1/ include_modules="db_mysql" install
>>>
>>>
>>> 3.2) Set the environment variables as described in
>>>
>>> http://kamailio.org/docs/modules/stable/modules_k/perl.html#id2920768
>>>
>>> You need to set the environment variables PERLLDOPTS, PERLCCOPTS and
>>>        
>> TYPEMAP to values similar to the output of
>>      
>>> PERLLDOPTS: perl -MExtUtils::Embed -e ldopts
>>> PERLCCOPTS: perl -MExtUtils::Embed -e ccopts
>>> TYPEMAP:    echo "`perl -MConfig -e 'print
>>>        
>> $Config{installprivlib}'`/ExtUtils/typemap"
>>      
>>> 3.3) Trying to load the perl-module via kamailio.cfg
>>>
>>> loadmodule "perl.so"
>>>
>>>
>>>
>>>
>>> Can you PLEASE help me to solve the problem!
>>>
>>> Thank you very much...
>>>
>>> Cheers Nicolas
>>>
>>>        
>> -- 
>> Daniel-Constantin Mierla
>> http://www.asipto.com/
>>      
>    

-- 
Daniel-Constantin Mierla
http://www.asipto.com/




More information about the sr-users mailing list