LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-07-2016, 10:51 AM   #1
-Soufiane-
LQ Newbie
 
Registered: May 2013
Location: France
Posts: 14

Rep: Reputation: Disabled
[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,

Last edited by -Soufiane-; 08-07-2016 at 11:26 AM. Reason: Additional details
 
Old 08-07-2016, 02:10 PM   #2
-Soufiane-
LQ Newbie
 
Registered: May 2013
Location: France
Posts: 14

Original Poster
Rep: Reputation: Disabled
[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.
 
Old 08-07-2016, 02:29 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,998

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Thanks for the update and solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SHMMAX paramater in linux thiyagusham Linux - Newbie 3 11-25-2012 05:01 PM
SHMMAX paramater in linux thiyagusham Linux - Newbie 1 11-23-2012 02:46 PM
Qemu Monitor samurai37 Linux - Virtualization and Cloud 2 11-07-2012 10:23 PM
[SOLVED] Second monitor, EDID checksum is invalid Zilvermeeuw Linux - Hardware 7 07-04-2012 01:14 PM
Invalid command : monitor tekn0phile Linux - Hardware 0 10-18-2003 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration