[Home]

Summary:ASTERISK-24567: Error loading module 'res_monitor.so': /usr/lib64/asterisk/modules/res_monitor.so: undefined symbol: __ast_beep_stop
Reporter:Rudolf Faix (rudolf.faix)Labels:
Date Opened:2014-11-29 23:13:20.000-0600Date Closed:2015-03-15 14:34:39
Priority:TrivialRegression?
Status:Closed/CompleteComponents:Resources/res_monitor
Versions:13.0.1 Frequency of
Occurrence
Related
Issues:
is duplicated byASTERISK-25554 confusing module loading errors on startup
Environment:openSUSE 13.1 (Bottle) (x86_64)Attachments:
Description:Module does not load for the reason of an undefined symbol. The error message from the messages file is:
loader.c: Error loading module 'res_monitor.so': /usr/lib64/asterisk/modules/res_monitor.so: undefined symbol: __ast_beep_stop
Comments:By: Matt Jordan (mjordan) 2014-12-02 13:36:00.647-0600

It actually does load:

{noformat}
[Dec  2 13:34:51] NOTICE[17506]: loader.c:1323 load_modules: 281 modules will be loaded.
[Dec  2 13:34:51] WARNING[17506]: loader.c:522 load_dynamic_module: Error loading module 'res_monitor.so': /usr/lib/asterisk/modules/res_monitor.so: undefined symbol: __ast_beep_stop

...

*CLI> module show like res_monitor
Module                         Description                              Use Count  Status      Support Level
res_monitor.so                 Call Monitoring Resource                 0          Running              core
1 modules loaded
*CLI>
{noformat}

The symbol fails to be found due to global symbol resolution and optional API goofiness in the module loader. When the module is actually loaded with all of its dependencies present - which occurs later - it loads successfully.



By: Dmitriy Serov (Demon) 2015-02-20 09:23:39.310-0600

loading func_periodic_hook.so fixed problem

By: Joshua C. Colp (jcolp) 2015-03-15 14:34:39.928-0500

Due to the module loader and dependencies it may appear that a symbol resolution issue exists but once things are loaded it is resolved. Until the module loader is changed this harmless error may occur.

By: Scott Pabin (tuxd00d) 2015-04-14 16:47:55.108-0500

For the benefit of those searching for a temporary hiding of this message, as Mr. Serov implied, add a preload of func_periodic_hook.so to modules.conf.
{code:title=modules.conf|borderStyle=solid}
...
preload => res_odbc.so
preload => res_config_odbc.so
preload => res_realtime.so
...
preload => func_periodic_hook.so ; https://issues.asterisk.org/jira/browse/ASTERISK-24567
...
{code}

By: Max (god) 2015-11-19 08:50:51.925-0600

I wouldn't call this issue harmless: it produces massive amounts of useless error messages which clutter the logs and effectively hide actual error. This makes troubleshooting much harder than it should be.