Skip to content

LUA_GLOBALSINDEX undeclared in lua 5.2 #51

@Hubbitus

Description

@Hubbitus
+ cmake -DLIBCGROUPS=0 -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_DBUS=1 -DLUA_JIT=0 -DPROCPS_STATIC:BOOL=OFF .
CMake Warning:
  Manually-specified variables were not used by the project:

    PROCPS_STATIC


+ make -j3
/home/pasha/SOFT/rpmbuild/BUILD/ulatencyd.b30c5ef/modules/simplerules.c: In function 'load_simple_directory':
/home/pasha/SOFT/rpmbuild/BUILD/ulatencyd.b30c5ef/modules/simplerules.c:249:13: warning: 'g_strcasecmp' is deprecated (declared at /usr/include/glib-2.0/glib/gstrfuncs.h:200) [-Wdeprecated-declarations]
             if(!g_strcasecmp(disabled[j], rule_name))
             ^
/home/pasha/SOFT/rpmbuild/BUILD/ulatencyd.b30c5ef/src/core.c: In function 'load_rule_directory':
/home/pasha/SOFT/rpmbuild/BUILD/ulatencyd.b30c5ef/src/core.c:1977:11: warning: 'g_strcasecmp' is deprecated (declared at /usr/include/glib-2.0/glib/gstrfuncs.h:200) [-Wdeprecated-declarations]
           if(!g_strcasecmp(disabled[j], rule_name))
           ^
/home/pasha/SOFT/rpmbuild/BUILD/ulatencyd.b30c5ef/src/core.c: In function 'load_modules':
/home/pasha/SOFT/rpmbuild/BUILD/ulatencyd.b30c5ef/src/core.c:2038:7: warning: 'g_strcasecmp' is deprecated (declared at /usr/include/glib-2.0/glib/gstrfuncs.h:200) [-Wdeprecated-declarations]
       if(!g_strcasecmp(disabled[i], module_name)) {
       ^
/home/pasha/SOFT/rpmbuild/BUILD/ulatencyd.b30c5ef/src/ulatencyd.c: In function 'main':
/home/pasha/SOFT/rpmbuild/BUILD/ulatencyd.b30c5ef/src/ulatencyd.c:503:3: warning: 'g_type_init' is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) [-Wdeprecated-declarations]
   g_type_init ();
   ^
/home/pasha/SOFT/rpmbuild/BUILD/ulatencyd.b30c5ef/src/ulatencyd.c:508:3: warning: 'g_thread_init' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:260) [-Wdeprecated-declarations]
   g_thread_init(NULL);
   ^
/home/pasha/SOFT/rpmbuild/BUILD/ulatencyd.b30c5ef/src/ulatencyd.c:591:32: error: 'LUA_GLOBALSINDEX' undeclared (first use in this function)
   lua_getfield(lua_main_state, LUA_GLOBALSINDEX, "CGROUP_ROOT"); /* function to be called */
                                ^
/home/pasha/SOFT/rpmbuild/BUILD/ulatencyd.b30c5ef/src/ulatencyd.c:591:32: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [src/CMakeFiles/ulatencyd.dir/ulatencyd.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/CMakeFiles/ulatencyd.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions