nginx-clojure-0.6.0 集成nginx 1.25.0 构建的解决方法

发布时间 2023-06-10 22:05:11作者: 荣锋亮

今天也说过关于nginx-clojure-0.6.0 集成nginx 1.2.50 构建是有问题的,以下是解决方法

实际问题

  • static declaration of ‘ngx_http_close_request’ follows non-static declaration

原因

nginx-clojure复制了nginx 源码中对于nginx 的处理函数(ngx_http_clojure_mem.c 文件)

/*copy from ngx_http_request.c*/
static void
ngx_http_close_request(ngx_http_request_t *r, ngx_int_t rc)

解决方法
可以将复制的方法重命名比如ngx_http_close_requestv2,同时注意对于ngx_http_clojure_mem中使用到方法的使用修改的名称
然后构建方法就和以前的方法一样

参考资料

https://nginx-clojure.github.io/installation.html
https://github.com/nginx-clojure/nginx-clojure
https://nginx-clojure.github.io/