libvmi / python

LibVMI Python bindings
http://libvmi.com/
GNU Lesser General Public License v3.0
30 stars 22 forks source link

python binding show :error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 #79

Closed lryzxy closed 2 years ago

lryzxy commented 2 years ago

python3 setup.py build
/usr/local/lib/python3.6/dist-packages/setuptools/dist.py:726: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  % (opt, underscore_opt)
/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py:119: PkgResourcesDeprecationWarning: 0.18ubuntu0.18.04.1 is an invalid version and will not be supported in a future release
  PkgResourcesDeprecationWarning,
/usr/local/lib/python3.6/dist-packages/setuptools/installer.py:30: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
  SetuptoolsDeprecationWarning,
/usr/local/lib/python3.6/dist-packages/setuptools/dist.py:726: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  % (opt, underscore_opt)
running build
running build_py
running build_ext
generating cffi module 'build/temp.linux-x86_64-3.6/_libvmi.c'
already up-to-date
building '_libvmi' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -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.6m -c build/temp.linux-x86_64-3.6/_libvmi.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_libvmi.o
build/temp.linux-x86_64-3.6/_libvmi.c: In function ‘_cffi_checkfld_typedef_reg_event_t’:
build/temp.linux-x86_64-3.6/_libvmi.c:1135:14: error: ‘reg_event_t {aka struct reg_event}’ has no member named ‘_pad’; did you mean ‘_pad1’?
   (void)((p->_pad) | 0);  /* check that 'reg_event_t._pad' is an integer */
              ^~~~
              _pad1
In file included from /usr/include/sched.h:29:0,
                 from /usr/include/pthread.h:23,
                 from /usr/include/glib-2.0/glib/deprecated/gthread.h:128,
                 from /usr/include/glib-2.0/glib.h:108,
                 from /usr/local/include/libvmi/libvmi_extra.h:32,
                 from build/temp.linux-x86_64-3.6/_libvmi.c:572:
build/temp.linux-x86_64-3.6/_libvmi.c: At top level:
build/temp.linux-x86_64-3.6/_libvmi.c:10454:35: error: ‘reg_event_t {aka struct reg_event}’ has no member named ‘_pad’; did you mean ‘_pad1’?
   { "_pad", offsetof(reg_event_t, _pad),
                                   ^
build/temp.linux-x86_64-3.6/_libvmi.c:10455:40: error: ‘reg_event_t {aka struct reg_event}’ has no member named ‘_pad’; did you mean ‘_pad1’?
             sizeof(((reg_event_t *)0)->_pad),
                                        ^~~~
                                        _pad1
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
lryzxy commented 2 years ago

please help me

lryzxy commented 2 years ago

@Wenzel I have finished python binding. Thank you very much for your help!