Re: Bug report for scotty-2.1.5 on Digital Alpha

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Mon, 17 Feb 1997 23:29:26 +0100

Hans Ranke <Hans.Ranke@Regent.E-Technik.TU-Muenchen.DE> said:

Hans> Environment: DEC Alpha computer running Digital Unix V3.2c.
Hans> On this machine a long int has 8 bytes.

Hans> Symptom: Scotty 2.1.5 compiles without problems, but when running
Hans> snmp.test it crashes with a Memory fault.

Hans> Analysis: In tnm/snmp/tnmMD5.h the Preprocessor symbol SIZEOF_LONG
Hans> is used to determine the definition of a 4-byte-integer.
Hans> SIZEOF_LONG is defined in unix/config.h. However, when compiling
Hans> tnmMD5.o, config.h is not included.

Hans> Fix: I made scotty work for me by adding '#include <config.h>'
Hans> at the beginning of tnmMD5.h.

Thanks for your bug report. I prefer to change tnmMD5.c to include
tnmInt.h before tnmMD5.h is included. tnmInt.h will include tnmPort.h
which will include tnmUnixPort.h which will include config.h. (This
indirection is needed to support platforms without a config.h file.)

Juergen

-- 
Juergen Schoenwaelder schoenw@cs.utwente.nl http://www.cs.utwente.nl/~schoenw
Computer Science Department, University of Twente,   (Fax: +31-53-489-3247)
P.O. Box 217, NL-7500 AE Enschede, The Netherlands.  (Tel. +31-53-489-3678)
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.