You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by mingzym <gi...@git.apache.org> on 2017/03/03 15:20:33 UTC

[GitHub] trafficserver issue #1530: lib/bindings fail to build with system lua.h inst...

GitHub user mingzym opened an issue:

    https://github.com/apache/trafficserver/issues/1530

    lib/bindings fail to build with system lua.h installed

    ```
    make[4]: Nothing to be done for `all-am'.
    Making all in bindings
      CXX      lua.lo
      CXX      bindings.lo
      CXX      repl.lo
      CXX      metrics.lo
    lua.cc:56:14: error: use of undeclared identifier 'lua_equal'; did you mean 'lua_rawequal'?
        result = lua_equal(L, -1, -2) == 1;
                 ^~~~~~~~~
                 lua_rawequal
    /opt/local/include/lua.h:217:16: note: 'lua_rawequal' declared here
    LUA_API int   (lua_rawequal) (lua_State *L, int idx1, int idx2);
                   ^
    1 error generated.
    make[3]: *** [lua.lo] Error 1
    make[3]: *** Waiting for unfinished jobs....
    In file included from metrics.cc:24:
    ./bindings.h:65:67: error: unknown type name 'luaL_reg'; did you mean 'luaL_Reg'?
      static void register_metatable(lua_State *, const char *, const luaL_reg *);
                                                                      ^~~~~~~~
                                                                      luaL_Reg
    /opt/local/include/lauxlib.h:34:3: note: 'luaL_Reg' declared here
    } luaL_Reg;
      ^
    In file included from repl.cc:25:
    ./bindings.h:65:67: error: unknown type name 'luaL_reg'; did you mean 'luaL_Reg'?
      static void register_metatable(lua_State *, const char *, const luaL_reg *);
                                                                      ^~~~~~~~
                                                                      luaL_Reg
    /opt/local/include/lauxlib.h:34:3: note: 'luaL_Reg' declared here
    } luaL_Reg;
      ^
    1 error generated.
    In file included from bindings.cc:24:
    ./bindings.h:65:67: error: unknown type name 'luaL_reg'; did you mean 'luaL_Reg'?
      static void register_metatable(lua_State *, const char *, const luaL_reg *);
                                                                      ^~~~~~~~
                                                                      luaL_Reg
    /opt/local/include/lauxlib.h:34:3: note: 'luaL_Reg' declared here
    } luaL_Reg;
      ^
    make[3]: *** [repl.lo] Error 1
    bindings.cc:330:77: error: unknown type name 'luaL_reg'; did you mean 'luaL_Reg'?
    BindingInstance::register_metatable(lua_State *lua, const char *name, const luaL_reg *metatable)
                                                                                ^~~~~~~~
                                                                                luaL_Reg
    /opt/local/include/lauxlib.h:34:3: note: 'luaL_Reg' declared here
    } luaL_Reg;
      ^
    bindings.cc:339:3: error: use of undeclared identifier 'luaL_register'
      luaL_register(lua, nullptr, metatable);
      ^
    metrics.cc:51:5: error: use of undeclared identifier 'luaL_typerror'; did you mean 'luaL_argerror'?
        luaL_typerror(L, index, "userdata");
        ^~~~~~~~~~~~~
        luaL_argerror
    /opt/local/include/lauxlib.h:46:17: note: 'luaL_argerror' declared here
    LUALIB_API int (luaL_argerror) (lua_State *L, int arg, const char *extramsg);
                    ^
    3 errors generated.
    metrics.cc:141:5: error: use of undeclared identifier 'luaL_typerror'; did you mean 'luaL_argerror'?
        luaL_typerror(L, 3, "userdata or table");
        ^~~~~~~~~~~~~
        luaL_argerror
    /opt/local/include/lauxlib.h:46:17: note: 'luaL_argerror' declared here
    LUALIB_API int (luaL_argerror) (lua_State *L, int arg, const char *extramsg);
                    ^
    metrics.cc:199:16: error: unknown type name 'luaL_reg'; did you mean 'luaL_Reg'?
      static const luaL_reg metatable[] = {
                   ^~~~~~~~
                   luaL_Reg
    /opt/local/include/lauxlib.h:34:3: note: 'luaL_Reg' declared here
    } luaL_Reg;
      ^
    make[3]: *** [bindings.lo] Error 1
    4 errors generated.
    make[3]: *** [metrics.lo] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all] Error 2
    make: *** [all-recursive] Error 1
    zymMBPr:trafficserver zym$
    ```

----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---