{"action":"created","issue":{"url":"https://api.github.com/repos/samizdatco/nginx-http-auth-digest/issues/29","labels_url":"https://api.github.com/repos/samizdatco/nginx-http-auth-digest/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/samizdatco/nginx-http-auth-digest/issues/29/comments","events_url":"https://api.github.com/repos/samizdatco/nginx-http-auth-digest/issues/29/events","html_url":"https://github.com/samizdatco/nginx-http-auth-digest/issues/29","id":111253469,"number":29,"title":"[BUG] Nginx v1.8 compile errors","user":{"login":"soakes","id":813389,"avatar_url":"https://avatars.githubusercontent.com/u/813389?v=3","gravatar_id":"","url":"https://api.github.com/users/soakes","html_url":"https://github.com/soakes","followers_url":"https://api.github.com/users/soakes/followers","following_url":"https://api.github.com/users/soakes/following{/other_user}","gists_url":"https://api.github.com/users/soakes/gists{/gist_id}","starred_url":"https://api.github.com/users/soakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soakes/subscriptions","organizations_url":"https://api.github.com/users/soakes/orgs","repos_url":"https://api.github.com/users/soakes/repos","events_url":"https://api.github.com/users/soakes/events{/privacy}","received_events_url":"https://api.github.com/users/soakes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-13T19:34:55Z","updated_at":"2015-10-17T21:05:23Z","closed_at":null,"body":"Hi guys,\r\n\r\nI am trying to compile this module using a Debian 8 (Jessie) machine, however it keeps erroring.  I have tried looking over the code but it doesn't make too much sence to be due to I know very little C.\r\n\r\nMy question is... Has anyone managed to get this working using Nginx v1.8?\r\n\r\nI highly suspect the issue is to do with the version differeces in the http_basic_auth module and not the OS version which makes this incompatible in some way. \r\n\r\nIt would be great to see this module working with later/latest versions of Nginx.\r\n\r\n```\r\ncc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/mail \\\r\n        -o objs/addon/nginx-http-auth-digest/ngx_http_auth_digest_module.o \\\r\n        ../nginx-http-auth-digest/ngx_http_auth_digest_module.c\r\n../nginx-http-auth-digest/ngx_http_auth_digest_module.c: In function ‘ngx_http_auth_digest_decode_auth’:\r\n../nginx-http-auth-digest/ngx_http_auth_digest_module.c:297:26: error: variable ‘p’ set but not used [-Werror=unused-but-set-variable]\r\n   u_char *start, *last, *p;\r\n                          ^\r\ncc1: all warnings being treated as errors\r\nobjs/Makefile:1431: recipe for target 'objs/addon/nginx-http-auth-digest/ngx_http_auth_digest_module.o' failed\r\nmake[3]: *** [objs/addon/nginx-http-auth-digest/ngx_http_auth_digest_module.o] Error 1\r\nmake[3]: Leaving directory '/usr/src/nginx-1.8.0'\r\nMakefile:8: recipe for target 'build' failed\r\nmake[2]: *** [build] Error 2\r\nmake[2]: Leaving directory '/usr/src/nginx-1.8.0'\r\ndh_auto_build: make -j1 returned exit code 2\r\ndebian/rules:19: recipe for target 'override_dh_auto_build' failed\r\nmake[1]: *** [override_dh_auto_build] Error 2\r\nmake[1]: Leaving directory '/usr/src/nginx-1.8.0'\r\ndebian/rules:11: recipe for target 'build' failed\r\nmake: *** [build] Error 2\r\ndpkg-buildpackage: error: debian/rules build gave error exit status 2\r\n```\r\nKind Regards,\r\n\r\nSimon\r\n"},"comment":{"url":"https://api.github.com/repos/samizdatco/nginx-http-auth-digest/issues/comments/148950874","html_url":"https://github.com/samizdatco/nginx-http-auth-digest/issues/29#issuecomment-148950874","issue_url":"https://api.github.com/repos/samizdatco/nginx-http-auth-digest/issues/29","id":148950874,"user":{"login":"soakes","id":813389,"avatar_url":"https://avatars.githubusercontent.com/u/813389?v=3","gravatar_id":"","url":"https://api.github.com/users/soakes","html_url":"https://github.com/soakes","followers_url":"https://api.github.com/users/soakes/followers","following_url":"https://api.github.com/users/soakes/following{/other_user}","gists_url":"https://api.github.com/users/soakes/gists{/gist_id}","starred_url":"https://api.github.com/users/soakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soakes/subscriptions","organizations_url":"https://api.github.com/users/soakes/orgs","repos_url":"https://api.github.com/users/soakes/repos","events_url":"https://api.github.com/users/soakes/events{/privacy}","received_events_url":"https://api.github.com/users/soakes/received_events","type":"User","site_admin":false},"created_at":"2015-10-17T21:05:23Z","updated_at":"2015-10-17T21:05:23Z","body":"Hi @ErikDubbelboer,\r\n\r\nSorry, I only just noticed your message, its been a busy week.\r\n\r\nI must admit that I did not notice that the last commit on this repo was so old.   I originally found the module though nginx's home page directly and cloned the repo without checking code on github.\r\n\r\nAnyway, I really apreshate you keeping this digest module up to date and personaly I think nginx developers should add it to their standard list of modules and or remove the old one from their list and replace with yours.\r\n\r\nFYI, this old/existing out of date module is located here...\r\n\r\nhttps://www.nginx.com/resources/wiki/modules/\r\n\r\nYou may want to send them a quick email and see if they are willing to update their list of modules with yours instead as it would save a lot of people from wasting their time."}}