Details

      Description

      CMake compiles with errors when compiling with LUA disabled in config.cmake.

      ctl-plugin.c failes to compile.

      • Missing include for "fprintf" // #include <stdio.h>
      • Lua dependent calls are not guarded by #ifdef....#endif

       

      ************************************************************

      [ 44%] Building C object app-controller/ctl-lib/CMakeFiles/ctl-utilities.dir/ctl-action.c.o
      [ 48%] Building C object app-controller/ctl-lib/CMakeFiles/ctl-utilities.dir/ctl-config.c.o
      [ 52%] Building C object app-controller/ctl-lib/CMakeFiles/ctl-utilities.dir/ctl-onload.c.o
      [ 56%] Building C object app-controller/ctl-lib/CMakeFiles/ctl-utilities.dir/ctl-plugin.c.o
      /home/M21106/Development/agl/git/4a-hal-integration/4a-hal-unicens/app-controller/ctl-lib/ctl-plugin.c: In function ‘LoadFoundPlugins’:
      /home/M21106/Development/agl/git/4a-hal-integration/4a-hal-unicens/app-controller/ctl-lib/ctl-plugin.c:241:16: error: implicit declaration of function ‘LuaLoadScript’ [-Werror=implicit-function-declaration]
      if(LuaLoadScript(apiHandle, pluginpath))
      ^~~~~~~~~~~~~
      /home/M21106/Development/agl/git/4a-hal-integration/4a-hal-unicens/app-controller/ctl-lib/ctl-plugin.c: In function ‘GetDefaultPluginSearchPath’:
      /home/M21106/Development/agl/git/4a-hal-integration/4a-hal-unicens/app-controller/ctl-lib/ctl-plugin.c:283:33: error: ‘CONTROL_PLUGIN_PATH’ undeclared (first use in this function); did you mean ‘CONTROL_CONFIG_PATH’?
      envDirList_len = strlen(CONTROL_PLUGIN_PATH) + strlen(envDirList) + strlen(bindingPath) + strlen(rootDir) + 3;
      ^~~~~~~~~~~~~~~~~~~
      CONTROL_CONFIG_PATH
      /home/M21106/Development/agl/git/4a-hal-integration/4a-hal-unicens/app-controller/ctl-lib/ctl-plugin.c:283:33: note: each undeclared identifier is reported only once for each function it appears in
      At top level:
      /home/M21106/Development/agl/git/4a-hal-integration/4a-hal-unicens/app-controller/ctl-lib/ctl-plugin.c:79:12: warning: ‘DispatchOneL2c’ defined but not used [-Wunused-function]
      static int DispatchOneL2c(void* luaState, char *funcname, Lua2cFunctionT callback) {
      ^~~~~~~~~~~~~~
      cc1: some warnings being treated as errors
      gmake[2]: *** [app-controller/ctl-lib/CMakeFiles/ctl-utilities.dir/build.make:135: app-controller/ctl-lib/CMakeFiles/ctl-utilities.dir/ctl-plugin.c.o] Error 1
      gmake[1]: *** [CMakeFiles/Makefile2:537: app-controller/ctl-lib/CMakeFiles/ctl-utilities.dir/all] Error 2
      gmake: *** [Makefile:130: all] Error 2

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              claneys Romain Forlot
              Reporter:
              tjahnke Tobias Jahnke
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: