Wireshark-dev: [Wireshark-dev] Use of deprecated glib function
From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Sun, 15 Jan 2012 18:41:33 +0100
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

-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.