Asterisk - shared object libperl.so not found
During startup of Asterisk a module (res_snmp.so) cannot be loaded, because the shared object "libperl.so" is not found.
After installing Asterisk package version 0.3.4 on pfSense 2.2.6 every time when Asterisk was re-/started two error messages were logged in Status->Asterisk->Log:
[Jan 3 12:55:21] WARNING[-1] loader.c: Error loading module 'res_snmp.so': Shared object "libperl.so" not found, required by "libnetsnmpmibs.so.30" [Jan 3 12:55:21] WARNING[-1] loader.c: Module 'res_snmp.so' could not be loaded.
and the module 'res_snmp.so' was not loaded.
For a reboot persistent workaround a symbolic can be created:
ln -s /usr/pbi/asterisk-amd64/local/lib/perl5/5.18/mach/CORE/libperl.so /usr/pbi/asterisk-amd64/local/lib/libperl.so
This has to be done only once. I don't know where a good place is to do this during the installation of the package.
Either find an installation script inside the package and insert the above command
the modules has to be recompiled/linked in another way.
Please fix this in the next package version of Asterisk (0.3.5?). Thank you again.
In case the module 'res_snmp.so' isn't used for anything in this package it should be removed. Nobody likes unnecessary warning and error messages in the log.