[2792] in Kerberos-V5-bugs

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

krb5-libs/472: windows 95/NT compilation problem

daemon@ATHENA.MIT.EDU (aidan@panix.com)
Wed Sep 17 18:13:58 1997

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: krb5-unassigned@RT-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, aidan@panix.com
Date: Wed, 17 Sep 1997 18:10:32 -0400 (EDT)
From: aidan@panix.com
Reply-To: aidan@panix.com
To: krb5-bugs@MIT.EDU
Cc: aidan@panix.com


>Number:         472
>Category:       krb5-libs
>Synopsis:       windows 95/NT compilation problem
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    krb5-unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Wed Sep 17 18:12:01 EDT 1997
>Last-Modified:
>Originator:     Aidan
>Organization:
	PANIX
>Release:        1.0pl1
>Environment:
	Intel Pentium, WinNT 4.0, WinNT/95, krb5.lib gssapi.lib gss.exe
System: WinNT 4.0 Intel, Visual C++ 5.0


>Description:
	some of the libraries don't build under windows, misspelled
	GWL_HINSTANCE as GWW_HINSTANCE
>How-To-Repeat:
	Attempt to build with VC++5
>Fix:
	Apply the following patch:
*** windows/cns/cns.c.orig      Wed Sep 17 17:34:19 1997
--- windows/cns/cns.c   Wed Sep 17 17:34:29 1997
***************
*** 2688,2694 ****
  		hwnd = FindWindow(KWIN_DIALOG_CLASS, NULL);
  
  		if (IsWindow(hwnd) && IsWindowVisible(hwnd)) {
! 			if (GetWindowWord(hwnd, GWW_HINSTANCE) == hprevinstan
ce) {
  				if (name[0])
  					SendMessage(hwnd, WM_KWIN_SETNAME, 0, (LONG) name);
  
--- 2688,2694 ----
  		hwnd = FindWindow(KWIN_DIALOG_CLASS, NULL);
  
  		if (IsWindow(hwnd) && IsWindowVisible(hwnd)) {
! 			if (GetWindowWord(hwnd, GWL_HINSTANCE) == hprevinstan
ce) {
  				if (name[0])
  					SendMessage(hwnd, WM_KWIN_SETNAME, 0, (LONG) name);
  
*** config/windows.in.orig      Wed Sep 17 17:48:29 1997
--- config/windows.in   Wed Sep 17 17:48:44 1997
***************
*** 39,45 ****
  #
  ##WIN16##CCOPTS2=/AL /Zp /G2s  /Os /Zi /Od /W3 -DINTERFACE= -DINTERFACE_C= $(XTRA)
  ##WIN32##CCOPTS2=/Os /Zi /Od /W3 -DINTERFACE= -DINTERFACE_C= $(XTRA)
! CPPFLAGS =  -I$(SRCTOP)/include -I$(SRCTOP)/include/krb5
  DEFS = $(CPPFLAGS)
  CFLAGS2 = $(CCOPTS2) $(DEFS)
  
--- 39,45 ----
  #
  ##WIN16##CCOPTS2=/AL /Zp /G2s  /Os /Zi /Od /W3 -DINTERFACE= -DINTERFACE_C= $(XTRA)
  ##WIN32##CCOPTS2=/Os /Zi /Od /W3 -DINTERFACE= -DINTERFACE_C= $(XTRA)
! CPPFLAGS =  -I$(SRCTOP)/include -I$(SRCTOP)/include/krb5 -D_MSDOS
  DEFS = $(CPPFLAGS)
  CFLAGS2 = $(CCOPTS2) $(DEFS)
  
>Audit-Trail:
>Unformatted:

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