This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Source code cannot be compiled successfully

0

Source code can no be compiled successful in linux,the error is in the following, who can help me to deal with it,and ido not know what the reason is.thanks!

mate_runtime.c: In function 'destroy_mate_pdus':
mate_runtime.c:64: warning: implicit declaration of function 'g_slice_free'
mate_runtime.c:64: error: expected expression before 'mate_max_size'
mate_runtime.c: In function 'destroy_mate_gops':
mate_runtime.c:81: error: expected expression before 'mate_max_size'
mate_runtime.c: In function 'destroy_mate_gogs':
mate_runtime.c:99: error: expected expression before 'mate_max_size'
mate_runtime.c: In function 'new_gop':
mate_runtime.c:175: warning: implicit declaration of function 'g_slice_new'
mate_runtime.c:175: error: expected expression before 'mate_max_size'
mate_runtime.c:175: warning: cast to pointer from integer of different size
mate_runtime.c: In function 'new_gog':
mate_runtime.c:239: error: expected expression before 'mate_max_size'
mate_runtime.c:239: warning: cast to pointer from integer of different size
mate_runtime.c: In function 'new_pdu':
mate_runtime.c:710: error: expected expression before 'mate_max_size'
mate_runtime.c:710: warning: cast to pointer from integer of different size
mate_runtime.c: In function 'mate_analyze_frame':
mate_runtime.c:881: error: expected expression before 'mate_max_size'
mate_runtime.c:892: error: expected expression before 'mate_max_size'
make[3]: *** [mate_runtime.lo] Error 1
make[3]: Leaving directory `/data/webroot/tshark/wireshark-1.6.7/plugins/mate'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/data/webroot/tshark/wireshark-1.6.7/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/webroot/tshark/wireshark-1.6.7'
make: *** [all] Error 2

asked 23 Apr '12, 02:50

kurokyli's gravatar image

kurokyli
1111
accept rate: 0%

edited 24 Apr '12, 02:02

grahamb's gravatar image

grahamb ♦
19.8k330206


One Answer:

1

Wireshark 1.6 and later require a version of GLib that supports "memory slices", which means it requires GLib 2.10 or later; you probably have an older version of GLib.

There's a bug in 1.6's configure script, in that it doesn't check to make sure you have GLib 2.10 or later, it checks for GLib 2.4 or later.

You would either have to upgrade the GLib (and GTK+) on your system, or try building Wireshark 1.4.12 instead.

answered 23 Apr '12, 11:44

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

I requested that the change which requires glib 2.10 or later be reverted from the 1.6 branch; with luck it'll make the 1.6.8 release.

(21 May '12, 08:24) JeffMorriss ♦