[asterisk-bugs] [Asterisk 0019026]: func_aes.so cannot be loaded if res_crypto / openssl not compiled

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Mar 25 22:43:28 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19026 
====================================================================== 
Reported By:                wcselby
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   19026
Category:                   Functions/General
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.8.3.2 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-03-25 15:53 CDT
Last Modified:              2011-03-25 22:43 CDT
====================================================================== 
Summary:                    func_aes.so cannot be loaded if res_crypto / openssl
not compiled
Description: 
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.
====================================================================== 

---------------------------------------------------------------------- 
 (0133121) wcselby (reporter) - 2011-03-25 22:43
 https://issues.asterisk.org/view.php?id=19026#c133121 
---------------------------------------------------------------------- 
CentOS 5.5, gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)

I did a clean install of CentOS 5.5, then did a yum install gcc gcc-c++,
so it's the current CentOS repository version of gcc. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-25 22:43 wcselby        Note Added: 0133121                          
======================================================================




More information about the asterisk-bugs mailing list