Hi,
I'm trying to migrate from K-1.5 to K-3.0.0 and I'm having problems loading the snmpstats module in kamailio-3.0.0. The error is:
ERROR: <core> [sr_module.c:390]: ERROR: load_module: could not open module </usr/local/lib/kamailio/modules_k/snmpstats.so>: /usr/local/lib/kamailio/modules_k/snmpstats.so: undefined symbol: module_loaded
By checking the code it looks like module_loaded function is not implemented in sr_module.c anymore. Could this be the problem?
Thanks. Best regards,
Santi
Hi Santiago,
On 1/4/10 8:39 PM, Santiago Gimeno wrote:
Hi,
I'm trying to migrate from K-1.5 to K-3.0.0 and I'm having problems loading the snmpstats module in kamailio-3.0.0. The error is:
ERROR: <core> [sr_module.c:390]: ERROR: load_module: could not open module </usr/local/lib/kamailio/modules_k/snmpstats.so>: /usr/local/lib/kamailio/modules_k/snmpstats.so: undefined symbol: module_loaded
By checking the code it looks like module_loaded function is not implemented in sr_module.c anymore. Could this be the problem?
the function prototype was declared, but no implementation, therefore no compilation error.
I added a define for module_loaded to reuse find_module_by_name() function. Please get the git version and try again. I am not using this module so I cannot test. Report if all ok now.
Thanks, Daniel
Hi Daniel,
2010/1/4 Daniel-Constantin Mierla miconda@gmail.com
I added a define for module_loaded to reuse find_module_by_name() function. Please get the git version and try again. I am not using this module so I cannot test. Report if all ok now.
Thanks for the fix. I updated the sources and the error is solved but now I have another problem. Apparently the modparams of the snmpstats module are not parsed correctly. I receive this error:
kamailio: ERROR: snmpstats [utilities.c:83]: the sipEntityType parameter was assigned a type -2147483647 instead of 1
Any idea what might be happening?
Thanks. Best regards,
Santi
Thanks, Daniel
-- Daniel-Constantin Mierla
Hi Santiago,
On 1/5/10 5:35 PM, Santiago Gimeno wrote:
Hi Daniel,
2010/1/4 Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com>
I added a define for module_loaded to reuse find_module_by_name() function. Please get the git version and try again. I am not using this module so I cannot test. Report if all ok now.
Thanks for the fix. I updated the sources and the error is solved but now I have another problem. Apparently the modparams of the snmpstats module are not parsed correctly. I receive this error:
kamailio: ERROR: snmpstats [utilities.c:83]: the sipEntityType parameter was assigned a type -2147483647 instead of 1
Any idea what might be happening?
a different way of giving the parameter type to module function. Should be fixed now, pull the git again.
Many thanks, Daniel
Hi Daniel,
2010/1/5 Daniel-Constantin Mierla miconda@gmail.com
Hi Santiago,
On 1/5/10 5:35 PM, Santiago Gimeno wrote:
Hi Daniel,
2010/1/4 Daniel-Constantin Mierla miconda@gmail.com
I added a define for module_loaded to reuse find_module_by_name() function. Please get the git version and try again. I am not using this module so I cannot test. Report if all ok now.
Thanks for the fix. I updated the sources and the error is solved but now I have another problem. Apparently the modparams of the snmpstats module are not parsed correctly. I receive this error:
kamailio: ERROR: snmpstats [utilities.c:83]: the sipEntityType parameter was assigned a type -2147483647 instead of 1
Any idea what might be happening?
a different way of giving the parameter type to module function. Should be fixed now, pull the git again.
Thanks! It's working now.
Best regards,
Santi
2010/1/4 Daniel-Constantin Mierla miconda@gmail.com:
Hi Santiago,
the function prototype was declared, but no implementation, therefore no compilation error.
I added a define for module_loaded to reuse find_module_by_name() function. Please get the git version and try again. I am not using this module so I cannot test. Report if all ok now.
I have a similar problem with latest git version, no compilation error. Here's the error starting kamailio: kamailio: ERROR: <core> [sr_module.c:390]: ERROR: load_module: could not open module </usr/local/lib/kamailio/modules_k/snmpstats.so>: /usr/lib64/libnetsnmpagent.so.10: undefined symbol: boot_DynaLoader
I'm using Centos 5.3 x86_64. Istalled net-snmp packages: net-snmp-devel-5.3.2.2-7.el5_4.2 net-snmp-5.3.2.2-7.el5_4.2 net-snmp-utils-5.3.2.2-7.el5_4.2 net-snmp-libs-5.3.2.2-7.el5_4.2 net-snmp-perl-5.3.2.2-7.el5_4.2
Thanks, Daniel
Thanks. Regards.
Hi Antonio,
2010/1/27 Antonio Reale ant.reale@gmail.com
I have a similar problem with latest git version, no compilation error. Here's the error starting kamailio: kamailio: ERROR: <core> [sr_module.c:390]: ERROR: load_module: could not open module </usr/local/lib/kamailio/modules_k/snmpstats.so>: /usr/lib64/libnetsnmpagent.so.10: undefined symbol: boot_DynaLoader
I'm using Centos 5.3 x86_64. Istalled net-snmp packages: net-snmp-devel-5.3.2.2-7.el5_4.2 net-snmp-5.3.2.2-7.el5_4.2 net-snmp-utils-5.3.2.2-7.el5_4.2 net-snmp-libs-5.3.2.2-7.el5_4.2 net-snmp-perl-5.3.2.2-7.el5_4.2http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
I solved that problem applying the fix described in this link:
http://www.openser.org/pipermail/users/2008-August/000259.html
I don't know if there's a permanent fix though.
Best regards,
Santi
Hello,
On 1/27/10 7:14 PM, Santiago Gimeno wrote:
Hi Antonio,
2010/1/27 Antonio Reale <ant.reale@gmail.com mailto:ant.reale@gmail.com>
I have a similar problem with latest git version, no compilation error. Here's the error starting kamailio: kamailio: ERROR: <core> [sr_module.c:390]: ERROR: load_module: could not open module </usr/local/lib/kamailio/modules_k/snmpstats.so>: /usr/lib64/libnetsnmpagent.so.10: undefined symbol: boot_DynaLoader
googling it I understood it is an issue with net-snmp packaging on x86_64, due to dependency on perl library. Try adding line:
LIBS+= -lperl
in module's Makefile and recompile.
Cheers, Daniel
2010/1/27 Daniel-Constantin Mierla miconda@gmail.com:
Hello,
googling it I understood it is an issue with net-snmp packaging on x86_64, due to dependency on perl library. Try adding line:
LIBS+= -lperl
in module's Makefile and recompile.
Hi Daniel, tried with your suggestion: during compilation I got the error /usr/bin/ld: cannot find -lperl so I soft linked libperl.so. After that the compilation was successful, but nothing changed starting kamailio. Just one note.. on the same machine kamailio 1.4.4 was OK with snmpstats. If can help, I attached the output of ldd (as you suggest in a previous post): http://pastebin.com/m48e6bb60
Cheers, Daniel
Thank you very much. Regards.
2010/1/27 Santiago Gimeno santiago.gimeno@gmail.com:
Hi Antonio,
I solved that problem applying the fix described in this link:
http://www.openser.org/pipermail/users/2008-August/000259.html
I don't know if there's a permanent fix though.
Hi Santiago, already tried that fix. The undefined symbol boot_DynaLoader disappear, but then I got: 0(2976) ERROR: <core> [sr_module.c:390]: ERROR: load_module: could not open module </usr/local/lib/kamailio/modules_k/snmpstats.so>: /usr/lib64/libnetsnmpagent.so.10: undefined symbol: hosts_ctl
so it was not a really fix for me. I'll try with a different NET-SNMP version. Thanks.
Best regards,
Santi
Regards,