Skip to contentSkip to conversation

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

[email protected]: Bug#297729: nfs-utils: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment Chip Salzenberg 1 participant 1 message Mar 2, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

support/rpc/svc_auth_gss.c renamed from tmp-orig/nfs-utils-1.0.7/support/rpc/svc_auth_gss.c +1 -1
diff -urN ../tmp-orig/nfs-utils-1.0.7/support/rpc/svc_auth_gss.c ./support/rpc/svc_auth_gss.c
@@ -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 -----

Signature · 12 lines
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