Ethereal-dev: Re: [ethereal-dev] Solaris binaries wanted

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: Tue, 21 Mar 2000 16:50:18 -0800 (PST)
> What about gtk+ and the packet capture libraries?
> My cookbook:
> 	1. install gtk+ 
> 	2. intall libcap
> 	3. make and install ethereal

What *about* them?

I've installed GLib, GTK+, and libpcap, from source, on the Solaris
2.5.1 machines at work and on my Solaris 7 machine at home; the only
headache I had was that "glib-config" didn't put a "-R" flag into the
output of "glib-config --libs", which meant that Ethereal wasn't built
with "-R /usr/local/lib", meaning that it couldn't find the shared
libraries for GLib or GTK+ when run (setting LD_LIBRARY_PATH is a gross
and painful workaround), so I applied the patch

*** glib-config.in	1999/10/14 01:56:47	1.1
--- glib-config.in	1999/10/14 01:58:41	1.2
***************
*** 107,111 ****
  		libsp="@G_MODULE_LDFLAGS@ -lgmodule $libsp"
  		libsa="$libsa @G_MODULE_LIBS@"
  	fi
! 	echo -L@libdir@ $libsp $libsa
  fi
--- 107,130 ----
  		libsp="@G_MODULE_LDFLAGS@ -lgmodule $libsp"
  		libsa="$libsa @G_MODULE_LIBS@"
  	fi
! 
! 	case "`(uname -sr) 2>/dev/null`" in
! 	"SunOS 5"*)
! 		#
! 		# XXX - "autoconf" 2.13 thinks that "some versions of Sun
! 		# CC require a space after -R and others require no space";
! 		# I don't know if this is a problem with Sun C, or with
! 		# Sun's linker (which GCC may also use), but, for now,
! 		# we ignore the problem and assume "-R" works like
! 		# "-L".  This needs to be checked in "configure"
! 		# (but, then, "autoconf" should provide some nice way
! 		# to deal with "-R").
! 		#
! 		echo -L@libdir@ -R@libdir@ $libsp $libsa
! 		;;
! 
! 	*)
! 		echo -L@libdir@ $libsp $libsa
! 		;;
! 	esac
  fi

which seems to make it happy.  (Arguably, "gtk-config" should be changed
in this fashion as well, but as GTK+ requires GLib, it wasn't necessary
in this case, so I didn't bother).

I sent that patch to the GTK+ folk; I don't think it's in 1.2.7, so
you'd probably still have to apply it.

You also have to remember to do "make install-incl", as well as "make
install", when installing libpcap - for some unknown reason, "make
install" installs neither the header files nor the man pages.  "make
install" appears to be sufficient when installing GLib or GTK+.

Other than that, it was

	download;

	unpack;

	./configure;

	make;

	install;

and that's it - no muss, no fuss.