Artifact
196e5f2ba2a4ec9adfaf9050cc8245ffd8c937572b367abfd79854c2a7e68da2:
0000: 09 57 69 6e 64 6f 77 73 20 44 4c 4c 20 42 75 69 .Windows DLL Bui
0010: 6c 64 20 69 6e 73 74 72 75 63 74 69 6f 6e 73 20 ld instructions
0020: 75 73 69 6e 67 20 6e 6d 61 6b 65 20 62 75 69 6c using nmake buil
0030: 64 20 73 79 73 74 65 6d 0a 09 32 30 32 30 2d 31 d system..2020-1
0040: 30 2d 31 35 20 48 61 72 61 6c 64 2e 4f 65 68 6c 0-15 Harald.Oehl
0050: 6d 61 6e 6e 40 65 6c 6d 69 63 72 6f 6e 2e 64 65 [email protected]
0060: 0a 0a 50 72 6f 70 65 72 74 69 65 73 3a 0a 2d 20 ..Properties:.-
0070: 33 32 20 62 69 74 20 44 4c 4c 0a 2d 20 56 69 73 32 bit DLL.- Vis
0080: 75 61 6c 53 74 75 64 69 6f 20 32 30 31 35 0a 4e ualStudio 2015.N
0090: 6f 74 65 3a 20 56 69 73 75 61 6c 20 43 2b 2b 20 ote: Visual C++
00a0: 36 20 64 6f 65 73 20 6e 6f 74 20 62 75 69 6c 64 6 does not build
00b0: 20 4f 70 65 6e 53 53 4c 20 28 6c 6f 6e 67 20 6c OpenSSL (long l
00c0: 6f 6e 67 20 73 79 6e 74 61 78 20 65 72 72 6f 72 ong syntax error
00d0: 29 0a 2d 20 43 79 67 77 69 6e 33 32 20 28 74 65 ).- Cygwin32 (te
00e0: 6d 70 6f 72 61 72 79 20 68 65 6c 70 65 72 2c 20 mporary helper,
00f0: 70 6c 65 61 73 65 20 68 65 6c 70 20 74 6f 20 72 please help to r
0100: 65 70 6c 61 63 65 20 62 79 20 74 63 6c 73 68 29 eplace by tclsh)
0110: 0a 2d 20 4f 70 65 6e 53 53 4c 20 73 74 61 74 69 .- OpenSSL stati
0120: 63 61 6c 6c 79 20 6c 69 6e 6b 65 64 20 74 6f 20 cally linked to
0130: 54 43 4c 54 4c 53 20 44 4c 4c 2e 0a 4e 6f 74 65 TCLTLS DLL..Note
0140: 3a 20 44 79 6e 61 6d 69 63 20 6c 69 6e 6b 69 6e : Dynamic linkin
0150: 67 20 61 6c 73 6f 20 77 6f 72 6b 73 20 62 75 74 g also works but
0160: 20 72 65 73 75 6c 74 73 20 69 6e 20 61 20 44 4c results in a DL
0170: 4c 20 64 65 70 65 6e 64 65 6e 79 20 6f 6e 20 4f L dependeny on O
0180: 50 45 4e 53 53 4c 20 44 4c 4c 27 73 0a 0a 31 29 PENSSL DLL's..1)
0190: 20 42 75 69 6c 64 20 4f 70 65 6e 53 53 4c 20 73 Build OpenSSL s
01a0: 74 61 74 69 63 20 6c 69 62 72 61 72 69 65 73 3a tatic libraries:
01b0: 0a 0a 4f 70 65 6e 53 53 4c 20 73 6f 75 72 63 65 ..OpenSSL source
01c0: 20 64 69 73 74 72 69 62 74 75 74 69 6f 6e 20 75 distribtution u
01d0: 6e 70 61 63 6b 65 64 20 69 6e 3a 0a 63 3a 5c 74 npacked in:.c:\t
01e0: 65 73 74 5c 74 63 6c 74 6c 73 5c 4f 70 65 6e 73 est\tcltls\Opens
01f0: 73 6c 5f 31 5f 31 5f 31 68 0a 0a 2d 20 49 6e 73 sl_1_1_1h..- Ins
0200: 74 61 6c 6c 20 50 65 72 6c 20 66 72 6f 6d 20 68 tall Perl from h
0210: 74 74 70 3a 2f 2f 73 74 72 61 77 62 65 72 72 79 ttp://strawberry
0220: 70 65 72 6c 2e 63 6f 6d 2f 64 6f 77 6e 6c 6f 61 perl.com/downloa
0230: 64 2f 35 2e 33 32 2e 30 2e 31 2f 73 74 72 61 77 d/5.32.0.1/straw
0240: 62 65 72 72 79 2d 70 65 72 6c 2d 35 2e 33 32 2e berry-perl-5.32.
0250: 30 2e 31 2d 33 32 62 69 74 2e 6d 73 69 0a 20 20 0.1-32bit.msi.
0260: 74 6f 20 43 3a 5c 70 65 72 6c 0a 20 20 28 41 63 to C:\perl. (Ac
0270: 74 69 76 65 50 65 72 6c 20 66 61 69 6c 65 64 20 tivePerl failed
0280: 64 75 65 20 74 6f 20 6d 69 73 73 69 6e 67 20 33 due to missing 3
0290: 32 20 62 69 74 20 63 6f 6e 73 6f 6c 65 20 6d 6f 2 bit console mo
02a0: 64 75 6c 65 29 0a 2d 20 49 6e 73 74 61 6c 6c 20 dule).- Install
02b0: 4e 41 53 4d 20 41 73 73 65 6d 62 6c 65 72 3a 0a NASM Assembler:.
02c0: 0a 68 74 74 70 73 3a 2f 2f 77 77 77 2e 6e 61 73 .https://www.nas
02d0: 6d 2e 75 73 2f 70 75 62 2f 6e 61 73 6d 2f 72 65 m.us/pub/nasm/re
02e0: 6c 65 61 73 65 62 75 69 6c 64 73 2f 32 2e 31 35 leasebuilds/2.15
02f0: 2e 30 35 2f 77 69 6e 33 32 2f 6e 61 73 6d 2d 32 .05/win32/nasm-2
0300: 2e 31 35 2e 30 35 2d 69 6e 73 74 61 6c 6c 65 72 .15.05-installer
0310: 2d 78 38 36 2e 65 78 65 0a 20 20 74 6f 20 43 3a -x86.exe. to C:
0320: 5c 50 72 6f 67 72 61 6d 20 46 69 6c 65 73 20 28 \Program Files (
0330: 78 38 36 29 5c 4e 41 53 4d 0a 20 20 0a 2d 3e 20 x86)\NASM. .->
0340: 56 69 73 75 61 6c 20 53 74 75 64 69 6f 20 78 38 Visual Studio x8
0350: 36 20 6e 61 74 69 76 65 20 70 72 6f 6d 70 74 2e 6 native prompt.
0360: 0a 0a 73 65 74 20 50 61 74 68 3d 25 50 41 54 48 ..set Path=%PATH
0370: 25 3b 43 3a 5c 50 72 6f 67 72 61 6d 20 46 69 6c %;C:\Program Fil
0380: 65 73 20 28 78 38 36 29 5c 4e 41 53 4d 3b 43 3a es (x86)\NASM;C:
0390: 5c 50 65 72 6c 5c 70 65 72 6c 5c 62 69 6e 0a 0a \Perl\perl\bin..
03a0: 70 65 72 6c 20 43 6f 6e 66 69 67 75 72 65 20 56 perl Configure V
03b0: 43 2d 57 49 4e 33 32 20 2d 2d 70 72 65 66 69 78 C-WIN32 --prefix
03c0: 3d 63 3a 5c 74 65 73 74 5c 74 63 6c 74 6c 73 5c =c:\test\tcltls\
03d0: 6f 70 65 6e 73 73 6c 20 2d 2d 6f 70 65 6e 73 73 openssl --openss
03e0: 6c 64 69 72 3d 63 3a 5c 74 65 73 74 5c 74 63 6c ldir=c:\test\tcl
03f0: 74 6c 73 5c 6f 70 65 6e 73 73 6c 64 69 72 20 6e tls\openssldir n
0400: 6f 2d 73 68 61 72 65 64 20 6e 6f 2d 66 69 6c 65 o-shared no-file
0410: 6e 61 6d 65 73 20 74 68 72 65 61 64 73 0a 0a 6e names threads..n
0420: 6d 61 6b 65 0a 6e 6d 61 6b 65 20 74 65 73 74 0a make.nmake test.
0430: 6e 61 6d 6b 65 20 69 6e 73 74 61 6c 6c 0a 0a 32 namke install..2
0440: 29 20 42 75 69 6c 64 20 54 43 4c 54 4c 53 0a 0a ) Build TCLTLS..
0450: 55 6e 7a 69 70 20 64 69 73 74 72 69 62 75 74 69 Unzip distributi
0460: 6f 6e 20 69 6e 3a 0a 63 3a 5c 74 65 73 74 5c 74 on in:.c:\test\t
0470: 63 6c 74 6c 73 5c 74 63 6c 74 6c 73 2d 31 2e 38 cltls\tcltls-1.8
0480: 2e 30 0a 0a 2d 3e 20 73 74 61 72 74 20 63 79 67 .0..-> start cyg
0490: 77 69 6e 20 62 61 73 68 20 70 72 6f 6d 70 74 0a win bash prompt.
04a0: 0a 63 64 20 2f 63 79 67 64 72 69 76 65 2f 63 2f .cd /cygdrive/c/
04b0: 74 65 73 74 2f 74 63 6c 74 6c 73 2f 74 63 6c 74 test/tcltls/tclt
04c0: 6c 73 2d 31 2e 38 2e 30 0a 2e 2f 67 65 6e 5f 64 ls-1.8.0../gen_d
04d0: 68 5f 70 61 72 61 6d 73 20 3e 20 64 68 5f 70 61 h_params > dh_pa
04e0: 72 61 6d 73 2e 68 0a 0a 6f 64 20 2d 41 20 6e 20 rams.h..od -A n
04f0: 2d 76 20 2d 74 20 78 43 20 3c 20 27 74 6c 73 2e -v -t xC < 'tls.
0500: 74 63 6c 27 20 3e 20 74 6c 73 2e 74 63 6c 2e 68 tcl' > tls.tcl.h
0510: 2e 6e 65 77 2e 31 0a 73 65 64 20 27 73 40 5b 5e .new.1.sed 's@[^
0520: 30 2d 39 41 2d 46 61 2d 66 5d 40 40 67 3b 73 40 0-9A-Fa-f]@@g;s@
0530: 2e 2e 40 30 78 26 2c 20 40 67 27 20 3c 20 74 6c ..@0x&, @g' < tl
0540: 73 2e 74 63 6c 2e 68 2e 6e 65 77 2e 31 20 3e 20 s.tcl.h.new.1 >
0550: 74 6c 73 2e 74 63 6c 2e 68 0a 72 6d 20 2d 66 20 tls.tcl.h.rm -f
0560: 74 6c 73 2e 74 63 6c 2e 68 2e 6e 65 77 2e 31 0a tls.tcl.h.new.1.
0570: 0a 2d 3e 20 56 69 73 75 61 6c 20 53 74 75 64 69 .-> Visual Studi
0580: 6f 20 78 38 36 20 6e 61 74 69 76 65 20 70 72 6f o x86 native pro
0590: 6d 70 74 2e 0a 0a 63 64 20 43 3a 5c 74 65 73 74 mpt...cd C:\test
05a0: 5c 74 63 6c 74 6c 73 5c 74 63 6c 74 6c 73 2d 31 \tcltls\tcltls-1
05b0: 2e 38 2e 30 5c 77 69 6e 0a 0a 6e 6d 61 6b 65 20 .8.0\win..nmake
05c0: 2d 66 20 6d 61 6b 65 66 69 6c 65 2e 76 63 20 54 -f makefile.vc T
05d0: 43 4c 44 49 52 3d 63 3a 5c 74 65 73 74 5c 74 63 CLDIR=c:\test\tc
05e0: 6c 38 36 31 30 20 53 53 4c 5f 49 4e 53 54 41 4c l8610 SSL_INSTAL
05f0: 4c 5f 46 4f 4c 44 45 52 3d 43 3a 5c 74 65 73 74 L_FOLDER=C:\test
0600: 5c 74 63 6c 74 6c 73 5c 6f 70 65 6e 73 73 6c 0a \tcltls\openssl.
0610: 0a 6e 6d 61 6b 65 20 2d 66 20 6d 61 6b 65 66 69 .nmake -f makefi
0620: 6c 65 2e 76 63 20 69 6e 73 74 61 6c 6c 20 54 43 le.vc install TC
0630: 4c 44 49 52 3d 63 3a 5c 74 65 73 74 5c 74 63 6c LDIR=c:\test\tcl
0640: 38 36 31 30 20 49 4e 53 54 41 4c 4c 44 49 52 3d 8610 INSTALLDIR=
0650: 63 3a 5c 74 65 73 74 5c 74 63 6c 74 6c 73 20 53 c:\test\tcltls S
0660: 53 4c 5f 49 4e 53 54 41 4c 4c 5f 46 4f 4c 44 45 SL_INSTALL_FOLDE
0670: 52 3d 43 3a 5c 74 65 73 74 5c 74 63 6c 74 6c 73 R=C:\test\tcltls
0680: 5c 6f 70 65 6e 73 73 6c 0a 0a 33 29 20 54 65 73 \openssl..3) Tes
0690: 74 0a 0a 53 74 61 72 74 20 74 63 6c 73 68 20 6f t..Start tclsh o
06a0: 72 20 77 69 73 68 0a 0a 6c 61 70 70 65 6e 64 20 r wish..lappend
06b0: 61 75 74 6f 5f 70 61 74 68 20 7b 43 3a 5c 74 65 auto_path {C:\te
06c0: 73 74 5c 74 63 6c 74 6c 73 5c 74 6c 73 31 2e 38 st\tcltls\tls1.8
06d0: 2e 30 7d 0a 70 61 63 6b 61 67 65 20 72 65 71 75 .0}.package requ
06e0: 69 72 65 20 74 6c 73 0a 0a 41 20 73 6d 61 6c 6c ire tls..A small
06f0: 20 22 31 2e 38 2e 30 22 20 73 68 6f 77 69 6e 67 "1.8.0" showing
0700: 20 75 70 20 69 73 20 68 6f 70 65 66 75 6c 6c 79 up is hopefully
0710: 20 74 68 65 20 65 6e 64 20 6f 66 20 74 68 69 73 the end of this
0720: 20 6c 6f 6e 67 20 77 61 79 2e 2e 2e long way...