[2441] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5-libs/177: NEAR, FAR not properly defined when header files

daemon@ATHENA.MIT.EDU (tlyu@MIT.EDU)
Tue Nov 12 15:52:39 1996

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: krb5-unassigned@RT-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, tlyu@MIT.EDU
Date: Tue, 12 Nov 1996 15:51:57 -0500
From: tlyu@MIT.EDU
Reply-To: tlyu@MIT.EDU
To: krb5-bugs@MIT.EDU


>Number:         177
>Category:       krb5-libs
>Synopsis:       NEAR, FAR not properly defined when header files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    krb5-unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Tue Nov 12 15:52:01 EST 1996
>Last-Modified:
>Originator:     "Jonathan I. Kamens" <jik@annex-1-slip-jik.cam.ov.com>
>Organization:
mit
>Release:        1.0-development
>Environment:
	
System: SunOS tesla-coil 5.4 Generic_101945-37 sun4m sparc


>Description:
[2251]  daemon@ATHENA.MIT.EDU (Jonathan I. Kamens) Kerberos-V5-bugs 09/22/96 12:58 (25 lines)
Subject: krb5-beta7: NEAR, FAR not properly defined when header files
Date: Sun, 22 Sep 1996 12:53:57 -0400
From: "Jonathan I. Kamens" <jik@annex-1-slip-jik.cam.ov.com>
To: krb5-bugs@MIT.EDU, kerberos@MIT.EDU

If I preprocess this file:

	#include <kerberosIV/krb.h>
	#include <com_err.h>
	#include <krb5.h>

	NEAR

The last line of the preprocessor output contains "NEAR".  If,
however, I swap <com_err.h> and <krb.h>, the last line of the
preprocessor output is (correctly) blank.

All of the preprocessor stuff in the various header files is so hairy
and disgusting that I had to spend quite a while just figuring out
this problem.  I assume there's someone at MIT who came up with the
idea of putting the same stuff in N different header files and who
understands how it's all supposed to work; that person will probably
be able to fix this problem far more quickly than I can, so I leave it
to him to come up with a patch.

  jik
--[2251]--
	
>How-To-Repeat:
	
>Fix:
	
>Audit-Trail:
>Unformatted:

home help back first fref pref prev next nref lref last post