Skip to content

Error compiling nginx-clojure module with nginx #99

Closed
@chenfisher

Description

@chenfisher

Hi,

I get the following error when compiling nginx-clojure module with nginx:

nginx-clojure/src/c/ngx_http_clojure_mem.c:2250:14: error: 'ngx_http_clojure_websocket_alloc' defined but not used [-Werror=unused-function]
 static void *ngx_http_clojure_websocket_alloc(void *opaque, u_int items, u_int size) {
              ^
nginx-clojure/src/c/ngx_http_clojure_mem.c:2256:13: error: 'ngx_http_clojure_websocket_free' defined but not used [-Werror=unused-function]
 static void ngx_http_clojure_websocket_free(void *opaque, void *address) {
             ^
cc1: all warnings being treated as errors
make[1]: *** [objs/addon/c/ngx_http_clojure_mem.o] Error 1

I can work around this error by specifying --with-cc-opt=-Wno-error to ./configure, but I think it's better to fix this on your end

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions