Ethereal-users: Re: [ethereal-users] building ethereal-0.8.12

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

From: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@xxxxxxxx>
Date: Tue, 19 Sep 2000 17:53:45 +0200 (CEST)
Thanks again Guy.

I hope some day I will be able to catch up with you in fast email 
responding. I supose it take a lot of training, courses and all that ;-)

On Mon, 18 Sep 2000, Guy Harris wrote:

> On Tue, Sep 19, 2000 at 01:03:19AM +0200, Cristian Ionescu-Idbohrn wrote:
> > > 	egrep snmp_set_suffix_only /usr/include/ucd-snmp/*.h
> > 
> > /usr/include/ucd-snmp/snmp_api.h:void snmp_set_suffix_only (int);
> 
> So the UCD SNMP header files think it's a function, not a macro, which
> means that, if "/usr/lib/libsnmp.so.4.1" on your system doesn't define
> it as a function, the UCD SNMP you have installed on your machine is
> broken.
> 
> Try compiling the following program with
> 
> 	gcc -o bar bar.c -lsnmp
> 
> If it fails, the UCD SNMP you have installed on your machine is broken.
> 
> If it succeeds, make sure that the Makefile for Ethereal is linking
> Ethereal with "-lsnmp".

Well, compiling it "as is" failed:

bar.c: In function `main':
bar.c:14: `DS_LIBRARY_ID' undeclared (first use in this function)
bar.c:14: (Each undeclared identifier is reported only once
bar.c:14: for each function it appears in.)
bar.c:14: `DS_LIB_PRINT_SUFFIX_ONLY' undeclared (first use in this  function)

I got aggresive ;-)
Started to look for those constants and found them in:

  /usr/include/ucd-snmp/default_store.h
  #define DS_LIBRARY_ID     0
  #define DS_LIB_PRINT_SUFFIX_ONLY 4 /* print out only a single oid node == 1.

So I added it:

  #include <ucd-snmp/ucd-snmp-config.h>
  #include <ucd-snmp/default_store.h>   /* added by cii */
  #include <ucd-snmp/asn1.h>

and recompiled. No problem.

Should that leed me to the conclusion that the UCD SNMP I have installed
on my machine is _not_ broken?


Cheers,
Cristian

--
I respect faith, but doubt is what gets you an education. -- Wilson Mizner