]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/engine: added a message to find out when built module is too old
authorMarek Vavrusa <marek@vavrusa.com>
Tue, 17 Jan 2017 18:49:42 +0000 (10:49 -0800)
committerMarek Vavrusa <marek@vavrusa.com>
Tue, 17 Jan 2017 18:49:42 +0000 (10:49 -0800)
daemon/engine.c

index 57182a24867f967a42d47b073e890be31c1920d8..cd03fa2661d735ce329ca360b1f27d4ecf7a6a3a 100644 (file)
@@ -825,6 +825,9 @@ int engine_register(struct engine *engine, const char *name, const char *precede
        /* Load Lua module if not a binary */
        if (ret == kr_error(ENOENT)) {
                ret = ffimodule_register_lua(engine, module, name);
+       } else if (ret == kr_error(ENOTSUP)) {
+               /* Print a more helpful message when module is linked against an old resolver ABI. */
+               fprintf(stderr, "[system] module '%s' links to unsupported ABI, please rebuild it\n", name);
        }
        if (ret != 0) {
                free(module);