Ethereal-dev: Re: [Ethereal-dev] fixing the build

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Tue, 18 Apr 2006 20:45:49 -0700
Stefan (metze) Metzmacher wrote:

the problem is that register_all_protocols() exists twice,

...but one is in libethereal and one is in the docsis plugin.

but the the internal one is called twice,

Why is that? That's not happening on OS X - does the run-time linker on other platforms find the libethereal register_all_protocols() rather than the one in the plugin when it's loading the plugin?

If so, is there any way to fix that? I'd really prefer not to have "plugin.c" include the name of the plugin - I'd like to have it be something that's the same for all plugins. (I suppose if we really *need* to have the register routines have different names in the different plugins, we could do that with token pasting.)