WARNING: this is an automatic post retrieved from the Asterisk-Users Mailing List, not an authored post
Mailing-list Collector
April 12, 2012
Asterisk-Users
Tags: asterisk, error loading module, resource module, undefined symbol
On 4/12/2012 3:09 PM, Patrick Lists wrote:
> On 04/12/2012 09:09 PM, Brent Davidson wrote:
>> I’m trying to get app_swift (app_swift-2.1-b1-ast10) working with
>> Asterisk 10.2.1 on Ubuntu Server 11.10. Everything appears to compile
>> correctly, but when I go to load the module I get the following:
>>
>> server*CLI> module load app_swift.so
>> Unable to load module app_swift.so
>> Command ‘module load app_swift.so’ failed.
>> [Apr 12 13:42:50] WARNING[1200]: loader.c:458 load_dynamic_module: Error
>> loading module ‘app_swift.so’: /usr/lib/asterisk/modules/app_swift.so:
>> undefined symbol: swift_port_close
>> [Apr 12 13:42:50] WARNING[1200]: loader.c:848 load_resource: Module
>> ‘app_swift.so’ could not be loaded.
>
> Maybe app_swift can not find the Cepstral library? It should show up
> in the output of the command ldconfig -v. If it can’t be found then
> you should probably add a config file pointing to the location of the
> Cepstral lib in /etc/ld.so.conf.d (that’s on Red Hat. I have no idea
> about Ubuntu).
>
> Regards,
> Patrick
I have /opt/swift in cepstral.conf in ld.conf.so.d. It finds the
library just fine on the command line and ldconfig -v gives me:
/opt/swift/lib:
libswift.so.5 -> libswift.so.5.1
libceplang_en.so.5 -> libceplang_en.so.5.1
libceplex_us.so.5 -> libceplex_us.so.5.1
It almost looks like Asterisk is not seeing the libraries for some
reason. I’m trying recompiling Asterisk now that Cepstral is installed
to see if that helps.