Ethereal-dev: [Ethereal-dev] Re: Build problems on Solaris

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

From: Thomas Steffen <steffen.list.account@xxxxxxxxx>
Date: Tue, 9 Aug 2005 15:44:02 +0200
On 8/9/05, Thomas Steffen <steffen.list.account@xxxxxxxxx> wrote:

[missing symbols during the compilation]

Ok, I could narrow the problem down to the missing option. The problem
is (as expected) somewhere around libtool. When linking
libethereal.so, it should surround the library arguments with -z
allextract and -z defaultextract. It does this as you can see:

> gcc -shared -Wl,-h -Wl,libethereal.so.0 -o .libs/libethereal.so.0.0.1
...
> .libs/xdlc.o .libs/xmlstub.o .libs/inet_aton.o -z allextract
> dfilter/.libs/libdfilter.a ftypes/.libs/libftypes.a
> dissectors/.libs/libdissectors.a -z defaultextract  -R/opt/csw/lib

but of course this is gcc, and it happily eats the options for ld :-). 

So this worked for me:

> rm epan/libethereal.la

and change the line in libtool to:

whole_archive_flag_spec="\${wl}-z \${wl}allextract\$convenience
\${wl}-z \${wl}defaultextract"

followed by another make. 

Of course the question remains why libtool is wrong. But I am not
familiar with the working of autoconf, so I probably can't help with
that.

Thomas