Thursday Feb 05, 2009

Wireshark on OpenSolaris

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-dev

2. 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-headers

3. 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/bin

4. 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=no

5. 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.

:wq

About

user9148476

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today