Ethereal-users: Re: [Ethereal-users] static linked binary of ethereal

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Thu, 28 Mar 2002 13:29:10 -0800
On Thu, Mar 28, 2002 at 06:43:13AM -0800, Vincent Chen wrote:
> Is it possible to build static linked binary of
> ethereal? Because I won't use GTK, it would be much
> easier to maintain binary package.

"Use GTK" in what sense?  You have to use GTK+, in some fashion, to get
Ethereal at all - GTK+ is the GUI toolkit it uses.  You will have to
have GTK+ installed on the machine on which you build Ethereal.

You can do

	make ethereal_static

to get a statically-linked binary, on at least some platforms; note,
however, that, at least on some platforms (I don't know which ones, but
Solaris *might* be one), a statically-linked binary might not be able to
load plugins.  That binary will have GTK+ linked into it, so it will use
GTK+ in that sense, but it will not require GTK+ shared libraries to be
installed on a machine on which it runs.

You can also do

	make tethereal_static

to make a statically-linked binary of Tethereal.

If you don't have GTK+ installed, you will not be able to build
Ethereal, but you can configure with

	--disable-ethereal

and build only Tethereal if you don't have GTK+ installed.