[Bug 261810] www/nginx: error HTTP_AUTH_KRB5

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 09 Feb 2022 02:47:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261810

            Bug ID: 261810
           Summary: www/nginx: error HTTP_AUTH_KRB5
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: joneum@FreeBSD.org
          Reporter: bsd@itglob.ru
          Assignee: joneum@FreeBSD.org
             Flags: maintainer-feedback?(joneum@FreeBSD.org)

nginx cannot start with this error:

nginx: [emerg] dlopen()
"/usr/local/libexec/nginx/ngx_http_auth_spnego_module.so" failed
(/usr/local/libexec/nginx/ngx_http_auth_spnego_module.so: Undefined symbol
"__gss_krb5_mechanism_oid_desc") in /usr/local/etc/nginx/nginx.conf:7
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed


OPTIONS_FILE_SET+=GSSAPI_HEIMDAL
OPTIONS_FILE_UNSET+=GSSAPI_MIT

fix:

--- extra-patch-spnego-http-auth-nginx-module-config.orig       2020-10-19
14:34:15.000000000 +0300
+++ extra-patch-spnego-http-auth-nginx-module-config    2022-02-09
04:32:37.602451000 +0300
@@ -3,8 +3,8 @@
 @@ -1,8 +1,10 @@
  ngx_addon_name=ngx_http_auth_spnego_module
 -ngx_feature_libs="-lgssapi_krb5 -lkrb5 -lcom_err"
-+ngx_feature_libs="%%GSSAPILIBS%%"
-+ngx_module_incs="%%GSSAPINCDIR%%"
++ngx_feature_libs="-L %%GSSAPILIBDIR%% %%GSSAPILIBS%%"
++ngx_module_incs="%%GSSAPIINCDIR%%"

 +
  if uname -o | grep -q FreeBSD; then

-- 
You are receiving this mail because:
You are the assignee for the bug.