Wireshark-dev: Re: [Wireshark-dev] Use of deprecated glib function
From: Bill Meier <wmeier@xxxxxxxxxxx>
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
- References:
- [Wireshark-dev] Use of deprecated glib function
- From: Joerg Mayer
- [Wireshark-dev] Use of deprecated glib function
- Prev by Date: [Wireshark-dev] Use of deprecated glib function
- Next by Date: Re: [Wireshark-dev] Use of deprecated glib function
- Previous by thread: [Wireshark-dev] Use of deprecated glib function
- Next by thread: Re: [Wireshark-dev] Use of deprecated glib function
- Index(es):