Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100697 - asterisk fails to load modules when compiled with ssp
Summary: asterisk fails to load modules when compiled with ssp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefan Knoblich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 85655
  Show dependency tree
 
Reported: 2005-07-29 05:52 UTC by Roy Marples (RETIRED)
Modified: 2005-07-31 04:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
asterisk-weak-reference.patch (asterisk-weak-reference.patch,8.21 KB, patch)
2005-07-29 05:54 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roy Marples (RETIRED) gentoo-dev 2005-07-29 05:52:26 UTC
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!
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-07-29 05:54:32 UTC
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
Comment 2 Stefan Knoblich (RETIRED) gentoo-dev 2005-07-29 13:06:47 UTC
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 :)
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-07-31 04:56:51 UTC
Thanks should really goto solar as he kinda pointed me in the right direction :)