Package: nfs-utils
Severity: normal
Tags: patch

When building 'nfs-utils' on amd64 with gcc-4.0,
I get the following error:

gcc -g -O2 -D_GNU_SOURCE -DHAVE_TCP_WRAPPER -I../../support/include 
-I/usr/include -Wall  -pipe  -DVERSION="\"nfs-utils 1.0.7\"" -DNFS3_SUPPORTED 
-I../../support/rpc/include -DDEBUG   -c -o svc_auth_gss.o svc_auth_gss.c
svc_auth_gss.c: In function 'svcauth_gss_import_name':
svc_auth_gss.c:124: warning: passing argument 3 of 'gss_import_name' discards 
qualifiers from pointer target type
svc_auth_gss.c: In function '_svcauth_gss':
svc_auth_gss.c:385: error: invalid lvalue in assignment
make[3]: *** [svc_auth_gss.o] Error 1

With the attached patch 'nfs-utils' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/nfs-utils-1.0.7/support/rpc/svc_auth_gss.c 
./support/rpc/svc_auth_gss.c
--- ../tmp-orig/nfs-utils-1.0.7/support/rpc/svc_auth_gss.c      2004-10-19 
02:23:05.000000000 +0200
+++ ./support/rpc/svc_auth_gss.c        2005-03-02 17:08:51.007556121 +0100
@@ -382,7 +382,7 @@
                        return (AUTH_FAILED);
                }
                auth->svc_ah_ops = &svc_auth_gss_ops;
-               SVCAUTH_PRIVATE(auth) = gd;
+               auth->svc_ah_private = gd;
                rqst->rq_xprt->xp_auth = auth;
        }
        else gd = SVCAUTH_PRIVATE(rqst->rq_xprt->xp_auth);


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to