rate-engine fails to load due to missing symbol

Bug #52290 reported by Robert Collins
8
Affects Status Importance Assigned to Milestone
rate-engine (Ubuntu)
Fix Released
Undecided
Barry deFreese

Bug Description

Trying to load the rate-engine module on a pentium class machine:
loader.c:325 __load_resource: /usr/lib/asterisk/modules/rate_engine.so: undefined symbol: ast_pthread_create
Jul 8 12:56:13 WARNING[4432]: loader.c:554 load_modules: Loading module rate_engine.so failed!

ast_pthread_create is apparently defined in asterisk/utils.h http://lists.digium.com/pipermail/asterisk-dev/2004-October/006532.html - so it should be a public symbol.

I have not tried a trivial rebuild yet.

Revision history for this message
Barry deFreese (bddebian) wrote :

I have just committed an updated package for Feisty. Is there any chance you can test this for me? The package itself may still have issues due to some changes in mutexes. Thank you!

Changed in rate-engine:
assignee: nobody → bddebian
status: Unconfirmed → Needs Info
Revision history for this message
Charles Lepple (clepple) wrote :

I also saw the same bug as Robert when running edgy, and now when I install asterisk-rate-engine on feisty, I get a similar error message:

Apr 7 15:59:24 WARNING[8002] loader.c: /usr/lib/asterisk/modules/rate_engine.so: undefined symbol: ast_load
Apr 7 15:59:24 WARNING[8002] loader.c: Loading module rate_engine.so failed!

versions:
asterisk-rate-engine 0.5.5-1ubuntu1
asterisk 1.2.16~dfsg-1ubuntu3

Revision history for this message
Barry deFreese (bddebian) wrote :

Hi,

Is there any chance you could test this .deb for me? I don't know much about asterisk so I'm not quite sure how to test it all effectively.

http://www2.bddebian.com:8000/OLD/packages/ubuntu/rate-engine/asterisk-rate-engine_0.5.5-1ubuntu2_i386.deb

Thanks!

Barry

Revision history for this message
Jens Gecius (gmaniac) wrote :

I see the same bug with ast_load on rate-enginve. With your (new) deb, it now gives me a problem with ast_destroy:

Apr 29 22:32:56 WARNING[28553] loader.c: /usr/lib/asterisk/modules/rate_engine.so: undefined symbol: ast_destroy
Apr 29 22:32:56 WARNING[28553] loader.c: Loading module rate_engine.so failed!

Sorry to interrupt, but I see the same problem with missing, respectively not properly exported symbols with other modules, as well:

https://bugs.launchpad.net/ubuntu/+source/asterisk-chan-capi/+bug/109499

also this one seems to be related

https://bugs.launchpad.net/ubuntu/+source/asterisk-chan-misdn/+bug/51175

Although, the problem started at mine with upgrade to Feisty.

I even rebuild asterisk-classic as well as asterisk-bristuff and chan_capi locally, but to no avail.

How can be ensured that all symbols are properly exported?

Revision history for this message
Barry deFreese (bddebian) wrote :

gmanic,

Are you sure it's the exact same error? I changed ast_load to ast_config_load() so that hardly seems possible. I'm not sure about the other bugs you mention but it doesn't surprise me. The asterisk api has changed significantly. Thanks.

Revision history for this message
Jens Gecius (gmaniac) wrote :

Barry,

it's the same in the sense that another symbol pops up (here: ast_destroy) that seems not to be exported.

This is what I see as common for this bug as well as mine (109599) - some symbol which is not properly exported.
According to the source, the name for that function is available, but somewhere between compiling and linking it seems to get "lost".

I'm just desparately trying to get asterisk to work again.

Hope this helps. If you need anything tried out, let me know, I'll check it. If you need more info, tell me what I should do and I do it (well, not everything, e.g. jumping the window... ;-).

Thanks,
 Jens

Revision history for this message
Charles Lepple (clepple) wrote : Re: [Bug 52290] Re: rate-engine fails to load due to missing symbol

On 4/27/07, Barry deFreese <email address hidden> wrote:
> Hi,
>
> Is there any chance you could test this .deb for me? I don't know much
> about asterisk so I'm not quite sure how to test it all effectively.
>
> http://www2.bddebian.com:8000/OLD/packages/ubuntu/rate-engine/asterisk-
> rate-engine_0.5.5-1ubuntu2_i386.deb

I get what seems to be the same message as Jens with this package, and
a recently updated feisty box:

May 1 23:03:37 WARNING[24911] loader.c:
/usr/lib/asterisk/modules/rate_engine.so: undefined symbol:
ast_destroy
May 1 23:03:37 WARNING[24911] loader.c: Loading module rate_engine.so failed!

As far as testing is concerned, I don't think you need to set up any
configuration files. By default, asterisk loads all the modules it can
(minus a few exceptions listed in /etc/asterisk/modules.conf) so you
can probably do a preliminary test just by installing the core
asterisk package along with asterisk-rate-engine and its dependencies.

--
- Charles Lepple

Revision history for this message
Barry deFreese (bddebian) wrote :

This is fixed in my upload to Gutsy, however it still errors on a misconfigured MySQL but it doesn't appear that this package is intended to configure it so I'm closing this bug. If you need this for feisty, it will build and run fine in Feisty as well. Thank you for your report!

Changed in rate-engine:
status: Needs Info → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.