Ethereal-dev: Re: [Ethereal-dev] Getting ethereal 0.10.7 to build on Solaris

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

From: James Walden <james.walden@xxxxxxx>
Date: Wed, 27 Oct 2004 14:38:33 -0400
David Eisner wrote:
It's a libtool problem, specifically this one:

http://lists.gnu.org/archive/html/libtool/2004-07/msg00060.html

So libtool is using the wrong switches when calling gcc (v 3.4.1 in
my case) to link the libetheral library.

On Solaris 8, I did not encounter the missing -lsocket problem. I was able to build Ethereal 0.10.7 release after making the suggested modification to libtool after running configure:

--- libtool.dist        2004-10-27 13:09:29.385624000 -0400
+++ libtool     2004-10-27 14:06:19.395594000 -0400
@@ -153,7 +153,7 @@
 export_dynamic_flag_spec=""

 # Compiler flag to generate shared objects directly from archives.
-whole_archive_flag_spec="-z allextract\$convenience -z defaultextract"
+whole_archive_flag_spec="-Wl,-z -Wl,allextract\$convenience -Wl,-z -Wl,defaultextract"

 # Compiler flag to generate thread-safe objects.
 thread_safe_flag_spec=""

I'm not sure whether applying this change to the whole_archive_flag_spec line in aclocal.m4 would fix configure without causing problems for operating systems other than Solaris.

Does anyone with experience using GNU autotools have suggestions on how to make Ethereal build on Solaris with this fix out of the box?

--
James Walden, Ph.D.
Visiting Assistant Professor of EECS
The University of Toledo @ LCCC
http://www.eecs.utoledo.edu/~jwalden/