Wireshark mailing list archives

Re: Use of deprecated glib function


From: Bill Meier <wmeier () newsguy com>
Date: Sun, 15 Jan 2012 12:44:26 -0500

On 1/15/2012 12:41 PM, Joerg Mayer wrote:
Hello,

compiling with current glib (2.31.6) dies with:

[ 95%] Building C object plugins/mate/CMakeFiles/mate.dir/mate_runtime.c.o
cc1: warnings being treated as errors
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c: In function 'destroy_mate_pdus':
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c:64: warning: 'g_mem_chunk_free' is deprecated (declared at 
/usr/local/include/glib-2.0/glib/deprecated/gallocator.h:57)
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c: In function 'destroy_mate_gops':
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c:81: warning: 'g_mem_chunk_free' is deprecated (declared at 
/usr/local/include/glib-2.0/glib/deprecated/gallocator.h:57)
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c: In function 'destroy_mate_gogs':
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c:99: warning: 'g_mem_chunk_free' is deprecated (declared at 
/usr/local/include/glib-2.0/glib/deprecated/gallocator.h:57)
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c: In function 'initialize_mate_runtime':
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c:143: warning: 'g_mem_chunk_new' is deprecated (declared at 
/usr/local/include/glib-2.0/glib/deprecated/gallocator.h:48)
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c: In function 'new_gop':
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c:176: warning: 'g_mem_chunk_alloc' is deprecated (declared at 
/usr/local/include/glib-2.0/glib/deprecated/gallocator.h:52)
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c: In function 'new_gog':
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c:240: warning: 'g_mem_chunk_alloc' is deprecated (declared at 
/usr/local/include/glib-2.0/glib/deprecated/gallocator.h:52)
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c: In function 'new_pdu':
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c:712: warning: 'g_mem_chunk_alloc' is deprecated (declared at 
/usr/local/include/glib-2.0/glib/deprecated/gallocator.h:52)
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c: In function 'mate_analyze_frame':
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c:883: warning: 'g_mem_chunk_free' is deprecated (declared at 
/usr/local/include/glib-2.0/glib/deprecated/gallocator.h:57)
/Users/jmayer/wireshark/svn/plugins/mate/mate_runtime.c:894: warning: 'g_mem_chunk_free' is deprecated (declared at 
/usr/local/include/glib-2.0/glib/deprecated/gallocator.h:57)
make[2]: *** [plugins/mate/CMakeFiles/mate.dir/mate_runtime.c.o] Error 1
make[1]: *** [plugins/mate/CMakeFiles/mate.dir/all] Error 2
make: *** [all] Error 2

The only places where g_mem_chunk_free is still used seem to be
plugins/mate/mate_runtime.c and plugins/mate/mate_util.c. Someone
willing to fix this?

Ciao
    Joerg


Funny you should ask...

I'm actually just in the midst of making the changes (and learning about MATE).

Bill



___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: