Qing Dong <dongq@mit.edu> provided a set of changes to allow
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 27 Feb 2006 19:22:08 +0000 (19:22 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 27 Feb 2006 19:22:08 +0000 (19:22 +0000)
krb5 to build under the Microsoft Visual Studio 8 compiler
in 64-bit mode and produce file names that do not conflict
with the names produced by the 32-bit build.  That patch
was modified to work on Unix and also include processor
dependent pre-processor definitions to remove warnings.

ticket: 3415
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17680 dc483132-0cff-0310-8789-dd5450dbe970

33 files changed:
src/ChangeLog
src/Makefile.in
src/appl/gss-sample/ChangeLog
src/appl/gss-sample/Makefile.in
src/appl/gssftp/ftp/ChangeLog
src/appl/gssftp/ftp/Makefile.in
src/clients/kpasswd/ChangeLog
src/clients/kpasswd/Makefile.in
src/config/ChangeLog
src/config/win-post.in
src/config/win-pre.in
src/include/ChangeLog
src/include/win-mac.h
src/krb524/ChangeLog
src/krb524/Makefile.in
src/lib/ChangeLog
src/lib/Makefile.in
src/lib/krb5/os/ChangeLog
src/lib/krb5/os/read_pwd.c
src/util/support/ChangeLog
src/util/support/Makefile.in
src/util/windows/ChangeLog
src/util/windows/Makefile.in
src/windows/ChangeLog
src/windows/Makefile.in
src/windows/cns/ChangeLog
src/windows/cns/Makefile.in
src/windows/cns/password.c
src/windows/gina/ChangeLog
src/windows/gina/Makefile.in
src/windows/kfwlogon/Makefile.in
src/windows/wintel/ChangeLog
src/windows/wintel/Makefile.in

index a3e3fdb72ea7edc6b367972a55f6a17d522e9334..586aeea5cd1d1702c14213eaa75f8b20592e1ca6 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * Makefile.in: support for 64-bit Windows builds
+
 2006-01-17  Ken Raeburn  <raeburn@mit.edu>
 
        * aclocal.m4 (AC_KRB5_TCL_TRYOLD): Include $LIBS in $TCL_LIBS.
index 8b9be5d94c4ce1b545fb5002076cb5a6fb8a4220..c697e747c8e6656c63216c4aed2d3b569f5ecd2b 100644 (file)
@@ -153,7 +153,7 @@ config-windows:: Makefile-windows
 # try to build wconfig on a config-windows.
 #
 ##DOS##$(WCONFIG_EXE): outpre-dir wconfig.c
-##DOS##        $(CC) -Fe$@ -Fo$*.obj wconfig.c
+##DOS##        $(CC) -Fe$@ -Fo$*.obj wconfig.c $(CCLINKOPTION)
 
 ##DOS##MKFDEP=$(WCONFIG_EXE) config\win-pre.in config\win-post.in
 
index 15f674580e8b3c428c5df1be608d09be5e9671fc..07ec1f68139dd659dc486d3ad2240a315a73d4cb 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * Makefile.in: support for 64-bit Windows builds
+
 2005-10-20  Ken Raeburn  <raeburn@mit.edu>
 
        * gss-client.c, gss-misc.c, gss-server.c: Reindented.
index ab6821c495956db55db2fb775ac6c09232e7f35c..97d1d89011d279a423fb94917b8a5897a3eba9b2 100644 (file)
@@ -20,10 +20,10 @@ gss-client: gss-client.o gss-misc.o $(GSS_DEPLIBS) $(KRB5_BASE_DEPLIBS)
        $(CC_LINK) -o gss-client gss-client.o gss-misc.o $(GSS_LIBS) $(KRB5_BASE_LIBS)
 
 $(OUTPRE)gss-server.exe: $(OUTPRE)gss-server.obj $(OUTPRE)gss-misc.obj $(GLIB) $(KLIB)
-       link $(EXE_LINKOPTS) -out:$@ $** ws2_32.lib
+       link $(EXE_LINKOPTS) -out:$@ $** ws2_32.lib $(SCLIB)
 
 $(OUTPRE)gss-client.exe: $(OUTPRE)gss-client.obj $(OUTPRE)gss-misc.obj $(GLIB) $(KLIB)
-       link $(EXE_LINKOPTS) -out:$@ $** ws2_32.lib
+       link $(EXE_LINKOPTS) -out:$@ $** ws2_32.lib $(SCLIB)
 
 clean-unix::
        $(RM) gss-server gss-client
index 1f17c0f458df28feb53b7065e25bb342d2976938..e043f104e92904df8f1b847705c762ce1b2374ed 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * Makefile.in: support for 64-bit Windows builds
+
 2003-12-13  Ken Raeburn  <raeburn@mit.edu>
 
        * ftp.c (do_auth): Handle a return code of 335, where the
index 9e15dc6b502ad830502e013b50f48b96a3c4a2c7..9355f7c40337bca9cb1ff3faaa291880a4d12daf 100644 (file)
@@ -37,7 +37,7 @@ ftp:  $(OBJS) $(GSS_DEPLIBS) $(KRB5_BASE_DEPLIBS)
        $(CC_LINK) -o ftp $(OBJS) $(GSS_LIBS) $(KRB4COMPAT_LIBS)
 
 $(OUTPRE)ftp.exe: $(OBJS) $(GLIB) $(KLIB)
-       link $(EXE_LINKOPTS) -out:$@ $** ws2_32.lib advapi32.lib
+       link $(EXE_LINKOPTS) -out:$@ $** ws2_32.lib advapi32.lib $(SCLIB)
 
 clean-unix::
        $(RM) ftp
index 367cacccdb0bb442003a6b57acd5bb777fe3acf4..b6eedd6f7b78152fdea74cc35f495af926425a92 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * Makefile.in: support for 64-bit Windows builds
+
 2004-06-24  Tom Yu  <tlyu@mit.edu>
 
        * kpasswd.c (P1, P2): Cosmetic fix for prompts to avoid
index 3f6394342ea95bb0e3d4f2331d2728ba789739eb..aacbf91cf4c2a6181c0b8d5d2ddca9269cd31c7b 100644 (file)
@@ -26,4 +26,4 @@ install-all install-kdc install-server install-client install-unix::
 all-windows:: $(OUTPRE)kpasswd.exe
 
 $(OUTPRE)kpasswd.exe: $(OUTPRE)kpasswd.obj $(KLIB) $(CLIB)
-       link $(EXE_LINKOPTS) -out:$@ $**
+       link $(EXE_LINKOPTS) -out:$@ $** $(SCLIB)
index 5bfca9ee6446d6764121730e8d09c2f06972e334..f61eef637f9396fffc6bf2dbe16a00f6ec526c3e 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * win-pre.in, win-post.in: support for 64-bit Windows builds
+
 2006-01-25  Ken Raeburn  <raeburn@mit.edu>
 
        * shlib.conf (*-*-linux*): Run export-check.pl after building a
index 74241750af5bf0c3bfc20989a8715b9e55950174..a568bf9a9e567fbc1ae4b3d933f3408335c98b82 100644 (file)
@@ -34,6 +34,14 @@ Makefile: Makefile.in $(BUILDTOP)\config\win-pre.in $(BUILDTOP)\config\win-post.
        $(WCONFIG) $(BUILDTOP)\config < Makefile.in > Makefile
 !endif
 
+!if  ("$(CPU)" == "IA64" ) || ("$(CPU)" == "AMD64" ) || ("$(CPU)" == "ALPHA64" )
+!if defined(WIN64LIBNAME)
+LIBNAME=$(WIN64LIBNAME)
+!endif
+!if defined(WIN64OBJFILE)
+OBJFILE=$(WIN64OBJFILE)
+!endif
+!endif
 
 !if defined(LIBNAME)
 
index 73e7bea6ac18e4129bce28a32c967b54d77f162f..2f8b0dad2789bf01fa6fe752757ed6bbdafde92b 100644 (file)
@@ -31,8 +31,8 @@ CPU=i386
 CPU=i386
 !endif # CPU == X86
 
-!if ( "$(CPU)" != "i386" ) && ( "$(CPU)" != "ALPHA" )
-!error Must specify CPU environment variable ( CPU=i386, CPU=ALPHA)
+!if ( "$(CPU)" != "i386" ) && ( "$(CPU)" != "ALPHA" ) && ( "$(CPU)" != "ALPHA64" ) && ( "$(CPU)" != "IA64" ) && ( "$(CPU)" != "AMD64" )
+!error Must specify CPU environment variable ( CPU=i386, CPU=ALPHA, CPU=ALPHA64,CPU=IA64, CPU=AMD64)
 !endif
 #
 # End of figuring out CPU
@@ -116,6 +116,10 @@ DNSLIBS=
 DNSFLAGS=
 !endif
 
+!if ("$(CPU)" == "i386")
+TIME_T_FLAGS=-D_USE_32BIT_TIME_T
+!endif
+
 !if defined(KRB5_KFW_COMPILE)
 KFWFLAGS=-DUSE_LEASH=1
 !endif
@@ -126,10 +130,20 @@ KFWFLAGS=-DUSE_LEASH=1
 CC=cl
 
 PDB_OPTS=-Fd$(OUTPRE)\ -FD
-CPPFLAGS=-I$(SRCTOP)\include -I$(SRCTOP)\include\krb5 $(DNSFLAGS) -DKRB5_PRIVATE=1 -DWIN32_LEAN_AND_MEAN -DKRB5_DEPRECATED=1 $(KFWFLAGS)
+CPPFLAGS=-I$(SRCTOP)\include -I$(SRCTOP)\include\krb5 $(DNSFLAGS) -DKRB5_PRIVATE=1 -DWIN32_LEAN_AND_MEAN -DKRB5_DEPRECATED=1 -D_CRT_SECURE_NO_DEPRECATE $(KFWFLAGS) $(TIME_T_FLAGS)
 CCOPTS=-nologo /W3 $(PDB_OPTS) $(DLL_FILE_DEF)
 LOPTS=-nologo -incremental:no
 
+!if  ("$(CPU)" == "IA64" ) || ("$(CPU)" == "AMD64" ) || ("$(CPU)" == "ALPHA64" )
+CCLINKOPTION=/link bufferoverflowu.lib
+SCLIB=bufferoverflowu.lib
+DEBUGOPT=/Zi
+!else
+CCLINKOPTION=
+SCLIB=
+DEBUGOPT=/ZI
+!endif
+
 # /ZI gives better debug info in each object file (MSVC 6.0 or higher).
 # /Zi gives debug info in each object file.
 # /Gs Avoid stack probes (they don't seem to work anyway)
@@ -143,13 +157,13 @@ LOPTS=-nologo -incremental:no
 #
 !ifdef NODEBUG
 !ifdef DEBUG_SYMBOL
-CCOPTS=/ZI $(CCOPTS)
+CCOPTS=$(DEBUGOPT) $(CCOPTS)
 LOPTS=$(LOPTS) -debug
 !endif
 CCOPTS=/Os /MD $(CCOPTS)
 LOPTS=$(LOPTS)
 !else
-CCOPTS=/Od /ZI /MDd $(CCOPTS)
+CCOPTS=/Od $(DEBUGOPT) /MDd $(CCOPTS)
 LOPTS=$(LOPTS) -debug
 !endif
 
@@ -178,6 +192,17 @@ SLIB=$(BUILDTOP)\lib\$(OUTPRE)k5sprt32.lib
 GLIB=$(BUILDTOP)\lib\$(OUTPRE)gssapi32.lib
 WLIB=
 
+!if  ("$(CPU)" == "IA64" ) || ("$(CPU)" == "AMD64" ) || ("$(CPU)" == "ALPHA64" )
+CLIB=$(BUILDTOP)\lib\$(OUTPRE)comerr64.lib
+PLIB=$(BUILDTOP)\lib\$(OUTPRE)xpprof64.lib
+KLIB=$(BUILDTOP)\lib\$(OUTPRE)krb5_64.lib
+K4LIB=$(BUILDTOP)\lib\$(OUTPRE)krb4_64.lib
+SLIB=$(BUILDTOP)\lib\$(OUTPRE)k5sprt64.lib
+GLIB=$(BUILDTOP)\lib\$(OUTPRE)gssapi64.lib
+WLIB=
+
+!endif
+
 KRB4_INCLUDES=-I$(BUILDTOP)/include/kerberosIV
 
 COM_ERR_DEPS   = $(BUILDTOP)/include/com_err.h
index f630a49027136821cd5eb33922a3e2d2670ff5a1..422de1cb5ba1735c24a067e939564b2715b5f067 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * win-mac.h: support for 64-bit Windows builds
+
 2006-01-25  Ken Raeburn  <raeburn@mit.edu>
 
        * k5-thread.h (krb5int_mutex_alloc, krb5int_mutex_free,
index ea53cf17fa26ec0a7d5dc931aeae7c6d3f00bfae..4249f0db55d1a07091d3335f424c4687a68f85ff 100644 (file)
 
 #else /* ! RES_ONLY */
 
-#define SIZEOF_INT      4
-#define SIZEOF_SHORT    2
-#define SIZEOF_LONG     4
-
-#include <windows.h>
-#include <limits.h>
-
-#ifndef SIZE_MAX    /* in case Microsoft defines max size of size_t */
-#ifdef  MAX_SIZE    /* Microsoft defines MAX_SIZE as max size of size_t */
-#define SIZE_MAX MAX_SIZE
-#else
-#define SIZE_MAX UINT_MAX
-#endif
-#endif
-
 /* To ensure backward compatibility of the ABI use 32-bit time_t on 
  * 32-bit Windows. 
  */
 #endif 
 #endif
 
+#define SIZEOF_INT      4
+#define SIZEOF_SHORT    2
+#define SIZEOF_LONG     4
+
+#include <windows.h>
+#include <limits.h>
+
+#ifndef SIZE_MAX    /* in case Microsoft defines max size of size_t */
+#ifdef  MAX_SIZE    /* Microsoft defines MAX_SIZE as max size of size_t */
+#define SIZE_MAX MAX_SIZE
+#else
+#define SIZE_MAX UINT_MAX
+#endif
+#endif
+
 #ifndef KRB5_CALLCONV
 #  define KRB5_CALLCONV __stdcall
 #  define KRB5_CALLCONV_C __cdecl
index 9bf6ff104b32410d5db2b76340f30d5a587d2d7f..58534ccec34a50f481ea130481b4517b2f68842d 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * Makefile.in: support for 64-bit Windows builds
+
 2005-11-17  Ken Raeburn  <raeburn@mit.edu>
 
        * krb524d.c: Include k5-int.h instead of krb5.h.
index d7ecfa81080a28e57c54d885f28032fd80bb9e06..f9b1b9691c664eb1261bc8e35d8e22d44fad8699 100644 (file)
@@ -89,7 +89,7 @@ $(K524LIB): $(OUTPRE)krb524.$(OBJEXT) $(OUTPRE)libinit.$(OBJEXT) $(KLIB) $(CLIB)
        link $(DLL_LINKOPTS) -def:$(K524DEF) -out:$*.dll $** $(WINLIBS)
 
 $(OUTPRE)k524init.exe: $(OUTPRE)k524init.$(OBJEXT) $(KLIB) $(K4LIB) $(CLIB) $(BUILDTOP)\util\windows\$(OUTPRE)getopt.lib
-       link $(EXE_LINKOPTS) -out:$@ $** $(WINLIBS)
+       link $(EXE_LINKOPTS) -out:$@ $** $(WINLIBS) $(SCLIB)
 
 install-unix::
        $(INSTALL_PROGRAM) krb524d $(DESTDIR)$(SERVER_BINDIR)/krb524d
index cdbd1d1df1fa2e9ecd1766ee8150636fa887ec62..d7d57ee9226c163a1c910f2e14bdacfd68a3da31 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * Makefile.in: support for 64-bit Windows builds
+
 2005-10-31  Jeffrey Altman <jaltman@mit.edu>
 
        * gssapi32.def:  export missing functions
index 3e34ef0ef5e68990cc22680d3a9f3e2e011eee3a..736f9a5156b3e8aca824ffe8dfc04d4d08e380f0 100644 (file)
@@ -28,45 +28,54 @@ clean-windows::
 ##MIT##MITLIBS=$(VS_LIB)
 ##MIT##MITFLAGS=-I$(VS_INC) /DVERSERV=1
 
-SLIBS = $(BUILDTOP)\util\support\$(OUTPRE)k5sprt32.lib
-CLIBS = $(BUILDTOP)\util\et\$(OUTPRE)comerr.lib
-PLIBS = $(BUILDTOP)\util\profile\$(OUTPRE)profile.lib
-KLIBS = krb5\$(OUTPRE)krb5.lib crypto\$(OUTPRE)crypto.lib \
-       $(BUILDTOP)\util\profile\$(OUTPRE)profile.lib \
-       des425\$(OUTPRE)des425.lib
-GLIBS = gssapi\$(OUTPRE)gssapi.lib
-K4LIBS = krb4\$(OUTPRE)krb4.lib
-
-SDEF = k5sprt32.def
-CDEF = comerr32.def
-PDEF = xpprof32.def
-KDEF = krb5_32.def
-GDEF = gssapi32.def
-K4DEF = krb4_32.def
-
-KRB5RC = krb5.rc
-VERSIONRC = $(BUILDTOP)\windows\version.rc
-
-WINLIBS = kernel32.lib ws2_32.lib user32.lib shell32.lib oldnames.lib \
-       version.lib secur32.lib advapi32.lib gdi32.lib delayimp.lib
-WINDLLFLAGS = $(DLL_LINKOPTS) -base:0x1c000000 /DELAYLOAD:secur32.dll \
-       /DELAYLOAD:advapi32.dll /DELAY:UNLOAD /DELAY:NOBIND
-
-S_GLUE=$(OUTPRE)support_glue.obj
-K5_GLUE=$(OUTPRE)k5_glue.obj
-K4_GLUE=$(OUTPRE)k4_glue.obj
-GSS_GLUE=$(OUTPRE)gss_glue.obj
-COMERR_GLUE=$(OUTPRE)comerr_glue.obj
-PROF_GLUE=$(OUTPRE)prof_glue.obj
-
-SGLUE=$(S_GLUE)
-CGLUE=$(COMERR_GLUE)
-PGLUE=$(PROF_GLUE)
-KGLUE=$(K5_GLUE)
-GGLUE=$(GSS_GLUE)
-K4GLUE=$(K4_GLUE)
-
-RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY
+
+
+##WIN32##!if  ("$(CPU)" == "IA64" ) || ("$(CPU)" == "AMD64" ) || ("$(CPU)" == "ALPHA64" )
+##WIN32##SLIBS = $(BUILDTOP)\util\support\$(OUTPRE)k5sprt64.lib
+##WIN32##!else
+##WIN32##SLIBS = $(BUILDTOP)\util\support\$(OUTPRE)k5sprt32.lib
+##WIN32##!endif
+##WIN32##CLIBS = $(BUILDTOP)\util\et\$(OUTPRE)comerr.lib
+##WIN32##PLIBS = $(BUILDTOP)\util\profile\$(OUTPRE)profile.lib
+##WIN32##KLIBS = krb5\$(OUTPRE)krb5.lib crypto\$(OUTPRE)crypto.lib \
+##WIN32##      $(BUILDTOP)\util\profile\$(OUTPRE)profile.lib \
+##WIN32##      des425\$(OUTPRE)des425.lib
+##WIN32##GLIBS = gssapi\$(OUTPRE)gssapi.lib
+##WIN32##K4LIBS = krb4\$(OUTPRE)krb4.lib
+
+
+##WIN32##SDEF = k5sprt32.def
+##WIN32##CDEF = comerr32.def
+##WIN32##PDEF = xpprof32.def
+##WIN32##KDEF = krb5_32.def
+##WIN32##GDEF = gssapi32.def
+##WIN32##K4DEF = krb4_32.def
+
+
+
+##WIN32##KRB5RC = krb5.rc
+##WIN32##VERSIONRC = $(BUILDTOP)\windows\version.rc
+
+##WIN32##WINLIBS = kernel32.lib ws2_32.lib user32.lib shell32.lib oldnames.lib \
+##WIN32##      version.lib secur32.lib advapi32.lib gdi32.lib delayimp.lib
+##WIN32##WINDLLFLAGS = $(DLL_LINKOPTS) -base:0x1c000000 /DELAYLOAD:secur32.dll \
+##WIN32##      /DELAYLOAD:advapi32.dll /DELAY:UNLOAD /DELAY:NOBIND
+
+##WIN32##S_GLUE=$(OUTPRE)support_glue.obj
+##WIN32##K5_GLUE=$(OUTPRE)k5_glue.obj
+##WIN32##K4_GLUE=$(OUTPRE)k4_glue.obj
+##WIN32##GSS_GLUE=$(OUTPRE)gss_glue.obj
+##WIN32##COMERR_GLUE=$(OUTPRE)comerr_glue.obj
+##WIN32##PROF_GLUE=$(OUTPRE)prof_glue.obj
+
+##WIN32##SGLUE=$(S_GLUE)
+##WIN32##CGLUE=$(COMERR_GLUE)
+##WIN32##PGLUE=$(PROF_GLUE)
+##WIN32##KGLUE=$(K5_GLUE)
+##WIN32##GGLUE=$(GSS_GLUE)
+##WIN32##K4GLUE=$(K4_GLUE)
+
+##WIN32##RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY
 
 ##WIN32##SRES=$(SLIB:.lib=.res)
 ##WIN32##CRES=$(CLIB:.lib=.res)
@@ -91,16 +100,16 @@ RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY
 
 ##WIN32##$(SLIB): $(SDEF) $(SLIBS) $(SGLUE) $(SRES)
 ##WIN32##      link $(WINDLLFLAGS) -def:$(SDEF) -out:$*.dll \
-##WIN32##        $(SLIBS) $(SGLUE) $(SRES) $(WINLIBS)
-$(SDEF): ..\util\support\libkrb5support.exports
-       echo EXPORTS > $(SDEF).new
-       type ..\util\support\libkrb5support.exports >> $(SDEF).new
-       -$(RM) $(SDEF)
-       ren $(SDEF).new $(SDEF)
+##WIN32##        $(SLIBS) $(SGLUE) $(SRES) $(WINLIBS) $(SCLIB)
+##WIN32##$(SDEF): ..\util\support\libkrb5support.exports
+##WIN32##      echo EXPORTS > $(SDEF).new
+##WIN32##      type ..\util\support\libkrb5support.exports >> $(SDEF).new
+##WIN32##      -$(RM) $(SDEF)
+##WIN32##      ren $(SDEF).new $(SDEF)
 
 ##WIN32##$(CLIB): $(CDEF) $(CLIBS) $(CGLUE) $(CRES) $(SLIB)
 ##WIN32##      link $(WINDLLFLAGS) -def:$(CDEF) -out:$*.dll \
-##WIN32##        $(CLIBS) $(CGLUE) $(CRES) $(SLIB) $(WINLIBS)
+##WIN32##        $(CLIBS) $(CGLUE) $(CRES) $(SLIB) $(WINLIBS) $(SCLIB)
 
 ##WIN32##$(PLIB): $(PDEF) $(PLIBS) $(PGLUE) $(PRES) $(CLIB) $(SLIB)
 ##WIN32##      link $(WINDLLFLAGS) -def:$(PDEF) -out:$*.dll \
@@ -108,73 +117,73 @@ $(SDEF): ..\util\support\libkrb5support.exports
 
 ##WIN32##$(KLIB): $(KDEF) $(KLIBS) $(KGLUE) $(KRES) $(CLIB) $(SLIB) $(MITLIBS) $(DNSLIBS)
 ##WIN32##      link $(WINDLLFLAGS) -def:$(KDEF) -out:$*.dll \
-##WIN32##        $(KLIBS) $(KGLUE) $(KRES) $(CLIB) $(SLIB) $(MITLIBS) $(DNSLIBS) $(WINLIBS)
+##WIN32##        $(KLIBS) $(KGLUE) $(KRES) $(CLIB) $(SLIB) $(MITLIBS) $(DNSLIBS) $(WINLIBS) $(SCLIB)
 
 ##WIN32##$(GLIB): $(GDEF) $(GLIBS) $(GGLUE) $(GRES) $(KLIB) $(CLIB) $(SLIB)
 ##WIN32##      link $(WINDLLFLAGS) -def:$(GDEF) -out:$*.dll \
-##WIN32##        $(GLIBS) $(GGLUE) $(GRES) $(KLIB) $(CLIB) $(SLIB) $(WINLIBS)
+##WIN32##        $(GLIBS) $(GGLUE) $(GRES) $(KLIB) $(CLIB) $(SLIB) $(WINLIBS) $(SCLIB)
 
 ##WIN32##$(K4LIB): $(K4DEF) $(K4LIBS) $(K4GLUE) $(K4RES) $(KLIB) $(CLIB) $(PLIB)
 ##WIN32##      link $(WINDLLFLAGS) -def:$(K4DEF) -out:$*.dll \
-##WIN32##        $(K4LIBS) $(K4GLUE) $(K4RES) $(KLIB) $(CLIB) $(PLIB) $(WINLIBS)
-
-$(K5_GLUE): win_glue.c
-       $(CC) $(ALL_CFLAGS) $(MITFLAGS) /c /DKRB5=1 /Fo$@ $**
-$(K4_GLUE): win_glue.c
-       $(CC) $(ALL_CFLAGS) /c /DKRB4=1 /Fo$@ $**
-$(GSS_GLUE): win_glue.c
-       $(CC) $(ALL_CFLAGS) /c /DGSSAPI=1 /Fo$@ $**
-$(COMERR_GLUE): win_glue.c
-       $(CC) $(ALL_CFLAGS) /c /DCOMERR=1 /Fo$@ $**
-$(PROF_GLUE): win_glue.c
-       $(CC) $(ALL_CFLAGS) /c /DPROFILELIB=1 /Fo$@ $**
-$(S_GLUE): win_glue.c
-       $(CC) $(ALL_CFLAGS) /c /DSUPPORTLIB=1 /Fo$@ $**
-
-# Build Convenience
-comerr.lib: $(CLIB)
-krb4.lib:   $(K4LIB)
-krb5.lib:   $(KLIB)
-gssapi.lib: $(GLIB)
-profile.lib: $(PLIB)
-
-all-windows:: 
-       @echo Making in lib\crypto
-       cd crypto
-       $(MAKE) -$(MFLAGS)
-       @echo Making in lib\krb5
-       cd ..\krb5
-       $(MAKE) -$(MFLAGS)
-       @echo Making in lib\des425
-       cd ..\des425
-       $(MAKE) -$(MFLAGS) 
-       @echo Making in lib\krb4
-       cd ..\krb4
-       $(MAKE) -$(MFLAGS) 
-       @echo Making in lib\gssapi
-       cd ..\gssapi
-       $(MAKE) -$(MFLAGS) 
-       @echo Making in lib
-       cd ..
-
-all-windows:: lib-windows
-lib-windows:: krb5.lib gssapi.lib krb4.lib 
-
-clean-windows::
-       @echo Making clean in lib\crypto
-       cd crypto
-       $(MAKE) -$(MFLAGS) clean
-       @echo Making clean in lib\krb5
-       cd ..\krb5
-       $(MAKE) -$(MFLAGS) clean
-       @echo Making clean in lib\des425
-       cd ..\des425
-       $(MAKE) -$(MFLAGS) clean
-       @echo Making clean in lib\krb4
-       cd ..\krb4
-       $(MAKE) -$(MFLAGS) clean
-       @echo Making clean in lib\gssapi
-       cd ..\gssapi
-       $(MAKE) -$(MFLAGS) clean
-       @echo Making clean in lib
-       cd ..
+##WIN32##        $(K4LIBS) $(K4GLUE) $(K4RES) $(KLIB) $(CLIB) $(PLIB) $(WINLIBS) $(SCLIB)
+
+##WIN32##$(K5_GLUE): win_glue.c
+##WIN32##      $(CC) $(ALL_CFLAGS) $(MITFLAGS) /c /DKRB5=1 /Fo$@ $**
+##WIN32##$(K4_GLUE): win_glue.c
+##WIN32##      $(CC) $(ALL_CFLAGS) /c /DKRB4=1 /Fo$@ $**
+##WIN32##$(GSS_GLUE): win_glue.c
+##WIN32##      $(CC) $(ALL_CFLAGS) /c /DGSSAPI=1 /Fo$@ $**
+##WIN32##$(COMERR_GLUE): win_glue.c
+##WIN32##      $(CC) $(ALL_CFLAGS) /c /DCOMERR=1 /Fo$@ $**
+##WIN32##$(PROF_GLUE): win_glue.c
+##WIN32##      $(CC) $(ALL_CFLAGS) /c /DPROFILELIB=1 /Fo$@ $**
+##WIN32##$(S_GLUE): win_glue.c
+##WIN32##      $(CC) $(ALL_CFLAGS) /c /DSUPPORTLIB=1 /Fo$@ $**
+
+##WIN32### Build Convenience
+##WIN32##comerr.lib: $(CLIB)
+##WIN32##krb4.lib:   $(K4LIB)
+##WIN32##krb5.lib:   $(KLIB)
+##WIN32##gssapi.lib: $(GLIB)
+##WIN32##profile.lib: $(PLIB)
+
+##WIN32##all-windows:: 
+##WIN32##      @echo Making in lib\crypto
+##WIN32##      cd crypto
+##WIN32##      $(MAKE) -$(MFLAGS)
+##WIN32##      @echo Making in lib\krb5
+##WIN32##      cd ..\krb5
+##WIN32##      $(MAKE) -$(MFLAGS)
+##WIN32##      @echo Making in lib\des425
+##WIN32##      cd ..\des425
+##WIN32##      $(MAKE) -$(MFLAGS) 
+##WIN32##      @echo Making in lib\krb4
+##WIN32##      cd ..\krb4
+##WIN32##      $(MAKE) -$(MFLAGS) 
+##WIN32##      @echo Making in lib\gssapi
+##WIN32##      cd ..\gssapi
+##WIN32##      $(MAKE) -$(MFLAGS) 
+##WIN32##      @echo Making in lib
+##WIN32##      cd ..
+
+##WIN32##all-windows:: lib-windows
+##WIN32##lib-windows:: krb5.lib gssapi.lib krb4.lib 
+
+##WIN32##clean-windows::
+##WIN32##      @echo Making clean in lib\crypto
+##WIN32##      cd crypto
+##WIN32##      $(MAKE) -$(MFLAGS) clean
+##WIN32##      @echo Making clean in lib\krb5
+##WIN32##      cd ..\krb5
+##WIN32##      $(MAKE) -$(MFLAGS) clean
+##WIN32##      @echo Making clean in lib\des425
+##WIN32##      cd ..\des425
+##WIN32##      $(MAKE) -$(MFLAGS) clean
+##WIN32##      @echo Making clean in lib\krb4
+##WIN32##      cd ..\krb4
+##WIN32##      $(MAKE) -$(MFLAGS) clean
+##WIN32##      @echo Making clean in lib\gssapi
+##WIN32##      cd ..\gssapi
+##WIN32##      $(MAKE) -$(MFLAGS) clean
+##WIN32##      @echo Making clean in lib
+##WIN32##      cd ..
index 6e35592cb080748ae1ec8eafea5ca9d880576208..d9bda00a64a3aca0db63185c07e76e210c247869 100644 (file)
@@ -1,3 +1,8 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * gmt_mktime.c, read_pwd.c: changes to support 64-bit builds
+          on Windows
+
 2005-11-14  Jeffrey Altman <jaltman@mit.edu>
 
        * toffset.c:  (krb5_set_real_time, krb5_set_debugging_time, 
index 0e3d53ef99fa53cc047ee95cd95ef2a446bc38f4..6f2868da7c2cb9528f8f9468621bcf8c9eb538f1 100644 (file)
@@ -209,7 +209,7 @@ read_pwd_proc(HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam)
     switch(msg) {
     case WM_INITDIALOG:
        dp = (pwd_params *) lParam;
-       SetWindowLong(hdlg, DWL_USER, lParam);
+       SetWindowLongPtr(hdlg, DWLP_USER, lParam);
        SetDlgItemText(hdlg, ID_READ_PWD_PROMPT, dp->pwd_prompt);
        SetDlgItemText(hdlg, ID_READ_PWD_PROMPT2, dp->pwd_prompt2);
        SetDlgItemText(hdlg, ID_READ_PWD_PWD, "");
@@ -217,7 +217,7 @@ read_pwd_proc(HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam)
        return TRUE;
 
     case WM_COMMAND:
-       dp = (pwd_params *) GetWindowLong(hdlg, DWL_USER);
+       dp = (pwd_params *) GetWindowLongPtr(hdlg, DWLP_USER);
         switch (wParam) {
        case IDOK:
            *(dp->pwd_size_return) =
index 7bdcc32b18f1a8a247bf5bde8834f669a281f28b..7c3c3648ee357929824c057b9643bfc1a31faabf 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * Makefile.in: support for 64-bit Windows builds
+
 2006-01-25  Ken Raeburn  <raeburn@mit.edu>
 
        * threads.c (krb5int_mutex_alloc, krb5int_mutex_free,
index 5a8fcff163ecc99d82559a2ba2c99507fe31ec4b..5abd3a27ee2c3eaa47c122f7c59b98b8f71d3388 100644 (file)
@@ -6,8 +6,10 @@ RELDIR=../util/support
 
 ##DOS##BUILDTOP = ..\..
 ##DOS##LIBNAME=$(OUTPRE)k5sprt32.lib
+##DOS##WIN64LIBNAME=$(OUTPRE)k5sprt64.lib
 ##DOS##XTRA=
 ##DOS##OBJFILE=$(OUTPRE)k5sprt32.lst
+##DOS##WIN64OBJFILE=$(OUTPRE)k5sprt64.lst
 
 SED = sed
 
index 96fd0aee4e31f3f620a73aefaf9e1f67c42a30a3..06ce8afbb1e487f633dbc383788105d2b4de554c 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * Makefile.in: support for 64-bit Windows builds
+
 2000-02-04  Danilo Almeida  <dalmeida@mit.edu>
 
        * getopt.c, getopt_long.c, getopt.h: Update to latest BSD code
index be5d4f5d6f1f478ee46caaef5b61c94ab2a42e1a..102ae741c91df744a595b83892bba9eceb1961d8 100644 (file)
@@ -3,7 +3,7 @@ BUILDTOP = ..\..
 all-windows:: $(OUTPRE)libecho.exe $(OUTPRE)getopt.lib
 
 $(OUTPRE)libecho.exe: $(OUTPRE)libecho.obj
-       link -out:$@ $**
+       link -out:$@ $** $(SCLIB)
 
 $(OUTPRE)getopt.lib: $(OUTPRE)getopt.obj $(OUTPRE)getopt_long.obj
        lib -out:$@ $**
index d2fcb8fa24b6b79d81b745b7ebb9286ee4e3f2c0..fe9823d8d7566d1a32cdbad7c41b0fc7a00e754d 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * Makefile.in: support for 64-bit Windows builds
+
 2005-11-29  Jeffrey Altman <jaltman@mit.edu>
 
        * Makefile.in: build src/windows/kfwlogon
index f1045951ae4d1827dbd279ff5cc9f30dd5eb3fdc..5285b02f5dbffd66d10b5af21c7d59ceb304462b 100644 (file)
@@ -14,9 +14,11 @@ all-windows::
        @echo Making in windows\wintel
        cd ..\wintel
        $(MAKE) -$(MFLAGS)
-       @echo Making in windows\gss
+!if ( "$(CPU)" != "ALPHA64" ) && ( "$(CPU)" != "IA64" ) && ( "$(CPU)" != "AMD64" )
+       @echo Making in windows\gss
        cd ..\gss
        $(MAKE) -$(MFLAGS)
+!endif
        @echo Making in windows\gina
        cd ..\gina
        $(MAKE) -$(MFLAGS)
index d32fd8ac3fe9c4b8f52f7887d2091d7fe630bf8e..37940a33e4132945634f5a829874726259248fb5 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * Makefile.in, password.c: support for 64-bit Windows builds
+
 2005-03-15  Jeffrey Altman <jaltman@mit.edu>
 
         * tktlist.c: do not mix pointers to long and time_t 
index 7ea2def12445249dac6e824f44e6a1dd6954a489..1e9e50ed6df1df17646d7e400460051b91f6d38d 100644 (file)
@@ -54,7 +54,7 @@ all:: Makefile $(OUTPRE)$(NAME).exe
 
 $(OUTPRE)$(NAME).exe: $(NAME).def $(OBJS) $(XOBJS) $(LIBS)
        $(LINK) $(LFLAGS) /map:$*.map /out:$@ $(OBJS) $(XOBJS) \
-         $(LIBS) $(SYSLIBS)
+         $(LIBS) $(SYSLIBS) $(SCLIB)
 
 install::
        $(CP) $(OUTPRE)$(NAME).exe $(DESTDIR)
index ad02201f144c0c666e284b1486416e5034798a60..b986659949d6aded558b04dd86bd07c11ac5232d 100644 (file)
@@ -277,7 +277,7 @@ password_dlg_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
   case WM_SETCURSOR:
     if (isblocking) {
       SetCursor(LoadCursor(NULL, IDC_WAIT));
-      SetWindowLong(hwnd, DWL_MSGRESULT, TRUE);
+      SetWindowLongPtr(hwnd, DWLP_MSGRESULT, TRUE);
 
       return TRUE;
     }
index a8d2d05a419ec13b2d62b146a7e5d9b5e55f7596..5b6616bb0573641e1f1561479b251795da4a3046 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * Makefile.in: support for 64-bit Windows builds
+
 2005-10-20  Jeffrey Altman <jaltman@mit.edu>
 
        * Makefile.in (WINLIBS): Link to the multi-threaded library.
index 4a3103267c94e8413bdef16d1fa553c6392777ca..2aec54469b0c4fd4cd1fe07ed3971c3f8a04832f 100644 (file)
@@ -27,7 +27,7 @@ clean-windows::
 
 $(OUTPRE)kgina.dll: $(OBJS) $(KLIB) $(CLIB)
        link $(WINDLLFLAGS) -def:gina.def -out:$*.dll \
-          $** $(WINLIBS)
+          $** $(WINLIBS) $(SCLIB)
 
 $(OUTPRE)ginastub.obj: ginastub.h
 
index 10e7d4cfb94aa15cce9b3f1681e6c3549c50d99b..0b3879c591c0c76b18aa1d44bb4d276762015d5b 100644 (file)
@@ -1,37 +1,37 @@
-# Makefile for the KFW Network Provider\r
-#\r
-\r
-thisconfigdir=./..\r
-myfulldir=windows/nplogon\r
-mydir=.\r
-BUILDTOP=$(REL)..$(S)..\r
-DEFINES = \r
-LOCALINCLUDES = -I$(BUILDTOP) -I$(PISMERE)\athena\util\loadfuncs \\r
-       -I$(PISMERE)\athena\auth\krb5\src\include\kerberosIV \\r
-       -I$(PISMERE)\athena\auth\krb4\include \\r
-       -I$(PISMERE)\athena\auth\leash\include\r
-PROG_LIBPATH=-L$(TOPLIBD) -L$(KRB5_LIBDIR)\r
-\r
-SYSLIBS = kernel32.lib user32.lib advapi32.lib wsock32.lib secur32.lib\r
-RFLAGS = $(LOCALINCLUDES)\r
-RCFLAGS = $(RFLAGS) -D_WIN32\r
-\r
-all-windows:: $(OUTPRE)kfwlogon.dll $(OUTPRE)kfwcpcc.exe\r
-\r
-$(OUTPRE)kfwlogon.res: kfwlogon.rc ..\version.rc\r
-\r
-$(OUTPRE)kfwcpcc.res: kfwcpcc.rc ..\version.rc\r
-\r
-$(OUTPRE)kfwlogon.dll: $(OUTPRE)kfwlogon.obj $(OUTPRE)kfwcommon.obj $(OUTPRE)kfwlogon.res\r
-    link $(DLL_LINKOPTS) -out:$@ $(OUTPRE)kfwlogon.obj $(OUTPRE)kfwcommon.obj -entry:DllEntryPoint -def:kfwlogon.def $(SYSLIBS) $(KLIB) $(CLIB)\r
-\r
-$(OUTPRE)kfwcpcc.exe: $(OUTPRE)kfwcpcc.obj $(OUTPRE)kfwcommon.obj $(OUTPRE)kfwcpcc.res\r
-    link $(EXE_LINKOPTS) -out:$@ $(OUTPRE)kfwcpcc.obj $(OUTPRE)kfwcommon.obj $(SYSLIBS) $(KLIB) $(CLIB)\r
-\r
-install::\r
-        copy $(OUTPRE)kfwlogon.dll $(DESTDIR)\r
-        copy $(OUTPRE)kfwcpcc.exe  $(DESTDIR)\r
-\r
-clean::\r
-        $(RM) $(OUTPRE)*.exe $(OUTPRE)*.dll $(OUTPRE)*.res\r
-\r
+# Makefile for the KFW Network Provider
+#
+
+thisconfigdir=./..
+myfulldir=windows/nplogon
+mydir=.
+BUILDTOP=$(REL)..$(S)..
+DEFINES = 
+LOCALINCLUDES = -I$(BUILDTOP) -I$(PISMERE)\athena\util\loadfuncs \
+       -I$(PISMERE)\athena\auth\krb5\src\include\kerberosIV \
+       -I$(PISMERE)\athena\auth\krb4\include \
+       -I$(PISMERE)\athena\auth\leash\include
+PROG_LIBPATH=-L$(TOPLIBD) -L$(KRB5_LIBDIR)
+
+SYSLIBS = kernel32.lib user32.lib advapi32.lib wsock32.lib secur32.lib
+RFLAGS = $(LOCALINCLUDES)
+RCFLAGS = $(RFLAGS) -D_WIN32
+
+all-windows:: $(OUTPRE)kfwlogon.dll $(OUTPRE)kfwcpcc.exe
+
+$(OUTPRE)kfwlogon.res: kfwlogon.rc ..\version.rc
+
+$(OUTPRE)kfwcpcc.res: kfwcpcc.rc ..\version.rc
+
+$(OUTPRE)kfwlogon.dll: $(OUTPRE)kfwlogon.obj $(OUTPRE)kfwcommon.obj $(OUTPRE)kfwlogon.res
+    link $(DLL_LINKOPTS) -out:$@ $(OUTPRE)kfwlogon.obj $(OUTPRE)kfwcommon.obj -entry:DllEntryPoint -def:kfwlogon.def $(SYSLIBS) $(KLIB) $(CLIB) $(SCLIB)
+
+$(OUTPRE)kfwcpcc.exe: $(OUTPRE)kfwcpcc.obj $(OUTPRE)kfwcommon.obj $(OUTPRE)kfwcpcc.res
+    link $(EXE_LINKOPTS) -out:$@ $(OUTPRE)kfwcpcc.obj $(OUTPRE)kfwcommon.obj $(SYSLIBS) $(KLIB) $(CLIB) $(SCLIB)
+
+install::
+        copy $(OUTPRE)kfwlogon.dll $(DESTDIR)
+        copy $(OUTPRE)kfwcpcc.exe  $(DESTDIR)
+
+clean::
+        $(RM) $(OUTPRE)*.exe $(OUTPRE)*.dll $(OUTPRE)*.res
+
index 63ad7a421e383e2e9bb9c76b646cd9878008a15f..5339a879cf924b66e7bc7c6fe46751eb86a4f460 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-24  Jeffrey Altman <jaltman@mit.edu>
+
+       * Makefile.in: support for 64-bit Windows builds
+
 2004-09-30  Jeffrey Altman <jaltman@mit.edu>
 
         * Makefile.in: Add $(BUILDTOP) to include path for patchlevel.h
index 3d2b382f04ff8ff0248c3e8205bd12631c2f630f..0603cc4ba0d95dd786ef59bf9d3002f15598e5f0 100644 (file)
@@ -34,7 +34,7 @@ all:: Makefile $(OUTPRE)telnet.exe
 
 $(OUTPRE)telnet.exe: telnet.def $(OBJS) $(XOBJS) $(LIBS)
        $(LINK) $(LFLAGS) /map:$*.map /out:$@ $(OBJS) $(XOBJS) \
-         $(LIBS) $(SYSLIBS)
+         $(LIBS) $(SYSLIBS) $(SCLIB)
 
 install::
        copy $(OUTPRE)telnet.exe $(DESTDIR)