Ethereal-dev: Re: [Ethereal-dev] Ethereal configuration misfeature (Solaris)

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: Fri, 27 Jul 2001 17:36:13 -0700 (PDT)
> When run on Solaris, the configuration script in the ethereal root directory
> is very careful to set up LDFLAGS to include -L/usr/local/lib -R/usr/local/lib.
> Unfortunately, the configuration script in the epan directory (and one
> other; I never bothered to track it down) does not.  If GLIB is in
> /usr/local/lib, and is not in LD_LIBRARY_PATH, this results in a
> configuration script that seems confused:  It says first that it is
> happy with GLIB, and then many lines later that it can't find it (twice).

That's probably because glib-config and gtk-config, to use the technical
term for this condition, "blow goats" on Solaris; by default, when run
with the "--libs" flag, they include a "-L" flag but not a "-R" flag.

I tend to fix this by changing the script, on Solaris, to include a "-R"
flag, so that programs using GLib and GTK+ (including, but far from
limited to, Ethereal) get linked with "-R" flags.