LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   [QEMU]: error: 'g_mem_set_vtable' is deprecated (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/%5Bqemu%5D-error-g_mem_set_vtable-is-deprecated-4175586499/)

-Soufiane- 08-07-2016 10:51 AM

[QEMU]: error: 'g_mem_set_vtable' is deprecated
 
Hi all,

I'am trying to implement QEMU Micro-checkpointing following this Qemu feature guide.

So as mentioned in the guide, here are the steps I went through:

Quote:

$ yaourt -S libnl #libnl-3.2.27-1
$ git clone http://github.com/hinesmr/qemu.git
$ git checkout 'mc'
$ ./configure --enable-mc
$ make
.
.
.
GEN config-host.h
CHK version_gen.h
GEN trace/generated-tracers.h
GEN trace/generated-tcg-tracers.h
GEN trace/generated-helpers-wrappers.h
GEN trace/generated-helpers.h
CC vl.o
vl.c: In function 'main':
vl.c:2976:5: error: 'g_mem_set_vtable' is deprecated [-Werror=deprecated-declarations]
g_mem_set_vtable(&mem_trace);
^~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/glist.h:32:0,
from /usr/include/glib-2.0/glib/ghash.h:33,
from /usr/include/glib-2.0/glib.h:50,
from vl.c:59:
/usr/include/glib-2.0/glib/gmem.h:357:7: note: declared here
void g_mem_set_vtable (GMemVTable *vtable);
^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [/root/qemu/rules.mak:57: vl.o] Error 1

I did some research , and there are ones that talk about a fix in the master branch (which I don't know how to get to it) and there are ones that talk about a patch.

Can anyone please provide me with guidance, I am stuck and I couldn't figure this out,

P.S: my OS is an Archlinux, Python is v2.7 , Qemu v2.1.0

Regards,

-Soufiane- 08-07-2016 02:10 PM

[QEMU]: error: 'g_mem_set_vtable' is deprecated
 
Problem solved,

I did this:

Quote:

./configure --disable-werror --enable-mc
so the compilation ignores the warning error.

jefro 08-07-2016 02:29 PM

Thanks for the update and solution.


All times are GMT -5. The time now is 02:37 PM.