[Asterisk-Users] Re: rate-engine loading error

Glynn Condez glynn at itextron.com
Sun Aug 1 20:57:58 MST 2004


Hi,

Is there a new release of rate-engine that could compile of CVS-head of
asterisk?

thanks


> I compiled rate-engine version rate-engine-0.5.2 with Asterisk
> CVS-HEAD-07/14/04-18:25:12 with some warnings. When I load the asterisk in
> debug mode, I got an error:
> [rate_engine.so]Jul 29 13:51:19 WARNING[1024]: loader.c:242
> ast_load_resource: /usr/lib/asterisk/modules/rate_engine.so: undefined
> symbol: ast_channel_walk
> Jul 29 13:51:19 WARNING[1024]: loader.c:423 load_modules: Loading module
> rate_engine.so failed!
>
> --- the compile warnings ---
>
cc -O3 -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -g -fno-in
>
line-functions -D_REENTRANT -I/usr/include/pcre -DWITH_MYSQL -I/usr/include/
> mysql   -c -o rate_engine.o rate_engine.c
> In file included from /usr/include/asterisk/file.h:17,
>                  from rate_engine.c:28:
> /usr/include/asterisk/channel.h:702: warning: declaration of `clone'
shadows
> global declaration
> In file included from rate_engine.c:28:
> /usr/include/asterisk/file.h:42: warning: declaration of `open' shadows
> global declaration
> /usr/include/asterisk/file.h:44: warning: declaration of `write' shadows
> global declaration
> /usr/include/asterisk/file.h:48: warning: declaration of `read' shadows
> global declaration
> /usr/include/asterisk/file.h:49: warning: declaration of `close' shadows
> global declaration
> /usr/include/asterisk/file.h:137: warning: declaration of `rewind' shadows
> global declaration
> In file included from rate_engine.c:32:
> /usr/include/asterisk/pbx.h:490: warning: declaration of `sync' shadows
> global declaration
> /usr/include/asterisk/pbx.h:494: warning: declaration of `sync' shadows
> global declaration
> In file included from rate_engine.c:36:
> /usr/include/asterisk/manager.h:99: warning: declaration of `description'
> shadows global declaration
> rate_engine.c:60: warning: duplicate `static'
> rate_engine.c: In function `cdr_ratecall':
> rate_engine.c:451: warning: implicit declaration of function
> `ast_channel_walk'
> rate_engine.c:451: warning: assignment makes pointer from integer without
a
> cast
> rate_engine.c:451: warning: assignment makes pointer from integer without
a
> cast
> rate_engine.c: In function `poster_worker':
> rate_engine.c:653: warning: unused parameter `arg'
> rate_engine.c: In function `rates_reload':
> rate_engine.c:1802: warning: unused parameter `argc'
> rate_engine.c:1802: warning: unused parameter `argv'
> rate_engine.c: In function `rates_status':
> rate_engine.c:1814: warning: unused parameter `argc'
> rate_engine.c:1814: warning: unused parameter `argv'
>
cc -O3 -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -g -fno-in
>
line-functions -D_REENTRANT -I/usr/include/pcre -DWITH_MYSQL -I/usr/include/
> mysql   -c -o pcre_subst.o pcre_subst.c
> cc -g -fno-inline-functions -L/usr/lib/mysql -shared -o rate_engine.so
> rate_engine.o pcre_subst.o -lpthread -lmysqlclient -lz -lpcre
>
>
> what should be the problem and how do i fix it?
>
> regards.
>




More information about the asterisk-users mailing list