[CRIT] switch_loadable_module.c:928 Error loading module ...
With FreeSWITCH Version 1.0.head (git-9795dd2 2011-03-26 11-07-34 -0500) and many versions before, I noticed (but forgot to report) the following error messages if I enable some of the modules, i.e. mod_erlang_event, mod_lcr, etc., even though I have successfully cross compiled the modules and installed. I don't know if this has anything to do with a cross compilation. 2011-03-26 14:32:36.251260 [CRIT] switch_loadable_module.c:928 Error Loading module /usr/lib/freeswitch/mod_erlang_event.so **Unknown error** 2011-03-26 14:32:43.288400 [CRIT] switch_loadable_module.c:928 Error Loading module /usr/lib/freeswitch/mod_lcr.so **Module load routine returned an error** I have both modules compiled and installed as seen below. The corrupted section header size trailing message returned by file utility is harmless, AFAICT. Otherwise, the /usr/bin/freeswitch and among other programs listed below, i.e. busybox and dropbear, won't even run. root@DockStar:/# ls -l /usr/lib/freeswitch/mod_erlang_event.so /usr/lib/freeswitch/mod_lcr.so -rwxr-xr-x 1 root root 58794 Mar 26 14:00 /usr/lib/freeswitch/mod_erlang_event.so -rwxr-xr-x 1 root root 39814 Mar 26 14:00 /usr/lib/freeswitch/mod_lcr.so root@DockStar:/# file /usr/lib/freeswitch/mod_erlang_event.so /usr/lib/freeswitch/mod_lcr.so /usr/lib/freeswitch/mod_sofia.so /bin/busybox /usr/sbin/dropbear /usr/bin/freeswitch /usr/lib/freeswitch/mod_erlang_event.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, corrupted section header size /usr/lib/freeswitch/mod_lcr.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, corrupted section header size /usr/lib/freeswitch/mod_sofia.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, corrupted section header size /bin/busybox: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), corrupted section header size /usr/sbin/dropbear: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), corrupted section header size /usr/bin/freeswitch: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), corrupted section header size root@DockStar:/# ----- FreeSWITCH hosted on a Seagate DockStar with OpenWRT. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/CRIT-switch-loadable-module-c-... Sent from the freeswitch-users mailing list archive at Nabble.com.
Are there any other messages before the CRIT lines? More context would be useful. It could be that it's loading, but failing to load a dependancy or config file. -Steve On 26 March 2011 19:23, mazilo <Nabble@slickdeals.endjunk.com> wrote:
With FreeSWITCH Version 1.0.head (git-9795dd2 2011-03-26 11-07-34 -0500) and many versions before, I noticed (but forgot to report) the following error messages if I enable some of the modules, i.e. mod_erlang_event, mod_lcr, etc., even though I have successfully cross compiled the modules and installed. I don't know if this has anything to do with a cross compilation. 2011-03-26 14:32:36.251260 [CRIT] switch_loadable_module.c:928 Error Loading module /usr/lib/freeswitch/mod_erlang_event.so **Unknown error** 2011-03-26 14:32:43.288400 [CRIT] switch_loadable_module.c:928 Error Loading module /usr/lib/freeswitch/mod_lcr.so **Module load routine returned an error**
I have both modules compiled and installed as seen below. The corrupted section header size trailing message returned by file utility is harmless, AFAICT. Otherwise, the /usr/bin/freeswitch and among other programs listed below, i.e. busybox and dropbear, won't even run. root@DockStar:/# ls -l /usr/lib/freeswitch/mod_erlang_event.so /usr/lib/freeswitch/mod_lcr.so -rwxr-xr-x 1 root root 58794 Mar 26 14:00 /usr/lib/freeswitch/mod_erlang_event.so -rwxr-xr-x 1 root root 39814 Mar 26 14:00 /usr/lib/freeswitch/mod_lcr.so root@DockStar:/# file /usr/lib/freeswitch/mod_erlang_event.so /usr/lib/freeswitch/mod_lcr.so /usr/lib/freeswitch/mod_sofia.so /bin/busybox /usr/sbin/dropbear /usr/bin/freeswitch /usr/lib/freeswitch/mod_erlang_event.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, corrupted section header size /usr/lib/freeswitch/mod_lcr.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, corrupted section header size /usr/lib/freeswitch/mod_sofia.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, corrupted section header size /bin/busybox: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), corrupted section header size /usr/sbin/dropbear: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), corrupted section header size /usr/bin/freeswitch: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), corrupted section header size root@DockStar:/#
----- FreeSWITCH hosted on a Seagate DockStar with OpenWRT. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/CRIT-switch-loadable-module-c-... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
For the 1st error, here is the leading messages before the error message: 2011-03-26 14:32:36.143317 [NOTICE] switch_loadable_module.c:212 Adding Dialplan 'enum' 2011-03-26 14:32:36.143756 [NOTICE] switch_loadable_module.c:252 Adding Application 'enum' 2011-03-26 14:32:36.144259 [NOTICE] switch_loadable_module.c:274 Adding API Function 'enum' 2011-03-26 14:32:36.144820 [NOTICE] switch_loadable_module.c:274 Adding API Function 'enum_auto' 2011-03-26 14:32:36.193681 [NOTICE] mod_xml_cdr.c:99 Rotating log file paths 2011-03-26 14:32:36.193799 [NOTICE] mod_xml_cdr.c:126 Setting log file path to /var/log/freeswitch/xml_cdr 2011-03-26 14:32:36.193927 [NOTICE] mod_xml_cdr.c:164 Setting err log file path to /var/log/freeswitch/xml_cdr 2011-03-26 14:32:36.205563 [DEBUG] mod_cdr_csv.c:321 Adding default template. 2011-03-26 14:32:36.205748 [DEBUG] mod_cdr_csv.c:368 Adding template sql. 2011-03-26 14:32:36.205895 [DEBUG] mod_cdr_csv.c:368 Adding template example. 2011-03-26 14:32:36.206038 [DEBUG] mod_cdr_csv.c:368 Adding template snom. 2011-03-26 14:32:36.206177 [DEBUG] mod_cdr_csv.c:368 Adding template linksys. 2011-03-26 14:32:36.206316 [DEBUG] mod_cdr_csv.c:368 Adding template asterisk. 2011-03-26 14:32:36.211749 [DEBUG] mod_cdr_sqlite.c:198 Adding default template. 2011-03-26 14:32:36.211921 [DEBUG] mod_cdr_sqlite.c:237 Adding template example. 2011-03-26 14:32:36.213596 [DEBUG] switch_core_sqldb.c:875 SQL ERR [no such table: cdr] [SELECT * FROM cdr LIMIT 1] Auto Generating Table! 2011-03-26 14:32:36.223605 [NOTICE] switch_loadable_module.c:274 Adding API Function 'multicast_peers' 2011-03-26 14:32:36.232992 [NOTICE] switch_loadable_module.c:252 Adding Application 'socket' 2011-03-26 14:32:36.233480 [NOTICE] switch_loadable_module.c:274 Adding API Function 'event_sink' 2011-03-26 14:32:36.251260 [CRIT] switch_loadable_module.c:928 Error Loading module /usr/lib/freeswitch/mod_erlang_event.so **Unknown error** 2011-03-26 14:32:36.279999 [NOTICE] switch_loadable_module.c:359 Adding Directory interface 'ldap' For the 2nd error message, here is the leading messages: 2011-03-26 14:32:43.288115 [ERR] mod_lcr.c:1906 You must have ODBC support in FreeSWITCH to use this module 2011-03-26 14:32:43.288278 [ERR] mod_lcr.c:1907 ./configure --enable-core-odbc-support 2011-03-26 14:32:43.288400 [CRIT] switch_loadable_module.c:928 Error Loading module /usr/lib/freeswitch/mod_lcr.so **Module load routine returned an error** ----- FreeSWITCH hosted on a Seagate DockStar with OpenWRT. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/CRIT-switch-loadable-module-c-... Sent from the freeswitch-users mailing list archive at Nabble.com.
I don't see any messages indicating the reason for mod_erlang_event, but mod_lcr is easy: 2011-03-26 14:32:43.288115 [ERR] mod_lcr.c:1906 You must have ODBC support in FreeSWITCH to use this module 2011-03-26 14:32:43.288278 [ERR] mod_lcr.c:1907 ./configure --enable-core-odbc-support You must compile in ODBC support to use that module, and you haven't (--enable-core-odbc-support option to configure). It's possible mod_erlang_event is failing for the same reason but not logging the reason. Compile in ODBC support and then see if you're still unable to load that module. -Steve On 27 March 2011 04:19, mazilo <Nabble@slickdeals.endjunk.com> wrote:
For the 1st error, here is the leading messages before the error message: 2011-03-26 14:32:36.143317 [NOTICE] switch_loadable_module.c:212 Adding Dialplan 'enum' 2011-03-26 14:32:36.143756 [NOTICE] switch_loadable_module.c:252 Adding Application 'enum' 2011-03-26 14:32:36.144259 [NOTICE] switch_loadable_module.c:274 Adding API Function 'enum' 2011-03-26 14:32:36.144820 [NOTICE] switch_loadable_module.c:274 Adding API Function 'enum_auto' 2011-03-26 14:32:36.193681 [NOTICE] mod_xml_cdr.c:99 Rotating log file paths 2011-03-26 14:32:36.193799 [NOTICE] mod_xml_cdr.c:126 Setting log file path to /var/log/freeswitch/xml_cdr 2011-03-26 14:32:36.193927 [NOTICE] mod_xml_cdr.c:164 Setting err log file path to /var/log/freeswitch/xml_cdr 2011-03-26 14:32:36.205563 [DEBUG] mod_cdr_csv.c:321 Adding default template. 2011-03-26 14:32:36.205748 [DEBUG] mod_cdr_csv.c:368 Adding template sql. 2011-03-26 14:32:36.205895 [DEBUG] mod_cdr_csv.c:368 Adding template example. 2011-03-26 14:32:36.206038 [DEBUG] mod_cdr_csv.c:368 Adding template snom. 2011-03-26 14:32:36.206177 [DEBUG] mod_cdr_csv.c:368 Adding template linksys. 2011-03-26 14:32:36.206316 [DEBUG] mod_cdr_csv.c:368 Adding template asterisk. 2011-03-26 14:32:36.211749 [DEBUG] mod_cdr_sqlite.c:198 Adding default template. 2011-03-26 14:32:36.211921 [DEBUG] mod_cdr_sqlite.c:237 Adding template example. 2011-03-26 14:32:36.213596 [DEBUG] switch_core_sqldb.c:875 SQL ERR [no such table: cdr] [SELECT * FROM cdr LIMIT 1] Auto Generating Table! 2011-03-26 14:32:36.223605 [NOTICE] switch_loadable_module.c:274 Adding API Function 'multicast_peers' 2011-03-26 14:32:36.232992 [NOTICE] switch_loadable_module.c:252 Adding Application 'socket' 2011-03-26 14:32:36.233480 [NOTICE] switch_loadable_module.c:274 Adding API Function 'event_sink' 2011-03-26 14:32:36.251260 [CRIT] switch_loadable_module.c:928 Error Loading module /usr/lib/freeswitch/mod_erlang_event.so **Unknown error** 2011-03-26 14:32:36.279999 [NOTICE] switch_loadable_module.c:359 Adding Directory interface 'ldap'
For the 2nd error message, here is the leading messages: 2011-03-26 14:32:43.288115 [ERR] mod_lcr.c:1906 You must have ODBC support in FreeSWITCH to use this module 2011-03-26 14:32:43.288278 [ERR] mod_lcr.c:1907 ./configure --enable-core-odbc-support 2011-03-26 14:32:43.288400 [CRIT] switch_loadable_module.c:928 Error Loading module /usr/lib/freeswitch/mod_lcr.so **Module load routine returned an error**
----- FreeSWITCH hosted on a Seagate DockStar with OpenWRT. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/CRIT-switch-loadable-module-c-... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
mazilo
-
Steven Ayre