Bug 1293060

Summary: Unable to build libvirt on OpenBSD (undefined reference to xdr_uint64_t)
Product: [Community] Virtualization Tools Reporter: Jasper Lievisse Adriaanse <jasper>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: crobinso, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Other   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-21 23:36:25 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:
Attachments:
Description Flags
Unbreak build when xdr_uint64_t is not defined none

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