I am planning an upgrade from openser 1.3.4 to kamailio 1.4.3, and I am having an issue starting kamailio with snmpstats enabled. I find the errors below in the kamailio syslog file. It looks like the root issue is a missing symbol, but I have not been able to figure out what provides the symbol.
Openser 1.3.4 works fine on the same machine with essentially the same configuration that I am wanting to use for kamailio. The snmpstats.so module compiled without any errors, and is located in the /lib/ kamailio/modules/ directory. The system is fedora core 6 fully yum updated.
Dec 24 14:24:26 sip-interop-c61-atl kamailio: ERROR:core:sr_load_module: could not open module <//lib/kamailio/ modules/snmpstats.so>: /usr/lib/libnetsnmpagent.so.10: undefined symbol: make_tempfile Dec 24 14:24:26 sip-interop-c61-atl kamailio: CRITICAL:core:yyerror: parse error in config file, line 57, column 13-14: failed to load module Dec 24 14:24:26 sip-interop-c61-atl kamailio: ERROR:core:set_mod_param_regex: no module matching snmpstats found | Dec 24 14:24:26 sip-interop-c61-atl kamailio: CRITICAL:core:yyerror: parse error in config file, line 142, column 20-21: Can't set module parameter Dec 24 14:24:26 sip-interop-c61-atl kamailio: ERROR:core:set_mod_param_regex: no module matching snmpstats found | Dec 24 14:24:26 sip-interop-c61-atl kamailio: CRITICAL:core:yyerror: parse error in config file, line 143, column 20-21: Can't set module parameter Dec 24 14:24:26 sip-interop-c61-atl kamailio: ERROR:core:set_mod_param_regex: no module matching snmpstats found | Dec 24 14:24:26 sip-interop-c61-atl kamailio: CRITICAL:core:yyerror: parse error in config file, line 144, column 20-21: Can't set module parameter Dec 24 14:24:26 sip-interop-c61-atl kamailio: ERROR:core:set_mod_param_regex: no module matching snmpstats found | Dec 24 14:24:26 sip-interop-c61-atl kamailio: CRITICAL:core:yyerror: parse error in config file, line 145, column 20-21: Can't set module parameter Dec 24 14:24:26 sip-interop-c61-atl kamailio: ERROR:core:main: bad config file (5 errors)
Has anyone seen this error, or something similar?
Thank You Stagg Shelton www.sheltonjohns.com
Hello,
can you paste the output of? ldd -v -d -r /lib/kamailio/modules/snmpstats.so
Thanks, Daniel
On 12/24/08 21:34, Stagg Shelton wrote:
I am planning an upgrade from openser 1.3.4 to kamailio 1.4.3, and I am having an issue starting kamailio with snmpstats enabled. I find the errors below in the kamailio syslog file. It looks like the root issue is a missing symbol, but I have not been able to figure out what provides the symbol.
Openser 1.3.4 works fine on the same machine with essentially the same configuration that I am wanting to use for kamailio. The snmpstats.so module compiled without any errors, and is located in the /lib/ kamailio/modules/ directory. The system is fedora core 6 fully yum updated.
Dec 24 14:24:26 sip-interop-c61-atl kamailio: ERROR:core:sr_load_module: could not open module <//lib/kamailio/ modules/snmpstats.so>: /usr/lib/libnetsnmpagent.so.10: undefined symbol: make_tempfile Dec 24 14:24:26 sip-interop-c61-atl kamailio: CRITICAL:core:yyerror: parse error in config file, line 57, column 13-14: failed to load module Dec 24 14:24:26 sip-interop-c61-atl kamailio: ERROR:core:set_mod_param_regex: no module matching snmpstats found | Dec 24 14:24:26 sip-interop-c61-atl kamailio: CRITICAL:core:yyerror: parse error in config file, line 142, column 20-21: Can't set module parameter Dec 24 14:24:26 sip-interop-c61-atl kamailio: ERROR:core:set_mod_param_regex: no module matching snmpstats found | Dec 24 14:24:26 sip-interop-c61-atl kamailio: CRITICAL:core:yyerror: parse error in config file, line 143, column 20-21: Can't set module parameter Dec 24 14:24:26 sip-interop-c61-atl kamailio: ERROR:core:set_mod_param_regex: no module matching snmpstats found | Dec 24 14:24:26 sip-interop-c61-atl kamailio: CRITICAL:core:yyerror: parse error in config file, line 144, column 20-21: Can't set module parameter Dec 24 14:24:26 sip-interop-c61-atl kamailio: ERROR:core:set_mod_param_regex: no module matching snmpstats found | Dec 24 14:24:26 sip-interop-c61-atl kamailio: CRITICAL:core:yyerror: parse error in config file, line 145, column 20-21: Can't set module parameter Dec 24 14:24:26 sip-interop-c61-atl kamailio: ERROR:core:main: bad config file (5 errors)
Has anyone seen this error, or something similar?
Thank You Stagg Shelton www.sheltonjohns.com
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
On Wed, December 24, 2008 8:34 pm, Stagg Shelton wrote:
Openser 1.3.4 works fine on the same machine with essentially the same configuration that I am wanting to use for kamailio. The snmpstats.so module compiled without any errors, and is located in the /lib/ kamailio/modules/ directory. The system is fedora core 6 fully yum updated.
Dec 24 14:24:26 sip-interop-c61-atl kamailio: ERROR:core:sr_load_module: could not open module <//lib/kamailio/ modules/snmpstats.so>: /usr/lib/libnetsnmpagent.so.10: undefined symbol: make_tempfile
Hi Stagg,
they were some minor changes in the snmpstats Makefile from 1.3 branch to 1.4 if i remember correctly, to remove some unused libraries from the linking (this was reported from lintian on debian). Aparently some systems have a different library structure, as i needed to revert some of this changes in certain areas in the past months(e.g. utilities dir on solaris).
In the 1.4 branch there is a new line in the Makefile: BUILDAGENTLIBS:=$(filter-out %netsnmpmibs, $(BUILDAGENTLIBS))
perhaps you can remove this line and try to test again?
Cheers,
Henning
I ended up rebuilding my test system as fedora core 8 which more closely matches my production system. Kamailio and snmpstats appears to be operating as expected.
Thanks Stagg
On Dec 28, 2008, at 6:51 AM, Henning Westerholt wrote:
On Wed, December 24, 2008 8:34 pm, Stagg Shelton wrote:
Openser 1.3.4 works fine on the same machine with essentially the same configuration that I am wanting to use for kamailio. The snmpstats.so module compiled without any errors, and is located in the /lib/ kamailio/modules/ directory. The system is fedora core 6 fully yum updated.
Dec 24 14:24:26 sip-interop-c61-atl kamailio: ERROR:core:sr_load_module: could not open module <//lib/kamailio/ modules/snmpstats.so>: /usr/lib/libnetsnmpagent.so.10: undefined symbol: make_tempfile
Hi Stagg,
they were some minor changes in the snmpstats Makefile from 1.3 branch to 1.4 if i remember correctly, to remove some unused libraries from the linking (this was reported from lintian on debian). Aparently some systems have a different library structure, as i needed to revert some of this changes in certain areas in the past months(e.g. utilities dir on solaris).
In the 1.4 branch there is a new line in the Makefile: BUILDAGENTLIBS:=$(filter-out %netsnmpmibs, $(BUILDAGENTLIBS))
perhaps you can remove this line and try to test again?
Cheers,
Henning