svc.c always refers to svc_auth_gss_ops:
else if ((xprt->xp_auth != NULL) &&
(xprt->xp_auth->svc_ah_ops != &svc_auth_gss_ops))
but that is not available when --disable-gss is used which leads to a useless libtirpc -- anything that links against it will fail with undefined symbol svc_auth_gss_ops
not sure if the fix is as easy as:
-extern struct svc_auth_ops svc_auth_gss_ops;
+extern struct svc_auth_ops svc_auth_gss_ops __attribute__((weak));
I am facing the same issue. Trying to build rpcbind after tirpc (0.2.0) is installed.
commit 8717a2cff3ad6a4023b45864912987d831cd5f0b
Author: Steve Dickson <steved@redhat.com>
Date: Thu Jul 9 15:53:08 2009 -0400
Added HAVE_LIBGSSAPI defines around gss code
so the --disble-gss configure option would work
Renamed configure.in to configure.ac so the HAVE_LIBGSSAPI
define would be defined in the correct place.
Clean up warnings when --enable-gss is used.
Signed-off-by: Steve Dickson <steved@redhat.com>