Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Cannot launch newly-built SVN "tshark" binaries under Ubuntu

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Sun, 20 Jan 2013 14:26:18 +0100
Hi,

It looks as if your ld-linux is finding an older (1.8?) libwireshark, which does
not export those symbols. Don't make install (no need) and run from the build
directory first:

WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 ./wireshark &

Thanks,
Jaap


On 01/18/2013 07:25 PM, Tyson Key wrote:
> Hi list,
> 
> Apologies if it sounds as if I'm doing something stupid, or missing something
> obvious; and for the verbosity of this e-mail.
> 
> Over the past day or so, I've ended up upgrading one of my Ubuntu installations
> from 11.04, to 11.10, as a result of some problems regarding building against
> the GTK packages that I had installed, whilst trying to test a dissector that
> I'm working on. I also decided to upgrade my LibPCap version to
> 1.4.0-PRE-GIT_2013_01_18, from a customised build of an earlier Git revision.
> 
> Now, attempting to build Wireshark from source (using either the
> automatically-generated archives, or by manually checking out the repository
> trunk) seemingly succeeds, and running "make install" works as expected.
> However, attempting to run either the GTK-based Wireshark application, or the
> TShark utility fails with a multitude of errors (some related to inconsistencies
> in the plug-in ABI/missing symbols - despite doing clean installations, every
> time).
> 
> If I try to launch the GTK application, I see a chain of dialogues stating:
> /Couldn't load module
> /home/tysonkey/wireshark-1.9.0-SVN-47138/plugins/wimaxasncp/.libs/wimaxasncp.so:
> /home/tysonkey/wireshark-1.9.0-SVN-47138/plugins/wimaxasncp/.libs/wimaxasncp.so:
> undefined symbol: eap_type_vals_ext
> 
> Couldn't load module
> /home/tysonkey/wireshark-1.9.0-SVN-47138/plugins/mate/.libs/mate.so:
> /home/tysonkey/wireshark-1.9.0-SVN-47138/plugins/mate/.libs/mate.so: undefined
> symbol: prefs_register_filename_preference
> 
> Couldn't load module
> /home/tysonkey/wireshark-1.9.0-SVN-47138/plugins/asn1/.libs/asn1.so:
> /home/tysonkey/wireshark-1.9.0-SVN-47138/plugins/asn1/.libs/asn1.so: undefined
> symbol: prefs_register_filename_preference
> 
> Couldn't load module
> /home/tysonkey/wireshark-1.9.0-SVN-47138/plugins/stats_tree/.libs/stats_tree.so:
> /home/tysonkey/wireshark-1.9.0-SVN-47138/plugins/stats_tree/.libs/stats_tree.so:
> undefined symbol: prefs_register_stat
> 
> Couldn't load module
> /home/tysonkey/wireshark-1.9.0-SVN-47138/plugins/profinet/.libs/profinet.so:
> /home/tysonkey/wireshark-1.9.0-SVN-47138/plugins/profinet/.libs/profinet.so:
> undefined symbol: crc16_plain_tvb_offset_seed
> 
> /Eventually, after dismissing them all, the app unceremoniously quits, after
> printing the following to the terminal:
> /**
> ERROR:about_dlg.c:271:splash_update: assertion failed: (ul_sofar <= ul_count)
> Aborted/
> 
> If I try to launch "tshark" without any arguments, I see either "/Segmentation
> fault/" (with no other output), or similar output to that shown in the GTK app's
> dialogues, plus the SEGFAULT error.
> 
> Running "tshark" under GDB eventually reveals:
> /Program received signal SIGSEGV, Segmentation fault.
> main (argc=1, argv=0x7fffffffe128) at tshark.c:1899
> 1899            ((prefs_p->capture_device) && (*prefs_p->capture_device !=
> '\0')) ? get_if_name(prefs_p->capture_device) : NULL);/
> 
> The output of "tshark -v" from my latest build attempt says:
> /TShark 1.9.0-SVN-47138 (SVN Rev Unknown from unknown)
> 
> Copyright 1998-2013 Gerald Combs <gerald@xxxxxxxxxxxxx
> <mailto:gerald@xxxxxxxxxxxxx>> and contributors.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> Compiled (64-bit) with GLib 2.30.0, with libpcap, with libz 1.2.3.4, with POSIX
> capabilities (Linux), without libnl, without SMI, without c-ares, without ADNS,
> with Lua 5.1, without Python, with GnuTLS 2.8.6, with Gcrypt 1.4.6, with MIT
> Kerberos, without GeoIP.
> 
> Running on Linux 2.6.38-16-generic, with locale en_GB.UTF-8, with libpcap
> version 1.4.0-PRE-GIT_2013_01_18, with libz 1.2.3.4./
> 
> Any ideas?
> 
> Thanks in advance,
> 
> Tyson.
>