[Asterisk-bsd] chan_capi.so not loading on Asterisk 1.4.8

Michael Iedema michael at askozia.com
Tue Jul 24 14:05:19 CDT 2007


Frank,

> can't load the module and gives the following error:
>
> [Jul 24 20:46:49] WARNING[2518]: loader.c:413 load_dynamic_module: Error
> loading module 'chan_capi.so':
> /usr/local/lib/asterisk/modules/chan_capi.so: Undefined
> symbol "__dont_use_localtime_r_use_ast_localtime_instead__"
> [Jul 24 20:46:49] WARNING[2518]: loader.c:637 load_resource: Module
> 'chan_capi.so' could not be loaded.

You need to find this line:

if (localtime_r(&t, &tm)) {

...and replace it with this one

if (ast_localtime(&t, &tm, NULL)) {


That did it for me, hope that helps,
-Michael I.



More information about the Asterisk-BSD mailing list