2005-03-02 16:49:37

by Chip Salzenberg

[permalink] [raw]
Subject: [[email protected]: Bug#297729: nfs-utils: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment]

A Debian user has contributed the below patch, which fixes a compile
error in the Debian amd64 environment. ("FTBFS" = Fails To Build From
Source) Any comments on it?

----- Forwarded message from Andreas Jochens <[email protected]> -----

Subject: Bug#297729: nfs-utils: FTBFS (amd64/gcc-4.0): invalid lvalue in
assignment
From: Andreas Jochens <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Date: Wed, 02 Mar 2005 17:20:52 +0100

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



----- End forwarded message -----

--
Chip Salzenberg - a.k.a. - <[email protected]>
"What I cannot create, I do not understand." - Richard Feynman


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs