Skip to content

Patch 1.27.1 fail #110

@nanamikon

Description

@nanamikon

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;

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions