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

Wireshark fails to run on my SPARC server

0

Hi, I have installed the wireshark server on my sparc server. after installing when I am launching the wireshark it gets launched successfully.

But after I do do the tcsh to set the DISPLAY I gets the below error. what could be the reason:

ld.so.1: wireshark: fatal: relocation error: file /usr/local/lib/libwireshark.so.1: symbol g_int64_equal: referenced symbol not found Killed

asked 13 Jun '13, 04:58

KumarM's gravatar image

KumarM
11445
accept rate: 0%

edited 13 Jun '13, 10:14

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196


One Answer:

0

Did you configure and build Wireshark on a machine with the same version of the GLib library as the server on which you installed it?

If not, do so. g_int64_equal() is defined by GLib 2.22 and later; if Wireshark is built on a system with a pre-2.22 version of GLib, the Infiniband dissector will supply its own versions, but if it's built on a system with GLib 2.22 or later, it relies on GLib to supply it, so if you configure and build Wireshark on a system with GLib 2.22 or later, that version of Wireshark will not work on a system with a version of GLib earlier than GLib 2.22.

answered 13 Jun '13, 10:13

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

I have installed Glib 2.22. But now I am getting another error:

ld.so.1: wireshark: fatal: relocation error: file /usr/local/bin/wireshark: symbol gtk_window_set_icon_name: referenced symbol not found

I did not find any info related to above error. Anyone knows what could be the reason of this error.

(26 Jun '13, 07:26) KumarM

Anyone knows what could be the reason of this error.

One reason could be that gtk_window_set_icon_name() isn't present in GTK+ prior to 2.6, so you'll need to install GTK+ 2.6 or later if you have an older version installed.

(26 Jun '13, 10:33) Guy Harris ♦♦

I have installed the gtk+-2.12.0-sol10-x86-local, but still the same error.

(27 Jun '13, 20:29) KumarM

What gets printed by

ldd /usr/local/bin/wireshark
(28 Jun '13, 00:06) Guy Harris ♦♦

Here is the output:

atrcx1220{root} # ldd /usr/local/bin/wireshark
 libwiretap.so.2 =>  /usr/local/lib/libwiretap.so.2
 libwireshark.so.2 => /usr/local/lib/libwireshark.so.2
 liblua.so =>     /usr/local/lib/liblua.so
 libwsutil.so.2 =>   /usr/local/lib/libwsutil.so.2
 libcrypto.so.0.9.8 =>    /usr/local/ssl/lib/libcrypto.so.0.9.8
 libkrb5.so.3 =>  /usr/local/lib/libkrb5.so.3
 libk5crypto.so.3 => /usr/local/lib/libk5crypto.so.3
 libcom_err.so.3 =>  /usr/local/lib/libcom_err.so.3
 libgtk-x11-2.0.so.0 =>   /usr/local/lib/libgtk-x11-2.0.so.0
 libgdk-x11-2.0.so.0 =>  /usr/local/lib/libgdk-x11-2.0.so.0
 libatk-1.0.so.0 =>  /usr/local/lib/libatk-1.0.so.0
 libgdk_pixbuf-2.0.so.0 =>        /usr/local/lib/libgdk_pixbuf-2.0.so.0
 libmlib.so.2 =>  /usr/lib/libmlib.so.2
 libpangocairo-1.0.so.0 => /usr/local/lib/libpangocairo-1.0.so.0
 libpangoft2-1.0.so.0 =>  /usr/local/lib/libpangoft2-1.0.so.0
 libpango-1.0.so.0 =>  /usr/local/lib/libpango-1.0.so.0
 libcairo.so.2 =>  /usr/local/lib/libcairo.so.2
 libfontconfig.so.1 =>  /usr/local/lib/libfontconfig.so.1
 libfreetype.so.6 =>  /usr/local/lib/libfreetype.so.6
 libexpat.so.1 => /usr/local/lib/libexpat.so.1
 libresolv.so.2 => /usr/lib/libresolv.so.2
 libpng12.so.0 =>  /usr/local/lib/libpng12.so.0
 libXrender.so.1 => /usr/local/lib/libXrender.so.1
 libSM.so.6 =>    /usr/lib/libSM.so.6
 libICE.so.6 =>   /usr/lib/libICE.so.6
 libX11.so.4 =>   /usr/lib/libX11.so.4
 libsocket.so.1 => /usr/lib/libsocket.so.1
 libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0
 libgthread-2.0.so.0 => /usr/local/lib/libgthread-2.0.so.0
 libpthread.so.1 => /usr/lib/libpthread.so.1
 libthread.so.1 =>  /usr/lib/libthread.so.1
 librt.so.1 =>  /usr/lib/librt.so.1
 libgmodule-2.0.so.0 =>  /usr/local/lib/libgmodule-2.0.so.0
 libdl.so.1 =>    /usr/lib/libdl.so.1
 libglib-2.0.so.0 =>      /usr/local/lib/libglib-2.0.so.0
 libintl.so.8 =>  /usr/local/lib/libintl.so.8
 libiconv.so.2 => /usr/local/lib/libiconv.so.2
 libsec.so.1 => /usr/lib/libsec.so.1
 libc.so.1 => /usr/lib/libc.so.1
 libm.so.2 => /usr/lib/libm.so.2
 libnsl.so.1 =>/usr/lib/libnsl.so.1
 libz.so =>/usr/local/lib/libz.so
 libgcc_s.so.1 =>  /usr/local/lib/libgcc_s.so.1
 libkrb5support.so.0 => /usr/local/lib/libkrb5support.so.0
 libXrandr.so.2 => /usr/lib/libXrandr.so.2
 libXext.so.0 =>  /usr/lib/libXext.so.0
 libexpat.so.0 => /usr/local/lib/libexpat.so.0
 libaio.so.1 =>   /lib/libaio.so.1
 libmd.so.1 =>    /lib/libmd.so.1
 libavl.so.1 =>   /lib/libavl.so.1
 libmp.so.2 =>    /lib/libmp.so.2
 libscf.so.1 =>   /lib/libscf.so.1
 libXrender.so.1 => /usr/openwin/sfw/lib/libXrender.so.1
 libdoor.so.1 =>  /lib/libdoor.so.1
 libuutil.so.1 =>/lib/libuutil.so.1
 libgen.so.1 => /lib/libgen.so.1
 /usr/lib/libmlib/libmlib_sse2.so.2
(28 Jun '13, 03:22) KumarM

OK, what does

nm -p /usr/local/lib/libgtk-x11-2.0.so.0 | egrep gtk_window_set_icon_name

print?

(28 Jun '13, 09:22) Guy Harris ♦♦

This:

atrcx1220{root} # nm -p /usr/local/lib/libgtk-x11-2.0.so.0 | egrep gtk_window_set_icon_name
0002388232 T gtk_window_set_icon_name
(30 Jun '13, 20:15) KumarM

And if you type the command

/usr/local/bin/wireshark

what happens?

(30 Jun '13, 23:04) Guy Harris ♦♦
showing 5 of 8 show 3 more comments