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: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 26 Oct 1999 17:49:31 -0700 (PDT)
> [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.