Ethereal-users: [Ethereal-users] Building tethereal only (no gtk/glib)

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

From: Paul de Weerd <paul@xxxxxxxxxxxxxxx>
Date: Sun, 2 Sep 2001 16:11:43 +0200
Hi list,

For one of my boxes I'm trying to build tethereal. It's a
headless machine and has no X whatsoever. This also means
no gtk+/glib. When configuring i use :
$ ./configure --disable-ethereal --disable-gtktest \
--disable-glibtest --enable-tethereal --enable-zlib \
--enable-ipv6

Unfortunately, this does not work as configure exits with
a nasty message :

checking for glib-config... no
checking for GLIB - version >= 1.2.0... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
configure: error: GLib distribution not found.

What gives ? As it turns out, I can't even copy my
tethereal binary from another (X-enabled) box :

$ ldd `which tethereal`
        libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x40018000)
        libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x4001b000)
        libdl.so.2 => /lib/libdl.so.2 (0x4003b000)
        libm.so.6 => /lib/libm.so.6 (0x4003e000)
        libz.so.1 => /usr/lib/libz.so.1 (0x4005a000)
        libc.so.6 => /lib/libc.so.6 (0x40069000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

As this is linked to libglib-1.2.so.0.

As a last resort I tried building a static tethereal with
make tethereal_static on a box with gtk/glib :
$ make tethereal_static
make: *** No rule to make target `wiretap/libwiretap.a', \
needed by `tethereal_static'.  Stop.

Can anyone help me out with building tethereal here ?

Thanks !

Paul 'WEiRD' de Weerd