[asterisk-bugs] [JIRA] (ASTERISK-17608) func_aes.so cannot be loaded if res_crypto / openssl not compiled

Corey Farrell (JIRA) noreply at issues.asterisk.org
Sat Apr 4 07:21:32 CDT 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-17608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225776#comment-225776 ] 

Corey Farrell commented on ASTERISK-17608:
------------------------------------------

I've posted fixes for trunk (and possibly 13) to https://reviewboard.asterisk.org/r/4590/.  Once I get feedback I will determine the correct way to deal with 11 and 13.  Version 1.8 is in security fix only mode so no fix will be provided for that branch.

> func_aes.so cannot be loaded if res_crypto / openssl not compiled
> -----------------------------------------------------------------
>
>                 Key: ASTERISK-17608
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-17608
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Functions/General
>    Affects Versions: 1.8.3
>            Reporter: Warren Selby
>            Severity: Minor
>
> Just built a new asterisk system from scratch, and did not install the openssl-devel package.  I was able to successfully run ./configure, and then make menuselect allowed me to select fun_aes, but not res_crypto.  I then completed my compile and install (make, make install, make samples, make config) and then started asterisk with 'asterisk -cvvvvv' from the command line and was presented with the following error:
> [Mar 25 15:07:07] WARNING[3900]: loader.c:387 load_dynamic_module: Error loading module 'res_crypto': /usr/lib/asterisk/modules/res_crypto.so: cannot open shared object file: No such file or directory
> [Mar 25 15:07:07] WARNING[3900]: loader.c:449 load_dynamic_module: Error loading module 'func_aes.so': /usr/lib/asterisk/modules/func_aes.so: undefined symbol: ast_aes_set_decrypt_key
> [Mar 25 15:07:07] WARNING[3900]: loader.c:839 load_resource: Module 'func_aes.so' could not be loaded.
> I then installed openssl-devel, then re-ran ./configure, make menuselect (at which point I chose to install res_crypto), then re-installed (make, make install), and started asterisk again with 'asterisk -cvvvvv' and the error was gone, func_aes properly loads.
> This issue also appears to affect the following modules: chan_iax2.so, pbx_dundi.so, chan_mgcp.so.  These modules are all compilable without res_crypto, but they will fail to load when starting asterisk.  I would suggest marking res_crypto as a dependency on all of these modules before allowing them to be compiled via make menuselect.
> ****** ADDITIONAL INFORMATION ******
> Errors generated by default install of asterisk without res_crypto / openssl.
> [Mar 25 15:07:07] WARNING[3900]: loader.c:387 load_dynamic_module: Error loading module 'res_crypto': /usr/lib/asterisk/modules/res_crypto.so: cannot open shared object file: No such file or directory
> [Mar 25 15:07:07] WARNING[3900]: loader.c:387 load_dynamic_module: Error loading module 'res_pktccops': /usr/lib/asterisk/modules/res_pktccops.so: cannot open shared object file: No such file or directory
> [Mar 25 15:07:07] WARNING[3900]: loader.c:449 load_dynamic_module: Error loading module 'chan_mgcp.so': /usr/lib/asterisk/modules/chan_mgcp.so: undefined symbol: ast_pktccops_gate_alloc
> [Mar 25 15:07:07] WARNING[3900]: loader.c:839 load_resource: Module 'chan_mgcp.so' could not be loaded.
> [Mar 25 15:07:07] WARNING[3900]: loader.c:387 load_dynamic_module: Error loading module 'res_crypto': /usr/lib/asterisk/modules/res_crypto.so: cannot open shared object file: No such file or directory
> [Mar 25 15:07:07] WARNING[3900]: loader.c:449 load_dynamic_module: Error loading module 'pbx_dundi.so': /usr/lib/asterisk/modules/pbx_dundi.so: undefined symbol: ast_check_signature_bin
> [Mar 25 15:07:07] WARNING[3900]: loader.c:839 load_resource: Module 'pbx_dundi.so' could not be loaded.
> [Mar 25 15:07:07] WARNING[3900]: loader.c:387 load_dynamic_module: Error loading module 'res_crypto': /usr/lib/asterisk/modules/res_crypto.so: cannot open shared object file: No such file or directory
> [Mar 25 15:07:07] WARNING[3900]: loader.c:449 load_dynamic_module: Error loading module 'chan_iax2.so': /usr/lib/asterisk/modules/chan_iax2.so: undefined symbol: ast_aes_set_decrypt_key
> [Mar 25 15:07:07] WARNING[3900]: loader.c:839 load_resource: Module 'chan_iax2.so' could not be loaded.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list