luarocks / luarocks-site

LuaRocks website and module host
http://luarocks.org
175 stars 36 forks source link

faild on macos 10.12.1 #105

Closed wxd237 closed 7 years ago

wxd237 commented 7 years ago

Lua :5.2.4 macos :10.12.1 clang : clang version 3.8.1

when I run the command luarocks install luacurl got error:

Installing https://luarocks.org/luacurl-1.2.1-1.src.rock...
Using https://luarocks.org/luacurl-1.2.1-1.src.rock... switching to 'build' mode
Archive:  luacurl-1.2.1.zip
   creating: luacurl-1.2.1/
  inflating: luacurl-1.2.1/CMakeLists.txt
  inflating: luacurl-1.2.1/luacurl.c
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/include -c luacurl.c -o luacurl.o -I/usr/include
luacurl.c:281:26: warning: implicit declaration of function 'lua_strlen' is invalid in C99
      [-Wimplicit-function-declaration]
                memcpy(ptr, readBytes, lua_strlen(c->L, -1));
                                       ^
luacurl.c:630:7: warning: '/*' within block comment [-Wcomment]
                                                /* userdata or function set the curl option value to the lu...
                                                ^
luacurl.c:813:43: error: array has incomplete element type 'const struct luaL_reg'
static const struct luaL_reg luacurl_meths[] =
                                          ^
luacurl.c:813:21: note: forward declaration of 'struct luaL_reg'
static const struct luaL_reg luacurl_meths[] =
                    ^
luacurl.c:823:43: error: array has incomplete element type 'const struct luaL_reg'
static const struct luaL_reg luacurl_funcs[] =
                                          ^
luacurl.c:813:21: note: forward declaration of 'struct luaL_reg'
static const struct luaL_reg luacurl_meths[] =
                    ^
luacurl.c:1088:2: warning: implicit declaration of function 'luaL_openlib' is invalid in C99
      [-Wimplicit-function-declaration]
        luaL_openlib (L, 0, luacurl_meths, 0);
        ^
3 warnings and 2 errors generated.
leafo commented 7 years ago

This issue tracker is for the luarocks website. I recommend looking for an issues tracker for luacurl to post to, or contacting the creator directly. You can find contact information in the rockspec.