Asterisk fails to load modules when compiled with ssp (default for hardened profile). Compiling without ssp via gcc-config makes things work. The issue appears to be that adsi.h does not mark it's functions as weak references. Here's a sample log message Jul 29 13:09:32 WARNING[3540]: /usr/lib/asterisk/modules/res_features.so: undefined symbol: adsi_available Jul 29 13:09:32 WARNING[3540]: Loading module res_features.so failed!
Created attachment 64611 [details, diff] asterisk-weak-reference.patch This patch marks extern functions in adsi.h as weak, which enables the module to load correctly when compiled with ssp
took some time to get a hardened chroot up and running, works fine here too, applied to 1.0.8 and 1.0.9, thanks a lot for discovering the root cause and creating the patch :)
Thanks should really goto solar as he kinda pointed me in the right direction :)