nginx-static-etags
nginx-static-etags copied to clipboard
"DIGEST_LENGTH undeclared and implicit declaration" of function during make
I am trying to compile the this module with nginx-1.14.0 and I get these warnings and errors while I run "make" :
./nginx-static-etags/ngx_http_static_etags_module.c: In function 'ngx_http_static_etags_header_filter': ./nginx-static-etags/ngx_http_static_etags_module.c:249:33: error: 'MD5_DIGEST_LENGTH' undeclared (first use in this function) digest_length = MD5_DIGEST_LENGTH; ^ ./nginx-static-etags/ngx_http_static_etags_module.c:249:33: note: each undeclared identifier is reported only once for each function it appears in ./nginx-static-etags/ngx_http_static_etags_module.c:259:17: error: unknown type name 'MD5_CTX' MD5_CTX md5_ctx; ^ ./nginx-static-etags/ngx_http_static_etags_module.c:260:17: error: implicit declaration of function 'MD5Init' [-Werror=implicit-function-declaration] MD5Init(&md5_ctx); ^ ./nginx-static-etags/ngx_http_static_etags_module.c:261:17: error: implicit declaration of function 'MD5Update' [-Werror=implicit-function-declaration] MD5Update(&md5_ctx,str_buffer.data,str_buffer.len); ^ ./nginx-static-etags/ngx_http_static_etags_module.c:262:17: error: implicit declaration of function 'MD5Final' [-Werror=implicit-function-declaration] MD5Final(hash,&md5_ctx); ^ ./nginx-static-etags/ngx_http_static_etags_module.c:265:33: error: 'SHA_DIGEST_LENGTH' undeclared (first use in this function) digest_length = SHA_DIGEST_LENGTH; ^ ./nginx-static-etags/ngx_http_static_etags_module.c:275:17: error: unknown type name 'SHA_CTX' SHA_CTX sha1_ctx; ^ ./nginx-static-etags/ngx_http_static_etags_module.c:276:17: error: implicit declaration of function 'SHA1_Init' [-Werror=implicit-function-declaration] SHA1_Init(&sha1_ctx); ^ ./nginx-static-etags/ngx_http_static_etags_module.c:277:17: error: implicit declaration of function 'SHA1_Update' [-Werror=implicit-function-declaration] SHA1_Update(&sha1_ctx,str_buffer.data,str_buffer.len); ^ ./nginx-static-etags/ngx_http_static_etags_module.c:278:17: error: implicit declaration of function 'SHA1_Final' [-Werror=implicit-function-declaration] SHA1_Final(hash,&sha1_ctx); ^ cc1: all warnings being treated as errors make[1]: *** [objs/addon/nginx-static-etags/ngx_http_static_etags_module.o] Error 1 make[1]: Leaving directory `/home/vagrant/nginx-1.14.0' make: *** [build] Error 2