We're now a non-profit! Support open source packet analysis by making a donation.

Wireshark-users: Re: [Wireshark-users] Unable to compile static build of TShark on Fedora 7

From: Barry Gould <[email protected]>
Date: Fri, 07 Sep 2007 09:56:13 -0700
Guy, thanks for responding.

I still can't get a static build to work, even when using --without-plugins.
It still complains about gmodule2.

Any ideas?


At 07:21 PM 9/6/2007, Guy Harris wrote:

On Sep 6, 2007, at 3:26 PM, Barry Gould wrote:

> I'm really starting to suspect that configure isn't working right.
> I just tried with --disable-zlib, and it still says "Ues zlib
> library: yes"
> This leads me to wonder if the other options are working

The options that exist should be working.

"--disable-zlib", however, isn't one of the options that exist:

        $ ./configure --help
`configure' configures this package to adapt to many kinds of systems.
        Usage: ./configure [OPTION]... [VAR=VALUE]...


        For better control, use the options below.


        Optional Features:
          --disable-FEATURE       do not include FEATURE (same as --enable-
          --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
          --enable-static[=PKGS]  build static libraries [default=no]
          --disable-dependency-tracking  speeds up one-time build
          --enable-dependency-tracking   do not reject slow dependency
          --enable-shared[=PKGS]  build shared libraries [default=yes]
optimize for fast installation [default=yes]
          --disable-libtool-lock  avoid locking (might break parallel builds)
Do additional -W checks in GCC. [default=no]
                                  Treat warnings as errors (only for gcc).
--enable-usr-local look for headers and libs in /usr/local tree.
          --enable-wireshark      build GTK+-based wireshark. [default=yes,
if GTK+
          --disable-gtk2          build Glib1/Gtk1+-based wireshark/tshark.
          --enable-threads        use threads in wireshark. [default=no]
          --enable-profile-build  build profile-ready binaries. [default=no]
          --disable-gtktest       do not try to compile and run a test GTK+
          --disable-gtktest       Do not try to compile and run a test GTK
          --disable-glibtest      do not try to compile and run a test GLIB
--disable-glibtest Do not try to compile and run a test GLIB
          --enable-tshark         build tshark. [default=yes]
          --enable-editcap        build editcap. [default=yes]
          --enable-capinfos       build capinfos. [default=yes]
          --enable-mergecap       build mergecap. [default=yes]
          --enable-text2pcap      build text2pcap. [default=yes]
          --enable-idl2wrs        build idl2wrs. [default=yes]
          --enable-dftest         build dftest. [default=yes]
          --enable-randpkt        build randpkt. [default=yes]
          --enable-dumpcap        build dumpcap. [default=yes]
          --enable-ipv6           use ipv6 name resolution, if available.
          --enable-setuid-install install tshark and dumpcap as setuid

        Optional Packages:
          --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
          --without-PACKAGE       do not use PACKAGE (same as --with-
          --with-gnu-ld           assume the C compiler uses GNU ld
          --with-pic              try to use only PIC/non-PIC objects
--with-tags[=TAGS] include additional configurations [automatic]
          --with-gnutls=[yes/no]  use gnutls library [default=yes]
          --with-libgnutls-prefix=PFX   Prefix where libgnutls is installed
          --with-gcrypt=[yes/no]  use gcrypt library [default=yes]
                                  prefix where LIBGCRYPT is installed
          --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
          --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed
          --with-glib-prefix=PFX   Prefix where GLIB is installed (optional)
          --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed
          --with-pcap[=DIR]       use libpcap for packet capturing.
          --with-zlib[=DIR]       use zlib (located in directory DIR, if
supplied) to
                                  read compressed data. [default=yes, if
          --with-pcre[=DIR]       use libpcre (located in directory DIR, if
                                  to use in dfilter regular expressions.
                                  if available]
          --with-lua[=DIR]        use liblua (located in directory DIR, if
                                  for the lua scripting plugin. [default=no]
--with-portaudio[=DIR] use libportaudio (located in directory DIR,
supplied) for the rtp_player. [default=yes,
--with-libiconv-prefix=DIR search for libiconv in DIR/include and
          --with-ssl[=DIR]        use SSL crypto library (located in
directory DIR, if
                                  supplied). [default=no]
          --with-net-snmp[=PATH]  use Net-SNMP library (with PATH as the
location of
the net-snmp-config shell script that comes
with the
                                  net-snmp package, if supplied)
[default=yes, if
--with-krb5[=DIR] use kerberos (located in directory DIR, if
                                  to use in kerberos dissection [default=yes]
          --with-adns[=DIR]       use GNU ADNS (located in directory DIR, if
                                  supplied). [default=yes, if present]
          --with-plugins[=DIR]    support plugins (installed in DIR, if
                                  [default=yes, if possible]

zlib is a package, not a feature, so there's no "--disable-zlib"
option; the option is "--without-zlib".

However, configure scripts don't check whether a --enable, --disable,
--with, or --without flag refers to an option that exists; you could
say "--enable-faster-than-light-travel" or "--with-an-extra-scoop-of-
whipped-cream" and you'll get no complaints.
Wireshark-users mailing list
[email protected]