Menu

#14 libtirpc is unusable when gss is disabled

open
nobody
None
5
2012-11-20
2009-05-30
No

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));

Discussion

  • Nobody/Anonymous

    I am facing the same issue. Trying to build rpcbind after tirpc (0.2.0) is installed.

     
  • steved

    steved - 2009-07-09

    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>