Ethereal-dev: Re: [Ethereal-dev] Problem compiling the current cvs version

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Thu, 26 Jul 2001 11:47:47 -0700 (PDT)
> I'm encountering problems with the modifications regarding
> MacOS X support
> on a system on which g_module_supported() fails and therefore a
> /configure
> results in not compiling the plugins, the constant PLUGIN_DIR is
> not defined but used in an epan_init() call

"epan_init()" only uses the "plugin_dir" argument as an argument to
"proto_init()", and "proto_init()" only uses it if HAVE_PLUGINS is
defined.

So if HAVE_PLUGINS isn't defined, it's OK to pass a null pointer as the
"plugin_dir" argument.

> line 906 of gtk/main.c 
> line 244 of tethereal.c
> line 102 of dftest.c
> 
> So are these lines necessary?

Yes.  They do a lot more than just starting plugins.

> If not we should comment it out
> if we do not use plugins, if yes we should provide a value for
> the constant. What to do?

Define PLUGIN_DIR as NULL if we don't have plugins.