bringhurst / nginx-mod-auth-kerb

An nginx module to enable the use of SPNEGO, GSSAPI, and Kerberos for HTTP SSO authentication.
Other
37 stars 8 forks source link

Compile error: undefined reference to symbol 'krb5_free_context@@krb5_3_MIT' #1

Closed petRUShka closed 12 years ago

petRUShka commented 12 years ago

When I try to compile I get an error

objs/ngx_modules.o \
-lpthread -lcrypt -lspnegohelp -lgssapi_krb5 -lpcre -lssl -lcrypto -ldl -lz
/usr/bin/ld: objs/addon/nginx-mod-auth-kerb/ngx_http_auth_sso_module.o: undefined reference to symbol 'krb5_free_context@@krb5_3_MIT'
/usr/bin/ld: note: 'krb5_free_context@@krb5_3_MIT' is defined in DSO /usr/lib/libkrb5.so.3 so try adding it to the linker command line
/usr/lib/libkrb5.so.3: could not read symbols: Invalid operation

I fix this error by getting krb5-config flags.

P.S. By the way I fix README viewing error.

bringhurst commented 12 years ago

Sweet. Thanks for the patch!