[asterisk-dev] Error compiling asterisk-addons 1.4.5
Faidon Liambotis
paravoid at debian.org
Tue Dec 4 18:28:14 CST 2007
Kevin,
Faidon Liambotis wrote:
> Unfortunately, Digium made a delibarate decision to break both the API
> and the ABI on the stable branch (1.4.15).
Attached is a proposed fix for ABI issue (buildopt_sum et al.).
Once this is applied, loading a pre-1.4.16 module (including those
compiled with 1.4.15!) will emit a warning such as this:
[Dec 5 02:22:12] WARNING[26391]: loader.c:625 inspect_module: Module
'format_mp3.so' was not compiled against a recent version of Asterisk
and may cause instability.
...and their buildopt sum will never be examined (and thus will never
get out of bounds on pre-1.4.15 versions).
However, all modules compiled with this version of module.h will have
their buildopt sum checked and behave as the current version does.
This keeps the ABI for the existing modules while introduces the so
wanted feature of the buildopt sum.
This is a 1.4 patch since it doesn't make any sense to apply this to
trunk which will have a different ABI anyway.
BTW, I'd suggest to add a "version" member to the struct in 1.6.
It would help in relevant situtations in the future.
Thanks,
Faidon
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: buildoptsum_optional.diff
Url: http://lists.digium.com/pipermail/asterisk-dev/attachments/20071205/370b26c2/attachment-0001.txt
More information about the asterisk-dev
mailing list