python icon indicating copy to clipboard operation
python copied to clipboard

Compilation issues

Open mister-Q opened this issue 1 year ago • 8 comments

Hi, I am trying to compile python bindings to test libvmi with volatility, but got compilation errors : (BTW: All libvmi/libkvmi examples are working with my VM and libvmi is installed on my system)

x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/python3.9 -c build/temp.linux-x86_64-3.9/_libvmi.c -o build/temp.linux-x86_64-3.9/build/temp.linux-x86_64-3.9/_libvmi.o

build/temp.linux-x86_64-3.9/_libvmi.c: In function ‘_cffi_checkfld_typedef_access_context_t’:

build/temp.linux-x86_64-3.9/_libvmi.c:1050:12: error: ‘access_context_t’ has no member named ‘version’
 1050 |   (void)((p->version) | 0);  /* check that 'access_context_t.version' is an integer */
      |            ^~

Indeed this struct has no member (def in /usr/local/include/libvmi.h) BTW: header file in build/lib.linux-xxx/libvmi_cdef.h is present.

So my questions are:

  • Am i using the right repo (i used kvm-vmi in order to use kvm as hypervisor)
  • Is python bindings still the way to go to link libvmi with volatility3 (i have seen another project microvmi)
  • could i have some help regarding to these errors ? Best regards,

mister-Q avatar Sep 26 '23 15:09 mister-Q