📄 27
字号:
Replied: Sat, 26 Oct 1996 22:21:36 -0400Replied: "schueman@ix.netcom.com "Received: from copland.udel.edu by huey.udel.edu id aa06631; 26 Oct 96 3:19 EDTReceived: from dfw-ix11.ix.netcom.com (dfw-ix11.ix.netcom.com [206.214.98.11]) by copland.udel.edu (8.7.6/8.7.3) with SMTP id DAA28854 for <mills@udel.edu>; Sat, 26 Oct 1996 03:19:49 -0400 (EDT)Received: from sverige (pas-ca13-13.ix.netcom.com [204.32.164.45]) by dfw-ix11.ix.netcom.com (8.6.13/8.6.12) with SMTP id AAA24869 for <mills@udel.edu>; Sat, 26 Oct 1996 00:19:04 -0700Message-ID: <3271BAEE.6926@ix.netcom.com>Date: Sat, 26 Oct 1996 00:17:02 -0700From: Greg Schueman <schueman@ix.netcom.com>Reply-To: schueman@ix.netcom.comX-Mailer: Mozilla 3.0Gold (Win95; U)MIME-Version: 1.0To: mills@udel.eduSubject: XNTP 3.5-86 NT patchesDavid, I'm finally in a position to finish the NT mods.Here are the diffs against 3.5-86 to get a working NT versionagain.I plan to do two more things this Fall:1. Add local clock support to the port2. Redo build environment to use Autoconfig under NT (This depends on the Cygnus portability project to Windows NT, but they seem very close to what I need to do this. Beta 17 of their project should make this approach possible.)Please include the diffs that are attached in your next release (3.5-87?).-Greg Schuemandiff -N -x *.mak -c -r xntp3-5.86/blddbg.bat xntp/blddbg.bat*** xntp3-5.86/blddbg.bat Wed Dec 31 23:59:19 1969--- xntp/blddbg.bat Sat Oct 26 06:08:14 1996****************** 1,6 **** @echo off REM! REM File: buildalldbg.bat REM Purpose: To compile the XNTP source tree for Win NT. REM Date: 05/03/1996 REM--- 1,6 ---- @echo off REM! REM File: blddbg.bat REM Purpose: To compile the XNTP source tree for Win NT. REM Date: 05/03/1996 REM****************** 54,78 **** @echo ----------------------------------------- @echo Compiling the service installer @echo -----------------------------------------! @cd ..\util nmake /f instsrv.mak CFG="instsrv - Win32 Debug" @echo ----------------------------------------- @echo Compiling the InstallShield support DLL @echo -----------------------------------------! @cd ..\scripts\wininstall nmake /f ntpdll.mak CFG="ntpdll - Win32 Debug" @echo ----------------------------------------- @echo Now copying all executables to the scripts\wininstall\distrib directory @echo -----------------------------------------! @cd .. copy xntpd\windebug\*.exe scripts\wininstall\distrib copy xntpdc\windebug\*.exe scripts\wininstall\distrib copy ntpq\windebug\*.exe scripts\wininstall\distrib copy ntpdate\windebug\*.exe scripts\wininstall\distrib copy ntptrace\windebug\*.exe scripts\wininstall\distrib! copy scripts\windebug\*.exe scripts\wininstall\distrib @echo ----------------------------------------- @echo ----------------------------------------- @echo--- 54,79 ---- @echo ----------------------------------------- @echo Compiling the service installer @echo -----------------------------------------! @cd ..\scripts\wininstall\instsrv nmake /f instsrv.mak CFG="instsrv - Win32 Debug" @echo ----------------------------------------- @echo Compiling the InstallShield support DLL @echo -----------------------------------------! @cd .. nmake /f ntpdll.mak CFG="ntpdll - Win32 Debug" @echo ----------------------------------------- @echo Now copying all executables to the scripts\wininstall\distrib directory @echo -----------------------------------------! @cd ..\.. copy xntpd\windebug\*.exe scripts\wininstall\distrib copy xntpdc\windebug\*.exe scripts\wininstall\distrib copy ntpq\windebug\*.exe scripts\wininstall\distrib copy ntpdate\windebug\*.exe scripts\wininstall\distrib copy ntptrace\windebug\*.exe scripts\wininstall\distrib! copy scripts\wininstall\instsrv\windebug\*.exe scripts\wininstall\distrib! copy scripts\wininstall\windebug\*.dll scripts\wininstall @echo ----------------------------------------- @echo ----------------------------------------- @echodiff -N -x *.mak -c -r xntp3-5.86/bldrel.bat xntp/bldrel.bat*** xntp3-5.86/bldrel.bat Wed Dec 31 23:57:19 1969--- xntp/bldrel.bat Sat Oct 26 06:09:06 1996****************** 1,6 **** @echo off REM! REM File: buildallnt.bat REM Purpose: To compile the XNTP source tree for Win NT. REM Date: 05/03/1996 REM--- 1,6 ---- @echo off REM! REM File: bldrel.bat REM Purpose: To compile the XNTP source tree for Win NT. REM Date: 05/03/1996 REM****************** 54,66 **** @echo ----------------------------------------- @echo Compiling the service installer @echo -----------------------------------------! @cd ..\util nmake /f instsrv.mak CFG="instsrv - Win32 Release" @echo ----------------------------------------- @echo Compiling the InstallShield support DLL @echo -----------------------------------------! @cd ..\scripts\wininstall nmake /f ntpdll.mak CFG="ntpdll - Win32 Release" @echo -------------------------------------------- 54,66 ---- @echo ----------------------------------------- @echo Compiling the service installer @echo -----------------------------------------! @cd ..\scripts\wininstall\instsrv nmake /f instsrv.mak CFG="instsrv - Win32 Release" @echo ----------------------------------------- @echo Compiling the InstallShield support DLL @echo -----------------------------------------! @cd .. nmake /f ntpdll.mak CFG="ntpdll - Win32 Release" @echo -----------------------------------------****************** 72,78 **** copy ntpq\winrel\*.exe scripts\wininstall\distrib copy ntpdate\winrel\*.exe scripts\wininstall\distrib copy ntptrace\winrel\*.exe scripts\wininstall\distrib! copy scripts\winrel\*.exe scripts\wininstall\distrib @echo ----------------------------------------- @echo ----------------------------------------- @echo--- 72,79 ---- copy ntpq\winrel\*.exe scripts\wininstall\distrib copy ntpdate\winrel\*.exe scripts\wininstall\distrib copy ntptrace\winrel\*.exe scripts\wininstall\distrib! copy scripts\wininstall\instsrv\winrel\*.exe scripts\wininstall\distrib! copy scripts\wininstall\winrel\*.dll scripts\wininstall @echo ----------------------------------------- @echo ----------------------------------------- @echodiff -N -x *.mak -c -r xntp3-5.86/html/build.html xntp/html/build.html*** xntp3-5.86/html/build.html Wed Dec 31 23:59:11 1969--- xntp/html/build.html Sat Oct 26 06:33:23 1996****************** 121,135 **** <p>See the <code>./scripts/wininstall/readme.nt</code> file for directions to compile the sources, build the libraries and link the! executables. This will compile all of the source and will create an <code>InstallShield</code> based graphical installation package. <p>To install the executables, make sure that you are logged in as a system account, or one with administrator privileges such as the "administrator" account. As part of the build an <code>InstallShield</code> based graphical installer was created. Run! <code>\ntp\install\intel\disk1\setup.exe</code> to begin the installation. This installer will prompt for basic defaults, copy the! binaries, install the service, and start it up. <hr><address>David L. Mills (mills@udel.edu)</address></body></html>--- 121,138 ---- <p>See the <code>./scripts/wininstall/readme.nt</code> file for directions to compile the sources, build the libraries and link the! executables. Initiate the build by running either <code>bldrel.bat<code> ! or <code>blddbg.bat<code> to compile all of the source and create an <code>InstallShield</code> based graphical installation package. <p>To install the executables, make sure that you are logged in as a system account, or one with administrator privileges such as the "administrator" account. As part of the build an <code>InstallShield</code> based graphical installer was created. Run! <code>\xntp\scripts\wininstall\intel\disk1\setup.exe</code> to begin the installation. This installer will prompt for basic defaults, copy the! binaries, install the service, and start it up. The other option is! to run <code>\xntp\scripts\wininstall\distrib\install.bat</code> which! will do the basic installation from the command line. <hr><address>David L. Mills (mills@udel.edu)</address></body></html>diff -N -x *.mak -c -r xntp3-5.86/html/hints/winnt xntp/html/hints/winnt*** xntp3-5.86/html/hints/winnt Thu Jan 01 00:03:19 1970--- xntp/html/hints/winnt Mon Oct 21 01:58:01 1996****************** 1,6 ****--- 1,95 ---- ------------- INTRODUCTION: -------------+ Last revision: 20-Oct-1996+ + This version corrects problems with building the XNTP + version 3.5-86 distribution under Windows NT.+ + The following files were modified:+ blddbg.bat+ bldrel.bat+ include\ntp_machine.h+ xntpd\ntp_unixclock.c+ xntpd\ntp_refclock.c+ scripts\wininstall\build.bat+ scripts\wininstall\setup.rul+ scripts\wininstall\readme.nt+ scripts\wininstall\distrib\ntpog.wri+ html\hints\winnt (this file)+ + In order to build the entire Windows NT distribution you+ need to modify the file scripts\wininstall\build.bat+ with the installation directory of the InstallShield + software. Then, simply type "bldrel" for non-debug + or "blddbg" for debug executables.+ + + + Greg Schueman+ <schueman@acm.org>+ + + Last revision: 07-May-1996+ + This set of changes fixes all known bugs, and it includes + several major enhancements.+ + Many changes have been made both to the build environment as+ well as the code. There is no longer an ntp.mak file, instead+ there is a buildntall.bat file that will build the entire + release in one shot. The batch file requires Perl. Perl+ is easily available from the NT Resource Kit or on the Net.+ + The multiple interface support was adapted from Larry Kahn's+ work on the BIND NT port. I have not been able to test it+ adequately as I only have NT servers with one network + interfaces on which to test. + + Enhancements:+ * Event Logging now works correctly.+ * Version numbers now work (requires Perl during build)+ * Support for multiple network interface cards (untested)+ * NTP.CONF now default, but supports ntp.ini if not found+ * Installation procedure automated.+ * All paths now allow environment variables such as %windir%+ + Bug fixes:+ * INSTSRV replaced, works correctly+ * Cleaned up many warnings+ * Corrected use of an uninitialized variable in XNTPD+ * Fixed ntpdate -b option+ * Fixed ntpdate to accept names as well as IP addresses+ (Winsock WSAStartup was called after a gethostbyname())+ * Fixed problem with "longjmp" in xntpdc/ntpdc.c that + caused a software exception on doing a Control-C in xntpdc.+ A Cntrl-C now terminates the program. + + See below for more detail:+ + Note: SIGINT is not supported for any Win32 application including + Windows NT and Windows 95. When a CTRL+C interrupt occurs, Win32 + operating systems generate a new thread to specifically handle that + interrupt. This can cause a single-thread application such as UNIX, + to become multithreaded, resulting in unexpected behavior. + + + Possible enhancements and things left to do:+ * Reference clock drivers for NT (at least Local Clock support)+ * Control Panel Applet+ * InstallShield based installation, like NT BIND has+ * Integration with NT Performance Monitor+ * SNMP integration+ * Fully test multiple interface support+ + + Known problems:+ * bug in ntptrace - if no Stratum 1 servers are available,+ such as on an IntraNet, the application crashes.+ + + + Last revision: 12-Apr-1995 diff -N -x *.mak -c -r xntp3-5.86/include/ntp_machine.h xntp/include/ntp_machine.h*** xntp3-5.86/include/ntp_machine.h Wed Dec 31 23:59:30 1969--- xntp/include/ntp_machine.h Sun Oct 20 22:40:30 1996****************** 194,203 ****--- 194,209 ---- * Windows NT 3.5 */ #if defined(SYS_WINNT)+ # define STDC_HEADERS+ # define NEED_S_CHAR_TYPEDEF+ # define SIZEOF_SIGNED_CHAR 1 # define HAVE_NO_NICE # define NOKMEM+ # define PRESET_TICKADJ 50 # define RETSIGTYPE void # define NTP_POSIX_SOURCE+ # define HAVE_SETVBUF+ # define HAVE_VSPRINTF # ifndef STR_SYSTEM # define STR_SYSTEM "WINDOWS/NT3.5" # endifdiff -N -x *.mak -c -r xntp3-5.86/ntptrace/save xntp/ntptrace/save*** xntp3-5.86/ntptrace/save Thu Jan 01 00:00:01 1970--- xntp/ntptrace/save Thu Jan 01 00:00:00 1970****************** 1,236 ****- # Microsoft Developer Studio Generated NMAKE File, Format Version 4.00- # ** DO NOT EDIT **- - # TARGTYPE "Win32 (x86) Console Application" 0x0103- - !IF "$(CFG)" == ""- CFG=ntptrace - Win32 Debug- !MESSAGE No configuration specified. Defaulting to ntptrace - Win32 Debug.- !ENDIF - - !IF "$(CFG)" != "ntptrace - Win32 Release" && "$(CFG)" !=\- "ntptrace - Win32 Debug"- !MESSAGE Invalid configuration "$(CFG)" specified.- !MESSAGE You can specify a configuration when running NMAKE on this makefile- !MESSAGE by defining the macro CFG on the command line. For example:- !MESSAGE - !MESSAGE NMAKE /f "ntptrace.mak" CFG="ntptrace - Win32 Debug"- !MESSAGE - !MESSAGE Possible choices for configuration are:- !MESSAGE - !MESSAGE "ntptrace - Win32 Release" (based on\- "Win32 (x86) Console Application")- !MESSAGE "ntptrace - Win32 Debug" (based on "Win32 (x86) Console Application")- !MESSAGE - !ERROR An invalid configuration is specified.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -