Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译报错,麻烦帮忙看看。 #199

Open
jerichon opened this issue Feb 20, 2025 · 0 comments
Open

编译报错,麻烦帮忙看看。 #199

jerichon opened this issue Feb 20, 2025 · 0 comments

Comments

@jerichon
Copy link

n file included from /home/n/lede2/staging_dir/target-x86_64_musl/usr/include/lauxlib.h:15,
from src/hlua.c:18:
/home/n/lede2/staging_dir/target-x86_64_musl/usr/include/lua.h:226:46: note: expected 'int' but argument is of type 'lua_State *'
226 | LUA_API int (lua_resume) (lua_State *L, int narg);
| ~~~~^~~~
src/hlua.c:2027:15: error: too many arguments to function 'lua_resume'
2027 | ret = lua_resume(lua->T, hlua_states[lua->state_id], lua->nargs);
| ^~~~~~~~~~
/home/n/lede2/staging_dir/target-x86_64_musl/usr/include/lua.h:226:15: note: declared here
226 | LUA_API int (lua_resume) (lua_State *L, int narg);
| ^~~~~~~~~~
src/hlua.c:2045:14: error: 'LUA_OK' undeclared (first use in this function); did you mean 'LUA_LOCK'?
2045 | case LUA_OK:
| ^~~~~~
| LUA_LOCK
src/hlua.c: At top level:
src/hlua.c:2801:78: error: unknown type name 'lua_KContext'
2801 | __LJMP static int hlua_socket_receive_yield(struct lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_socket_receive':
src/hlua.c:3037:23: warning: implicit declaration of function 'hlua_socket_receive_yield'; did you mean 'hlua_socket_receive'? [-Wimplicit-function-declaration]
3037 | return __LJMP(hlua_socket_receive_yield(L, 0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| hlua_socket_receive
src/hlua.c: At top level:
src/hlua.c:3043:68: error: unknown type name 'lua_KContext'
3043 | static int hlua_socket_write_yield(struct lua_State *L,int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_socket_send':
src/hlua.c:3245:25: warning: implicit declaration of function 'hlua_socket_write_yield'; did you mean 'hlua_socket_receive'? [-Wimplicit-function-declaration]
3245 | return MAY_LJMP(hlua_socket_write_yield(L, 0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: At top level:
src/hlua.c:3403:78: error: unknown type name 'lua_KContext'
3403 | __LJMP static int hlua_socket_connect_yield(struct lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_socket_connect':
src/hlua.c:3584:39: error: 'hlua_socket_connect_yield' undeclared (first use in this function); did you mean 'hlua_socket_connect'?
3584 | MAY_LJMP(hlua_yieldk(L, 0, 0, hlua_socket_connect_yield, TICK_ETERNITY, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: In function 'hlua_channel_filter':
src/hlua.c:3787:13: error: void value not ignored as it ought to be
3787 | if (lua_getfield(L, ud, "__filter") == LUA_TLIGHTUSERDATA) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c: At top level:
src/hlua.c:3868:73: error: unknown type name 'lua_KContext'
3868 | __LJMP static int hlua_channel_get_data_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c:3943:73: error: unknown type name 'lua_KContext'
3943 | __LJMP static int hlua_channel_get_line_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c:4101:72: error: unknown type name 'lua_KContext'
4101 | __LJMP static int hlua_channel_getline_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_channel_getline':
src/hlua.c:4154:25: warning: implicit declaration of function 'hlua_channel_getline_yield'; did you mean 'hlua_channel_getline'? [-Wimplicit-function-declaration]
4154 | return MAY_LJMP(hlua_channel_getline_yield(L, 0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: In function 'hlua_channel_get_data':
src/hlua.c:4173:25: warning: implicit declaration of function 'hlua_channel_get_data_yield'; did you mean 'hlua_channel_get_data'? [-Wimplicit-function-declaration]
4173 | return MAY_LJMP(hlua_channel_get_data_yield(L, 0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: In function 'hlua_channel_get_line':
src/hlua.c:4192:25: warning: implicit declaration of function 'hlua_channel_get_line_yield'; did you mean 'hlua_channel_get_line'? [-Wimplicit-function-declaration]
4192 | return MAY_LJMP(hlua_channel_get_line_yield(L, 0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: At top level:
src/hlua.c:4481:69: error: unknown type name 'lua_KContext'
4481 | __LJMP static int hlua_channel_send_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_channel_send':
src/hlua.c:4583:25: warning: implicit declaration of function 'hlua_channel_send_yield'; did you mean 'hlua_channel_send'? [-Wimplicit-function-declaration]
4583 | return MAY_LJMP(hlua_channel_send_yield(L, 0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: At top level:
src/hlua.c:4593:72: error: unknown type name 'lua_KContext'
4593 | __LJMP static int hlua_channel_forward_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_channel_forward':
src/hlua.c:4677:25: warning: implicit declaration of function 'hlua_channel_forward_yield'; did you mean 'hlua_channel_forward'? [-Wimplicit-function-declaration]
4677 | return MAY_LJMP(hlua_channel_forward_yield(L, 0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: At top level:
src/hlua.c:5221:75: error: unknown type name 'lua_KContext'
5221 | __LJMP static int hlua_applet_tcp_getline_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_applet_tcp_getline':
src/hlua.c:5268:25: warning: implicit declaration of function 'hlua_applet_tcp_getline_yield'; did you mean 'hlua_applet_tcp_getline'? [-Wimplicit-function-declaration]
5268 | return MAY_LJMP(hlua_applet_tcp_getline_yield(L, 0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: At top level:
src/hlua.c:5275:72: error: unknown type name 'lua_KContext'
5275 | __LJMP static int hlua_applet_tcp_recv_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_applet_tcp_recv':
src/hlua.c:5380:25: warning: implicit declaration of function 'hlua_applet_tcp_recv_yield'; did you mean 'hlua_applet_tcp_recv'? [-Wimplicit-function-declaration]
5380 | return MAY_LJMP(hlua_applet_tcp_recv_yield(L, 0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: At top level:
src/hlua.c:5388:72: error: unknown type name 'lua_KContext'
5388 | __LJMP static int hlua_applet_tcp_send_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_applet_tcp_send':
src/hlua.c:5438:25: warning: implicit declaration of function 'hlua_applet_tcp_send_yield'; did you mean 'hlua_applet_tcp_send'? [-Wimplicit-function-declaration]
5438 | return MAY_LJMP(hlua_applet_tcp_send_yield(L, 0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: At top level:
src/hlua.c:5727:76: error: unknown type name 'lua_KContext'
5727 | __LJMP static int hlua_applet_http_getline_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_applet_http_getline':
src/hlua.c:5815:25: warning: implicit declaration of function 'hlua_applet_http_getline_yield'; did you mean 'hlua_applet_http_getline'? [-Wimplicit-function-declaration]
5815 | return MAY_LJMP(hlua_applet_http_getline_yield(L, 0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: At top level:
src/hlua.c:5822:73: error: unknown type name 'lua_KContext'
5822 | __LJMP static int hlua_applet_http_recv_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_applet_http_recv':
src/hlua.c:5923:25: warning: implicit declaration of function 'hlua_applet_http_recv_yield'; did you mean 'hlua_applet_http_recv'? [-Wimplicit-function-declaration]
5923 | return MAY_LJMP(hlua_applet_http_recv_yield(L, 0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: At top level:
src/hlua.c:5931:73: error: unknown type name 'lua_KContext'
5931 | __LJMP static int hlua_applet_http_send_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_applet_http_send':
src/hlua.c:5993:25: warning: implicit declaration of function 'hlua_applet_http_send_yield'; did you mean 'hlua_applet_http_send'? [-Wimplicit-function-declaration]
5993 | return MAY_LJMP(hlua_applet_http_send_yield(L, 0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: In function 'hlua_applet_http_addheader':
src/hlua.c:6006:13: error: void value not ignored as it ought to be
6006 | ret = lua_getfield(L, 1, "response");
| ^
src/hlua.c:6016:13: error: void value not ignored as it ought to be
6016 | ret = lua_getfield(L, -1, name);
| ^
src/hlua.c:6042:15: warning: implicit declaration of function 'lua_rawlen'; did you mean 'lua_rawset'? [-Wimplicit-function-declaration]
6042 | ret = lua_rawlen(L, -2);
| ^~~~~~~~~~
| lua_rawset
src/hlua.c: In function 'hlua_applet_http_send_response':
src/hlua.c:6106:13: error: void value not ignored as it ought to be
6106 | if (lua_getfield(L, 1, "response") != LUA_TTABLE) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c: At top level:
src/hlua.c:6264:83: error: unknown type name 'lua_KContext'
6264 | __LJMP static int hlua_applet_http_start_response_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_applet_http_start_response':
src/hlua.c:6280:25: warning: implicit declaration of function 'hlua_applet_http_start_response_yield'; did you mean 'hlua_applet_http_start_response'? [-Wimplicit-function-declaration]
6280 | return MAY_LJMP(hlua_applet_http_start_response_yield(L, 0, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: In function 'hlua_http_msg_filter':
src/hlua.c:6779:13: error: void value not ignored as it ought to be
6779 | if (lua_getfield(L, ud, "__filter") == LUA_TLIGHTUSERDATA) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c: At top level:
src/hlua.c:7933:71: error: unknown type name 'lua_KContext'
7933 | __LJMP static int hlua_httpclient_rcv_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c:7978:71: error: unknown type name 'lua_KContext'
7978 | __LJMP static int hlua_httpclient_snd_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_httpclient_send':
src/hlua.c:8133:39: error: 'hlua_httpclient_snd_yield' undeclared (first use in this function); did you mean 'hlua_httpclient_send'?
8133 | MAY_LJMP(hlua_yieldk(L, 0, 0, hlua_httpclient_snd_yield, TICK_ETERNITY, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: In function 'hlua_txn_forward_reply':
src/hlua.c:8599:13: error: void value not ignored as it ought to be
8599 | ret = lua_getfield(L, -1, "status");
| ^
src/hlua.c:8608:13: error: void value not ignored as it ought to be
8608 | ret = lua_getfield(L, -1, "reason");
| ^
src/hlua.c:8615:13: error: void value not ignored as it ought to be
8615 | ret = lua_getfield(L, -1, "body");
| ^
src/hlua.c:8639:13: error: void value not ignored as it ought to be
8639 | ret = lua_getfield(L, -1, "headers");
| ^
src/hlua.c: In function 'hlua_txn_reply_new':
src/hlua.c:8842:21: error: void value not ignored as it ought to be
8842 | ret = lua_getfield(L, 2, "status");
| ^
src/hlua.c:8853:21: error: void value not ignored as it ought to be
8853 | ret = lua_getfield(L, 2, "reason");
| ^
src/hlua.c:8859:21: error: void value not ignored as it ought to be
8859 | ret = lua_getfield(L, 2, "body");
| ^
src/hlua.c:8894:21: error: void value not ignored as it ought to be
8894 | ret = lua_getfield(L, 2, "headers");
| ^
src/hlua.c: In function 'hlua_txn_reply_add_header':
src/hlua.c:8998:13: error: void value not ignored as it ought to be
8998 | ret = lua_getfield(L, 1, "headers");
| ^
src/hlua.c:9005:13: error: void value not ignored as it ought to be
9005 | ret = lua_getfield(L, -1, name);
| ^
src/hlua.c: In function 'hlua_txn_reply_del_header':
src/hlua.c:9044:13: error: void value not ignored as it ought to be
9044 | ret = lua_getfield(L, 1, "headers");
| ^
src/hlua.c: At top level:
src/hlua.c:9129:62: error: unknown type name 'lua_KContext'
9129 | __LJMP static int hlua_sleep_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_sleep':
src/hlua.c:9148:39: error: 'hlua_sleep_yield' undeclared (first use in this function); did you mean 'hlua_sleep'?
9148 | MAY_LJMP(hlua_yieldk(L, 0, 0, hlua_sleep_yield, wakeup_ms, 0));
| ^~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: In function 'hlua_msleep':
src/hlua.c:9163:39: error: 'hlua_sleep_yield' undeclared (first use in this function); did you mean 'hlua_sleep'?
9163 | MAY_LJMP(hlua_yieldk(L, 0, 0, hlua_sleep_yield, wakeup_ms, 0));
| ^~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: At top level:
src/hlua.c:9171:62: error: unknown type name 'lua_KContext'
9171 | __LJMP static int hlua_yield_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_yield':
src/hlua.c:9178:39: error: 'hlua_yield_yield' undeclared (first use in this function); did you mean 'hlua_yield'?
9178 | MAY_LJMP(hlua_yieldk(L, 0, 0, hlua_yield_yield, TICK_ETERNITY, HLUA_CTRLYIELD));
| ^~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c: In function 'hlua_coroutine_create':
src/hlua.c:9226:20: warning: assignment to 'struct hlua **' from 'int' makes pointer from integer without a cast [-Wint-conversion]
9226 | hlua_store = lua_getextraspace(new);
| ^
src/hlua.c: In function 'hlua_new_event_sub_safe':
src/hlua.c:10041:22: error: 'LUA_OK' undeclared (first use in this function); did you mean 'LUA_LOCK'?
10041 | case LUA_OK:
| ^~~~~~
| LUA_LOCK
src/hlua.c: In function 'hlua_filter_init_per_thread':
src/hlua.c:12036:14: error: 'LUA_OK' undeclared (first use in this function); did you mean 'LUA_LOCK'?
12036 | case LUA_OK:
| ^~~~~~
| LUA_LOCK
src/hlua.c:12050:14: error: 'LUA_ERRGCMM' undeclared (first use in this function); did you mean 'LUA_ERRMEM'?
12050 | case LUA_ERRGCMM:
| ^~~~~~~~~~~
| LUA_ERRMEM
src/hlua.c: In function 'hlua_filter_new':
src/hlua.c:12179:21: error: void value not ignored as it ought to be
12179 | if (lua_getfield(hlua->T, -1, "new") != LUA_TFUNCTION) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c: In function 'hlua_filter_callback':
src/hlua.c:12349:21: error: void value not ignored as it ought to be
12349 | if (lua_getfield(flt_hlua->T, -1, fun) != LUA_TFUNCTION) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c: In function 'hlua_filter_parse_fct':
src/hlua.c:12596:13: error: void value not ignored as it ought to be
12596 | if (lua_getfield(L, -1, "start_analyze") == LUA_TFUNCTION)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:12599:13: error: void value not ignored as it ought to be
12599 | if (lua_getfield(L, -1, "end_analyze") == LUA_TFUNCTION)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:12602:13: error: void value not ignored as it ought to be
12602 | if (lua_getfield(L, -1, "http_headers") == LUA_TFUNCTION)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:12605:13: error: void value not ignored as it ought to be
12605 | if (lua_getfield(L, -1, "http_payload") == LUA_TFUNCTION)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:12608:13: error: void value not ignored as it ought to be
12608 | if (lua_getfield(L, -1, "http_end") == LUA_TFUNCTION)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:12611:13: error: void value not ignored as it ought to be
12611 | if (lua_getfield(L, -1, "tcp_payload") == LUA_TFUNCTION)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:12616:13: error: void value not ignored as it ought to be
12616 | if (lua_getfield(L, -1, "id") == LUA_TSTRING)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:12619:13: error: void value not ignored as it ought to be
12619 | if (lua_getfield(L, -1, "flags") == LUA_TNUMBER)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c: In function 'hlua_load_state':
src/hlua.c:12957:14: error: 'LUA_OK' undeclared (first use in this function); did you mean 'LUA_LOCK'?
12957 | case LUA_OK:
| ^~~~~~
| LUA_LOCK
src/hlua.c:12971:14: error: 'LUA_ERRGCMM' undeclared (first use in this function); did you mean 'LUA_ERRMEM'?
12971 | case LUA_ERRGCMM:
| ^~~~~~~~~~~
| LUA_ERRMEM
src/hlua.c: At top level:
src/hlua.c:13179:68: error: unknown type name 'lua_KContext'
13179 | __LJMP static int hlua_ckch_commit_yield(lua_State *L, int status, lua_KContext ctx)
| ^~~~~~~~~~~~
src/hlua.c: In function 'hlua_ckch_set':
src/hlua.c:13280:13: error: void value not ignored as it ought to be
13280 | ret = lua_getfield(L, -1, "filename");
| ^
src/hlua.c:13362:47: error: 'hlua_ckch_commit_yield' undeclared (first use in this function)
13362 | MAY_LJMP(hlua_yieldk(L, 0, 0, hlua_ckch_commit_yield, TICK_ETERNITY, 0));
| ^~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:95:24: note: in definition of macro 'MAY_LJMP'
95 | #define MAY_LJMP(func) func
| ^~~~
src/hlua.c:13368:17: warning: implicit declaration of function 'hlua_ckch_commit_yield' [-Wimplicit-function-declaration]
13368 | hlua_ckch_commit_yield(L, LUA_OK, 0);
| ^~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:13368:43: error: 'LUA_OK' undeclared (first use in this function); did you mean 'LUA_LOCK'?
13368 | hlua_ckch_commit_yield(L, LUA_OK, 0);
| ^~~~~~
| LUA_LOCK
src/hlua.c: In function 'hlua_post_init_state':
src/hlua.c:13441:37: warning: passing argument 2 of 'lua_resume' makes integer from pointer without a cast [-Wint-conversion]
13441 | ret = lua_resume(L, NULL, 0);
| ^~~~
| |
| void *
/home/n/lede2/staging_dir/target-x86_64_musl/usr/include/lua.h:226:46: note: expected 'int' but argument is of type 'void *'
226 | LUA_API int (lua_resume) (lua_State *L, int narg);
| ~~~~^~~~
src/hlua.c:13441:23: error: too many arguments to function 'lua_resume'
13441 | ret = lua_resume(L, NULL, 0);
| ^~~~~~~~~~
/home/n/lede2/staging_dir/target-x86_64_musl/usr/include/lua.h:226:15: note: declared here
226 | LUA_API int (lua_resume) (lua_State *L, int narg);
| ^~~~~~~~~~
src/hlua.c:13446:22: error: 'LUA_OK' undeclared (first use in this function); did you mean 'LUA_LOCK'?
13446 | case LUA_OK:
| ^~~~~~
| LUA_LOCK
src/hlua.c: In function 'hlua_init_state':
src/hlua.c:13705:17: warning: assignment to 'void **' from 'int' makes pointer from integer without a cast [-Wint-conversion]
13705 | context = lua_getextraspace(L);
| ^
src/hlua.c: At top level:
src/hlua.c:7810:19: warning: 'hlua_httpclient_get_headers' defined but not used [-Wunused-function]
7810 | __LJMP static int hlua_httpclient_get_headers(lua_State *L, struct hlua_httpclient *hlua_hc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hlua.c:6067:19: warning: 'hlua_applet_http_send_response' defined but not used [-Wunused-function]
6067 | __LJMP static int hlua_applet_http_send_response(lua_State *L)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: note: unrecognized command-line option '-Wno-atomic-alignment' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-string-plus-int' may have been intended to silence earlier diagnostics
make[4]: *** [Makefile:1041: src/hlua.o] Error 1
make[4]: Leaving directory '/home/n/lede2/build_dir/target-x86_64_musl/haproxy-ssl/haproxy-3.0.8'
make[3]: *** [Makefile:149: /home/n/lede2/build_dir/target-x86_64_musl/haproxy-ssl/haproxy-3.0.8/.built] Error 2
make[3]: Leaving directory '/home/n/lede2/feeds/smpackage/haproxy'
time: package/feeds/smpackage/haproxy/ssl/compile#1.90#2.68#4.65
ERROR: package/feeds/smpackage/haproxy failed to build (build variant: ssl).
make[2]: *** [package/Makefile:116: package/feeds/smpackage/haproxy/compile] Error 1
make[2]: Leaving directory '/home/n/lede2'
make[1]: *** [package/Makefile:110: /home/n/lede2/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/n/lede2'
make: *** [/home/n/lede2/include/toplevel.mk:231:world] 错误 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant