Description of problem: When building on a 64-bit system against Python 3.x, hivex issues warnings like: ../../../python/hivex-py.c:810:3: warning: implicit declaration of function 'Py_InitModule' [-Wimplicit-function-declaration] This is almost certainly a bug. The problem seems to be the use of PyString_* instead of PyBytes_*. PyString_* is no longer available on Python 3.x. How reproducible: Always Steps to Reproduce: 1. Build on amd64 with Python 3.x Additional info: See Debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=646383
We don't yet support python 3 in hivex, but ought to. See similar changes made to libguestfs recently: https://bugzilla.redhat.com/show_bug.cgi?id=750889 http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=2116f79cbcd4605b4997931285f14dde1f72a992
Fix is upstream: http://git.annexia.org/?p=hivex.git;a=commitdiff;h=207402a20ac8be74e767876f8ac93aba6292b2a9
In case it's not clear, you can select which Python to use by exporting the PYTHON environment variable before ./configure, eg: PYTHON=python3 ./configure