Ethereal-dev: RE: [Ethereal-dev] compiling ethereal with net-snmp 5.0.2

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

From: "HOOD, Andy" <ahood@xxxxxxxxxxxxxx>
Date: Mon, 29 Jul 2002 13:51:45 +1000
OK, I can answer this one now.

add -DUCD_COMPATIBLE to CPPFLAGS

patch one of the net-snmp headers. Why you have to I don't know but this
makes it work. The patch will probably be screwed by my mailer, but it's
only a one line change.

--- /usr/local/include/ucd-snmp/version.h.bck   2002-07-24 
20:31:31.000000000 +1000
+++ /usr/local/include/ucd-snmp/version.h       2002-07-24 
20:31:11.000000000 +1000
@@ -2,7 +2,7 @@

  #include <net-snmp/version.h>

-static const char *VersionInfo = NetSnmpVersionInfo;
+#define VersionInfo NetSnmpVersionInfo

  #else


Regards,
Andrew Hood
A distributed system is one in which the failure of a computer you didn't
even know existed can render your own computer unusable. -- Leslie Lamport,
as quoted in CACM, June 1992


-----Original Message-----
From:	Guy Harris [mailto:guy@xxxxxxxxxx]
Sent:	Wednesday, 24 July 2002 12:36
To:	HOOD, Andy
Cc:	ethereal-dev@xxxxxxxxxxxx
Subject:	Re: [Ethereal-dev] net-snmp [was: ethereal 0.9.4-0.7.2.0
crash on Red Hat Linux 7.2]

On Wed, Jul 24, 2002 at 12:25:53PM +1000, HOOD, Andy wrote:
> Speaking of ucd-snmp, is ethereal supposed to compile with net-snmp 5.0.2?

Dunno - I've never tried it.

I think 5.x, by default, doesn't offer an API completely compatible with
4.x; you may have to build it with a "UCD SNMP compatibility" flag.

<<application/ms-tnef>>