On Tue, Mar 09, 2004 at 12:49:51AM +0100, Joerg Mayer wrote:
> Attached is the hopefully last iteration of the shared libethereal patch.
> It builds a libethereal that includes the dfilter and ftypes stuff.
> Guy, can you please test on MacOS X whether the shared libs stuff works?
Well, it builds - with some dissector changes that I just checked in,
making some variables used only in the modules in question static to the
modules. I do get some warnings:
ld: warning multiple definitions of symbol _locale_charset
/usr/lib/libiconv.dylib(localcharset.o) definition of _locale_charset
/usr/local/lib/libintl.dylib(localcharset.o) definition of
_locale_charset
as well as a lot of
gcc: unrecognized option `-pthreads'
and some
ld: warning suggest use of -bind_at_load, as lazy binding may
result in errors or different symbols being used
It also appears to be working, at least when I run it from the build
directory ("ethereal", in the build directory, is a shell script wrapper
generated by libtool, which sets the appropriate environment variable to
get it to find the shared libraries in the build tree).
It requires GTK+ 2.x, as GLib 1.2.10 and GTK+ 1.2.10 were built with an
old version of libtool that doesn't know how to build shared GLib and
GTK+ libraries.
It would probably be worth trying it on AIX and Digital UNIX as well,
just to test two more non-ELF systems and two more systems not using the
GNU linker. Perhaps Albert Chin of The Written Word would be willing to
do that.