mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 22:58:21 +00:00
Add a new module flag to indicate that a build sum is present. Modules built
against older Asterisk 1.4 headers will now load properly with just a warning indicating that they are old and may cause problems. (patch by paravoid) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@91501 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -616,8 +616,10 @@ static unsigned int inspect_module(const struct ast_module *mod)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!ast_strlen_zero(mod->info->buildopt_sum) &&
|
||||
strcmp(buildopt_sum, mod->info->buildopt_sum)) {
|
||||
if (!ast_test_flag(mod->info, AST_MODFLAG_BUILDSUM)) {
|
||||
ast_log(LOG_WARNING, "Module '%s' was not compiled against a recent version of Asterisk and may cause instability.\n", mod->resource);
|
||||
} else if (!ast_strlen_zero(mod->info->buildopt_sum) &&
|
||||
strcmp(buildopt_sum, mod->info->buildopt_sum)) {
|
||||
ast_log(LOG_WARNING, "Module '%s' was not compiled with the same compile-time options as this version of Asterisk.\n", mod->resource);
|
||||
ast_log(LOG_WARNING, "Module '%s' will not be initialized as it may cause instability.\n", mod->resource);
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user