Ethereal-dev: Re: [Ethereal-dev] Building problem with 0.8.16 without plugins

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

From: Lutz Jaenicke <Lutz.Jaenicke@xxxxxxxxxxxxxxxxx>
Date: Thu, 5 Apr 2001 22:49:56 +0200
On Thu, Apr 05, 2001 at 01:17:49PM -0700, Guy Harris wrote:
> > I see. I just read the comment in the offending file about the shl_*
> > interface.
> 
> Which file was that?
> 
> I'll look into fixing the configure stuff to check whether gmodule
> supports run-time linking or not.

In configure.in (at least in the main directory and in epan/) there is:

#
# XXX - we should also somehow arrange to support dynamic linking on
# HP-UX, even though it hasn't yet, apparently, implemented the
# UNIX standard "dlopen()" interface atop its own interface.
#
if test "$ac_cv_header_dlfcn_h" = yes ; then
  AC_DEFINE(HAVE_PLUGINS)
fi

This is HP's shl_* interface that is used for HP-UX 10.xx and for
HP-UX 11, when building 32bit applications.
HP-UX 11 now uses dl*, but only when building 64bit applications.
32bit and 64bit are exclusive, so one application can only use
exactly one of shl_* or dl_* functionality.

The shl_* interface uses the <dl.h> header file so when checking for
dl.h you should be able to identify it. hpux* is already recognized
in configure in order to set the -Ae compiler flag.

If glib offers a generic way to query gmodule support directly it is of
course much better. But I don't have the slightest clue of glib, so
I rather leave this to more knowledgable persons :-)

Best regards,
	Lutz
-- 
Lutz Jaenicke                             Lutz.Jaenicke@xxxxxxxxxxxxxxxxx
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153