List Info

Thread: chan_capi.so not loading on Asterisk 1.4.8




chan_capi.so not loading on Asterisk 1.4.8
user name
2007-07-24 13:52:18
Hi,

Used the header trick (changed 010408 in 010407) to get the chan_capi to compile on FreeBSD 6.2 stable. But asterisk 1.4.8 (current port version) 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.

Found a few posts that relate this error to a certain cdr_mysql logging module, but on my setup here there is no mysql logging.

Can anyone help me out here? Thanks in advance,

Frank Versteurs
Re: chan_capi.so not loading on Asterisk 1.4.8
user name
2007-07-24 14:05:19
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__&quo
t;
> [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.

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-bsd

Re: chan_capi.so not loading on Asterisk 1.4.8
user name
2007-07-25 04:06:50
Hans Petter,

> I've just updated chan_capi for Asterisk 1.4.8 . All
version numbers were
> converted to hex.
>

Reverted and updated, everything looks good.

Thanks for updating that,
-Michael I.

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-bsd

Re: chan_capi.so not loading on Asterisk 1.4.8
country flaguser name
Norway
2007-07-25 04:41:16
On Wednesday 25 July 2007, Michael Iedema wrote:
> Hans Petter,
>
> > I've just updated chan_capi for Asterisk 1.4.8 .
All version numbers were
> > converted to hex.
>
> Reverted and updated, everything looks good.
>
> Thanks for updating that,
> -Michael I.

I will get back to your logs later today.

--HPS

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-bsd

Re: chan_capi.so not loading on Asterisk 1.4.8
user name
2007-07-26 13:36:42
Hi,

Used the header trick + changed the localtime_r function into the ast_localtime and chan_capi is now working like a charm on 6.2. Thanks! Sticking to this version for now.

Thanks,

Frank Versteurs
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )