By user9148476 on Feb 05, 2009
Disclaimer: While I'm sure this has been covered somewhere, in my efforts to compile Wireshark on OpenSolaris, I didn't find a one-stop shop in netland giving the pieces needed.
The steps below should apply to OpenSolaris 2008.11 fine. I happened to do an image-update earlier this week to pull down the 5.11_106 (snv_106 build) set of packages.
1. If you haven't done so already, install the gcc-dev package.
% pfexec pkg install gcc-dev2. Next, install the SUNWgnome-common-devel package. You need this for pkg-config and some underlying support packages for the GTK+ build to work.
% pfexec pkg install SUNWgnome-common-devel SUNWxwinc SUNWxorg-headers3. Ensure /usr/perl5/bin is in your path (for pod2man, pod2html).
% env | grep -w PATH PATH=/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/perl5/bin4. Run configure on Wireshark, disabling GnuTLS, and setting CFLAGS to pull in libpcre. Starting with snv_99, the "extra" libraries which included the openssl.h header Wireshark wants were removed. Why? A licensing issue. Some pieces of GnuTLS are GPL v3, which Solaris doesn't yet play nice with. [Details]
% CFLAGS="-I/usr/include/pcre" ./configure --with-gnutls=no5. From there, it's your typical make/make install
% make % pfexec make install
This was done against are more or less vanilla OpenSolaris installation. Beyond moving to snv_106, I haven't done any customization of my .bashrc, no CLFAGS, etc. If you've modified your environment, you may require additional steps. But then again, if you're modifying your build environment, you probably know what you're doing.