From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TthzY-0007l8-L2 for qemu-devel@nongnu.org; Fri, 11 Jan 2013 12:02:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TthzT-0000Dw-J6 for qemu-devel@nongnu.org; Fri, 11 Jan 2013 12:02:04 -0500 Received: from mail-qc0-f170.google.com ([209.85.216.170]:59784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TthzT-0000Dq-EX for qemu-devel@nongnu.org; Fri, 11 Jan 2013 12:01:59 -0500 Received: by mail-qc0-f170.google.com with SMTP id d42so1259994qca.29 for ; Fri, 11 Jan 2013 09:01:58 -0800 (PST) Sender: Paolo Bonzini Message-ID: <50F04581.7080902@redhat.com> Date: Fri, 11 Jan 2013 18:01:53 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] Fix the glib deprecated APIs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ramesh G Cc: stefanha@gmail.com, qemu-devel@nongnu.org Il 11/01/2013 17:10, Ramesh G ha scritto: > > Hi, > > I got a couple of below compilation errors while compiling with glib > > 2.32. > > $ make > CC ../trace/simple.o > ../trace/simple.c: In function ‘trace_thread_create’: > ../trace/simple.c:407:5: error: ‘g_thread_create’ is deprecated > (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:100): Use > 'g_thread_new' instead [-Werror=deprecated-declarations] > ../trace/simple.c: In function ‘trace_backend_init’: > ../trace/simple.c:428:5: error: ‘g_cond_new’ is deprecated (declared at > /usr/include/glib-2.0/glib/deprecated/gthread.h:275) > [-Werror=deprecated-declarations] > ../trace/simple.c:429:5: error: ‘g_cond_new’ is deprecated (declared at > /usr/include/glib-2.0/glib/deprecated/gthread.h:275) > [-Werror=deprecated-declarations] > cc1: all warnings being treated as errors > make: *** [../trace/simple.o] Error 1 > $ > > I found these APIs have been deprecated in 2.32. Please find the patch > attached which fixes this problem. Please let me know your thoughts. Could you instead change it to use qemu-thread? Paolo