Ethereal-dev: Re: [ethereal-dev] 0.7.6 crash

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

From: Bill Fumerola <billf@xxxxxxxxxxxxxx>
Date: Tue, 26 Oct 1999 19:55:12 -0400 (EDT)
On Tue, 26 Oct 1999, Guy Harris wrote:

> > [hawk-billf] /home/billf > cat ethereal/foo
> > register.o: In function `register_all_protocols':
> > register.o(.text+0x135): undefined reference to `proto_register_snmp'
> 
> The problem there is that it should scan "packet-snmp.c" only if the
> SNMP code will actually be used.
> 
> One fix there might be to take "proto_register_snmp()" out of the
> #ifdefs and, instead, have it compile to a null routine if neither
> WITH_SNMP_CMU or WITH_SNMP_UCD is defined, so it won't register any
> fields, but will, at least, exist.  That way the stuff in the Makefile
> that scans the dissector source files won't have to worry about whether
> to scan "packet-snmp.c" or not.

I figured as much, however this is pretty much a show stopper for me
to upgrade the port.

Typically in the past I didn't make snmp a dependency (it doesn't _really_
need it) and just let it detect it if it was there and have it Just Work.

-- 
- bill fumerola - billf@xxxxxxxxxxxxxx - BF1560 - computer horizons corp -
- ph:(800) 252-2421 - bfumerol@xxxxxxxxxxxxxxxxxxxx - billf@xxxxxxxxxxx  -