Undefined Symbols

Home » Asterisk Users » Undefined Symbols
Asterisk Users 2 Comments

Hi,

I compiled Asterisk 10.7.0 with gcc-4.5.3 and at runtime I’m getting these warnings:

loader.c: Error loading module ‘chan_dahdi.so’: /usr/lib/asterisk/modules/chan_dahdi.so: undefined symbol: ast_smdi_interface_unref loader.c: Error loading module ‘app_stack.so’: /usr/lib/asterisk/modules/app_stack.so: undefined symbol: ast_agi_unregister loader.c: Error loading module ‘pbx_ael.so’: /usr/lib/asterisk/modules/pbx_ael.so: undefined symbol: ast_compile_ael2
loader.c: Error loading module ‘app_voicemail.so’: /usr/lib/asterisk/modules/app_voicemail.so: undefined symbol: ast_smdi_mwi_message_destroy loader.c: Error loading module ‘res_fax_spandsp.so’: /usr/lib/asterisk/modules/res_fax_spandsp.so: undefined symbol: ast_fax_tech_register loader.c: Error loading module ‘res_agi.so’: /usr/lib/asterisk/modules/res_agi.so: undefined symbol: ast_speech_start loader.c: Error loading module ‘chan_gtalk.so’: /usr/lib/asterisk/modules/chan_gtalk.so: undefined symbol: ast_aji_get_client loader.c: Error loading module ‘chan_mgcp.so’: /usr/lib/asterisk/modules/chan_mgcp.so: undefined symbol: ast_pktccops_gate_alloc loader.c: Error loading module ‘cdr_adaptive_odbc.so’: /usr/lib/asterisk/modules/cdr_adaptive_odbc.so: undefined symbol: SQLFetch loader.c: Error loading module ‘cdr_odbc.so’: /usr/lib/asterisk/modules/cdr_odbc.so: undefined symbol: SQLRowCount loader.c: Error loading module ‘cel_odbc.so’: /usr/lib/asterisk/modules/cel_odbc.so: undefined symbol

Any ideas?

Thanks,

Vieri

2 thoughts on - Undefined Symbols

  • Usually, this is an indication that you have a missing (or out-of-date)
    developer’s package for some required main package. Has any version of Asterisk ever built successfully on this machine?

  • Never mind.

    In order to fix those undefined symbols at startup, I needed to preload the following modules:

    [modules]
    autoload=yes preload => res_ael_share.so preload => res_speech.so preload => res_agi.so preload => res_smdi.so preload => res_odbc.so preload => res_fax.so preload => res_pktccops.so preload => res_jabber.so

    Vieri