Bug 1544851

Summary: Redefinitions of IXDR_GET_LONG and IXDR_PUT_LONG when libtirpc is used
Product: [Community] GlusterFS Reporter: James Le Cuirot <chewi>
Component: buildAssignee: bugs <bugs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: mainlineCC: anoopcs, bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-4.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-14 07:59:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Le Cuirot 2018-02-13 15:52:01 UTC
This happens when IPv6 is not made the default. Many warnings like this are seen:

In file included from /usr/include/tirpc/rpc/rpc.h:43:0,
                 from ../../rpc/xdr/src/glusterfs-fops.h:9,
                 from glusterfs.h:33,
                 from fd.h:17,
                 from inode.h:34,
                 from inode.c:11:
/usr/include/tirpc/rpc/xdr.h:267:0: warning: "IXDR_GET_LONG" redefined
 #define IXDR_GET_LONG(buf)  ((long)ntohl((u_int32_t)*(buf)++))

Please see:
https://review.gluster.org/#/c/19334/

Comment 1 Worker Ant 2018-02-13 15:55:03 UTC
REVIEW: https://review.gluster.org/19334 (build: Fix redefinitions when using libtirpc without IPv6 by default) posted (#3) for review on master by James Le Cuirot

Comment 2 James Le Cuirot 2018-03-09 21:54:49 UTC
My change was abandoned but this was dealt with in https://review.gluster.org/19548.