Bug 1293060 - Unable to build libvirt on OpenBSD (undefined reference to xdr_uint64_t)
Summary: Unable to build libvirt on OpenBSD (undefined reference to xdr_uint64_t)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Other
unspecified
low
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-19 18:42 UTC by Jasper Lievisse Adriaanse
Modified: 2016-03-21 23:36 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-03-21 23:36:25 UTC
Embargoed:


Attachments (Terms of Use)
Unbreak build when xdr_uint64_t is not defined (1.56 KB, text/plain)
2015-12-19 18:42 UTC, Jasper Lievisse Adriaanse
no flags Details

Description Jasper Lievisse Adriaanse 2015-12-19 18:42:48 UTC
Created attachment 1107788 [details]
Unbreak build when xdr_uint64_t is not defined

Since livirt 1.3.0 I'm no longer able to build libvirt on OpenBSD due to an undefined reference to xdr_uint64_t.
It seems this problem has been addressed in the past already so please find attached a patch which extends this approach. Note that I have only been able to test my modifications to the .c files as rpcgen failed to parse the .x files on OpenBSD (failed on 'hyper'):

/usr/bin/perl -w ./rpc/genprotocol.pl /usr/bin/rpcgen -h \
       logging/log_protocol.x ./logging/log_protocol.h
    unsigned hyper inode;

^^^^^^^^^^^^^^^^^^^^^^^^
logging/log_protocol.x, line 46: expected ';'
cannot shutdown /usr/bin/rpcgen:  at ./rpc/genprotocol.pl line 139.

It would be greatly appreciated if someone can verify that my patches build on Linux too. Note that it would probably unbreak the build on Cygwin too.

Comment 1 Cole Robinson 2016-03-21 23:36:25 UTC
It appears your patches went upstream, so closing


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