-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling issue when adding module #127
Comments
I believe this commit fixes the warnings: |
Right, this commit fixes the variable warning but compiling error of 'gss_localname' still exist. Thank you for you reply though. |
gss_localname() is included from <gssapi/gssapi_ext.h>, via <gssapi/gssapi_krb5.h> |
I tried to compile this module at MacOS and relative gss_localname() error occurs. But it seems to be right when I used same command in CentOS docker container. I don't know if the environment matters. |
|
Thank you for you reply. Now I am working on resolving web browser access to page which protected by Kerberos. I configured Nginx with spnege module and set the conf file like below: ' |
Here are the error details.
../spnego-http-auth-nginx-module/ngx_http_auth_spnego_module.c:761:9: error: variable 'kcontext' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (!delegated_creds.data) {
^~~~~~~~~~~~~~~~~~~~~
../spnego-http-auth-nginx-module/ngx_http_auth_spnego_module.c:838:9: note: uninitialized use occurs here
if (kcontext)
^~~~~~~~
../spnego-http-auth-nginx-module/ngx_http_auth_spnego_module.c:761:5: note: remove the 'if' if its condition is always false
if (!delegated_creds.data) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../spnego-http-auth-nginx-module/ngx_http_auth_spnego_module.c:754:26: note: initialize the variable 'kcontext' to silence this warning
krb5_context kcontext;
^
= NULL
../spnego-http-auth-nginx-module/ngx_http_auth_spnego_module.c:1531:28: error: implicit declaration of function 'gss_localname' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
major_status = gss_localname(&minor_status, client_name, mech_type,
^
2 errors generated.
make[1]: *** [objs/addon/spnego-http-auth-nginx-module/ngx_http_auth_spnego_module.o] Error 1
make: *** [modules] Error 2
The text was updated successfully, but these errors were encountered: