Ethereal-dev: Re: [ethereal-dev] Bug in configure of etheral-0.7.5 on Solaris 2.6

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: Fri, 8 Oct 1999 14:15:24 -0700 (PDT)
>   Undefined                       first referenced
>    symbol                             in file
>   kstat_close                         /usr/local/lib/libsnmp.a(system.o)

Oh, yuck-ola.  It appears that the SNMP library you're using includes
stuff to actually fetch information from the kernel (presumably for use
by an SNMP agent) *AND* drags that code in even for programs just
grabbing some bits of SNMP decoding stuff and not doing any fetching of
data from the kernel at all.  Grrr....

This just makes me even more eager to look into rolling our own ASN.1
BER decoding routines, and SNMP decoding stuff, and cutting ourselves
loose from other people's SNMP libraries (I think LDAP uses ASN.1 BER,
too, so it'd be useful for decoding LDAP).

Which SNMP library is this, and which version of that library?

Fixing this may require that we bludgeon the configure script somehow to
get it to try linking with "-lkstat" if it fails when not linking with
that (or bite the bullet, blow the explosive bolds, and drift away from
third-party SNMP libraries).

For now, I'm inclined to add this to a "README.solaris" file (I'm not
sure if any other OS has duplicated "-lkstat") as a warning, pending
some better fix.