Description of problem: The python bindings assume that the version of libguestfs they will be compiled against is precisely the same version of libguestfs. This is a fair assumption given that we bundle the python bindings with libguestfs. However it breaks when using the pip install method (https://github.com/libguestfs/libguestfs/commit/fcbfc4775fa2a44020974073594a745ca420d614) where the version of libguestfs installed is not the same as the version of the bindings -- in fact they could be very different. Version-Release number of selected component (if applicable): 1.31.6 How reproducible: 100% Steps to Reproduce: 1. On RHEL 7, check out libguestfs from git (ie. libguestfs will be much newer than the RHEL 7 version) 2. Follow the instructions in the link above to build Python bindings. Actual results: Many compilation failures for functions, macros and structs that don't exist.
Patches posted: https://www.redhat.com/archives/libguestfs/2015-September/msg00063.html
Upstream in libguestfs >= 1.31.7. https://github.com/libguestfs/libguestfs/commit/a17627cdd2f06a65d69889fa0289531caf3b9d23 https://github.com/libguestfs/libguestfs/commit/ac5b3a050dbbf85b1430ba81a6e44ad6c08efa1f https://github.com/libguestfs/libguestfs/commit/bb7d088edaa2ea3a664ae703e002f6297dd1844f