Ethereal-dev: Re: [ethereal-dev] ethereal plugin (gryphon) on AIX-4.3.2

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Tue, 4 Jan 2000 22:21:19 -0800
>   For the first trick, either you specify the symbols that will be
>   exported from the main program (and ethereal gracefully supplies
>   a file .libs/ethereal.exp that just needs "#!." added as a first
>   line to do this)

We do? Or is it generated by "libtool" when you build on AIX (but not on
other platforms - I just did a build on FreeBSD, and there's no such
file)?  If so, then perhaps "libtool" needs to be fixed to add the "#!"
line.

>   Or you enable runtime linking (but you must do this in the module *AND*
>   in the link of the main program) as follows (from memory):
>      ld -G -o libgryphon.so packet-gryphon.o -lc \
> 		-bexpall -bnoentry
>      (in the man page, the option -G is described as being equivalent to
>       -berok -brtl -bnortllib -bnosymbolic -bnoautoexp -bM:SRE )

...and is probably trying to emulate the behavior of, as I remember, the
SVR4 "-G" flag, which, if I remember correctly, is what's used when
building a shared library.

>   For the second trick, when linking the main program you add -bexpall or
>   -bE:.libs/ethereal.exp  (*AND* -brtl if you've chosen the -G link option
>   for the modules).

Hmm.  Is this something that "libtool" can somehow be convinced to
arrange appear in the Makefile as well (perhaps by participating in the
construction of "Makefile.in")?