Bug 1596206 - XDR files contain illegal "long" integer declarations.
Summary: XDR files contain illegal "long" integer declarations.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: GlusterFS
Classification: Community
Component: rpc
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1596188 1596208
TreeView+ depends on / blocked
 
Reported: 2018-06-28 12:22 UTC by Niels de Vos
Modified: 2018-07-03 18:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1596188
Environment:
Last Closed: 2018-07-03 18:48:52 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Niels de Vos 2018-06-28 12:22:16 UTC
+++ This bug was initially created as a clone of Bug #1596188 +++

Description of problem:

With some toolchains (latest buildroot for example) the rpcgen rejects to process the rpc/xdr/src/changelog-xdr.x file, because it contains "unsigned long" integer declarations. Looking at the standard, long is not supported in XDR: https://tools.ietf.org/html/rfc4506#section-4.2


Version-Release number of selected component (if applicable):


How reproducible:
Compile gluster with buildroot 2018.05.

Actual results:

------------------------------------
Making all in rpc/xdr/gen
       unsigned long seq;
^^^^^^^^^^^^^^^^^^^^^^^^
changelog-xdr.x, line 30: expected ';'
Makefile:562: recipe for target 'changelog-xdr.h' failed
make[5]: *** [changelog-xdr.h] Error 1
------------------------------------

Expected results:

Compilation without error.

Additional info:

fix attached

Comment 1 Sven Anderson 2018-07-03 18:48:52 UTC
On master the XDR has been already changed here to use hyper: https://review.gluster.org/#/c/19098/

CLOSED


Note You need to log in before you can comment on or make changes to this bug.