api7 / api7/apisix-nginx-module
Patch 1.27.1 fail
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 45
- Forks
- 25
- Avg merge
- 1h 34m
- Merged PRs (30d)
- 1
Description
openresty version: 1.27.1.1
apisix-nginx-module version: 1.19.2
After apply path to openresty , alter error as follow
2026/03/09 14:31:05 [alert] 12031#24477206: failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: /usr/local/openresty/lualib/resty/core/shdict.lua:146: declaration specifier expected near 'ngx_http_lua_shdict_get_params_t' at line 43) in /usr/local/openresty/nginx/conf/nginx.conf:117
I check the patch code, found that ngx_http_lua_shdict_get_params_t is still in used, but has been deleted in the next patch。 How can I fix this problem?
https://github.com/api7/apisix-nginx-module/blob/main/patch/1.27.1.1/ngx_lua-shared_shdict.patch
-int ngx_http_lua_ffi_shdict_get_macos( +int ngx_meta_lua_ffi_shdict_get_macos( ngx_http_lua_shdict_get_params_t *p); -int ngx_http_lua_ffi_shdict_store_macos( +int ngx_meta_lua_ffi_shdict_store_macos( ngx_http_lua_shdict_store_params_t *p); -int ngx_http_lua_ffi_shdict_incr_macos( +int ngx_meta_lua_ffi_shdict_incr_macos( ngx_http_lua_shdict_incr_params_t *p); ]]
https://github.com/api7/apisix-nginx-module/blob/main/patch/1.27.1.1/ngx_lua-shared_shdict.patch
`
-#if (NGX_DARWIN)
-typedef struct {
- void *zone;
- const unsigned char *key;
- size_t key_len;
- int *value_type;
- unsigned char **str_value_buf;
- size_t *str_value_len;
- double *num_value;
- int *user_flags;
- int get_stale;
- int *is_stale;
- char **errmsg;
-} ngx_http_lua_shdict_get_params_t;
`
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with patch/1.27.1.1/ngx_lua-shared_shdict.patch and compare its renamed FFI declarations with the removed ngx_http_lua_shdict_get_params_t definition. Reproduce the resty.core load failure using the reported OpenResty and apisix-nginx-module versions. Done means the patch and bundled Lua module agree so nginx starts without this declaration error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, lua, nginx
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100