Ethereal-users: Re: [ethereal-users] Re: RHAT 6.2 & UCD SNMP 4.1.1

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: Fri, 16 Jun 2000 23:25:47 -0700
On Fri, May 05, 2000 at 12:41:15PM -0700, Guy Harris wrote:
> > However, I thought the most recent versions of ethereal changed the
> > include file structure to fix this?  (or test for it and optionally
> > include it)?
> 
> It does, but the issue isn't with building from source (which works),
> it's with running pre-built binaries.
> 
> It *might* be possible to use a trick that I've seen described somewhere
> as one used on Windows - load the library in question with "dlopen()"
> (or GLib's wrapper that hides the different run-time loading APIs behind
> a single API), check for particular routines with "dlsym()" (or GLib's
> wrapper for it), and call those routines through a pointer if found or
> do something else if not.

It appears to be possible; I checked in a change to do that, on Linux
systems.

It worked when I tried it on my Debian 2.1 partition - I installed
UCD SNMP 4.0.1 built with "--enable-shared" (and the "configure" script
tweaked with a change from the 4.1.1 script, so that it uses the correct
commands, on Linux, to build the shared library), and configured and
built Ethereal, and the resulting binary worked both with the 4.0.1
shared library and the 4.1.1 shared library.