Hex Artifact Content

Artifact 1544be4d83fc8fe677a55817b9343177f79b691b12668903f8a51a33fd36c4c8:


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  mann@elmicron.de
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 0a 2d 3e 20 56 69  x86)\NASM..-> Vi
0340: 73 75 61 6c 20 53 74 75 64 69 6f 20 78 38 36 20  sual Studio x86 
0350: 6e 61 74 69 76 65 20 70 72 6f 6d 70 74 2e 0a 0a  native prompt...
0360: 73 65 74 20 50 61 74 68 3d 25 50 41 54 48 25 3b  set Path=%PATH%;
0370: 43 3a 5c 50 72 6f 67 72 61 6d 20 46 69 6c 65 73  C:\Program Files
0380: 20 28 78 38 36 29 5c 4e 41 53 4d 3b 43 3a 5c 50   (x86)\NASM;C:\P
0390: 65 72 6c 5c 70 65 72 6c 5c 62 69 6e 0a 0a 70 65  erl\perl\bin..pe
03a0: 72 6c 20 43 6f 6e 66 69 67 75 72 65 20 56 43 2d  rl Configure VC-
03b0: 57 49 4e 33 32 20 2d 2d 70 72 65 66 69 78 3d 63  WIN32 --prefix=c
03c0: 3a 5c 74 65 73 74 5c 74 63 6c 74 6c 73 5c 6f 70  :\test\tcltls\op
03d0: 65 6e 73 73 6c 20 2d 2d 6f 70 65 6e 73 73 6c 64  enssl --openssld
03e0: 69 72 3d 63 3a 5c 74 65 73 74 5c 74 63 6c 74 6c  ir=c:\test\tcltl
03f0: 73 5c 6f 70 65 6e 73 73 6c 64 69 72 20 6e 6f 2d  s\openssldir no-
0400: 73 68 61 72 65 64 20 6e 6f 2d 66 69 6c 65 6e 61  shared no-filena
0410: 6d 65 73 20 74 68 72 65 61 64 73 0a 0a 6e 6d 61  mes threads..nma
0420: 6b 65 0a 6e 6d 61 6b 65 20 74 65 73 74 0a 6e 61  ke.nmake test.na
0430: 6d 6b 65 20 69 6e 73 74 61 6c 6c 0a 0a 32 29 20  mke install..2) 
0440: 42 75 69 6c 64 20 54 43 4c 54 4c 53 0a 0a 55 6e  Build TCLTLS..Un
0450: 7a 69 70 20 64 69 73 74 72 69 62 75 74 69 6f 6e  zip distribution
0460: 20 69 6e 3a 0a 63 3a 5c 74 65 73 74 5c 74 63 6c   in:.c:\test\tcl
0470: 74 6c 73 5c 74 63 6c 74 6c 73 2d 31 2e 38 2e 30  tls\tcltls-1.8.0
0480: 0a 0a 2d 3e 20 73 74 61 72 74 20 63 79 67 77 69  ..-> start cygwi
0490: 6e 20 62 61 73 68 20 70 72 6f 6d 70 74 0a 0a 63  n bash prompt..c
04a0: 64 20 2f 63 79 67 64 72 69 76 65 2f 63 2f 74 65  d /cygdrive/c/te
04b0: 73 74 2f 74 63 6c 74 6c 73 2f 74 63 6c 74 6c 73  st/tcltls/tcltls
04c0: 2d 31 2e 38 2e 30 0a 2e 2f 67 65 6e 5f 64 68 5f  -1.8.0../gen_dh_
04d0: 70 61 72 61 6d 73 20 3e 20 64 68 5f 70 61 72 61  params > dh_para
04e0: 6d 73 2e 68 0a 0a 6f 64 20 2d 41 20 6e 20 2d 76  ms.h..od -A n -v
04f0: 20 2d 74 20 78 43 20 3c 20 27 74 6c 73 2e 74 63   -t xC < 'tls.tc
0500: 6c 27 20 3e 20 74 6c 73 2e 74 63 6c 2e 68 2e 6e  l' > tls.tcl.h.n
0510: 65 77 2e 31 0a 73 65 64 20 27 73 40 5b 5e 30 2d  ew.1.sed 's@[^0-
0520: 39 41 2d 46 61 2d 66 5d 40 40 67 3b 73 40 2e 2e  9A-Fa-f]@@g;s@..
0530: 40 30 78 26 2c 20 40 67 27 20 3c 20 74 6c 73 2e  @0x&, @g' < tls.
0540: 74 63 6c 2e 68 2e 6e 65 77 2e 31 20 3e 20 74 6c  tcl.h.new.1 > tl
0550: 73 2e 74 63 6c 2e 68 0a 72 6d 20 2d 66 20 74 6c  s.tcl.h.rm -f tl
0560: 73 2e 74 63 6c 2e 68 2e 6e 65 77 2e 31 0a 0a 2d  s.tcl.h.new.1..-
0570: 3e 20 56 69 73 75 61 6c 20 53 74 75 64 69 6f 20  > Visual Studio 
0580: 78 38 36 20 6e 61 74 69 76 65 20 70 72 6f 6d 70  x86 native promp
0590: 74 2e 0a 0a 63 64 20 43 3a 5c 74 65 73 74 5c 74  t...cd C:\test\t
05a0: 63 6c 74 6c 73 5c 74 63 6c 74 6c 73 2d 31 2e 38  cltls\tcltls-1.8
05b0: 2e 30 5c 77 69 6e 0a 0a 6e 6d 61 6b 65 20 2d 66  .0\win..nmake -f
05c0: 20 6d 61 6b 65 66 69 6c 65 2e 76 63 20 54 43 4c   makefile.vc TCL
05d0: 44 49 52 3d 63 3a 5c 74 65 73 74 5c 74 63 6c 38  DIR=c:\test\tcl8
05e0: 36 31 30 20 53 53 4c 5f 49 4e 53 54 41 4c 4c 5f  610 SSL_INSTALL_
05f0: 46 4f 4c 44 45 52 3d 43 3a 5c 74 65 73 74 5c 74  FOLDER=C:\test\t
0600: 63 6c 74 6c 73 5c 6f 70 65 6e 73 73 6c 0a 0a 6e  cltls\openssl..n
0610: 6d 61 6b 65 20 2d 66 20 6d 61 6b 65 66 69 6c 65  make -f makefile
0620: 2e 76 63 20 69 6e 73 74 61 6c 6c 20 54 43 4c 44  .vc install TCLD
0630: 49 52 3d 63 3a 5c 74 65 73 74 5c 74 63 6c 38 36  IR=c:\test\tcl86
0640: 31 30 20 49 4e 53 54 41 4c 4c 44 49 52 3d 63 3a  10 INSTALLDIR=c:
0650: 5c 74 65 73 74 5c 74 63 6c 74 6c 73 20 53 53 4c  \test\tcltls SSL
0660: 5f 49 4e 53 54 41 4c 4c 5f 46 4f 4c 44 45 52 3d  _INSTALL_FOLDER=
0670: 43 3a 5c 74 65 73 74 5c 74 63 6c 74 6c 73 5c 6f  C:\test\tcltls\o
0680: 70 65 6e 73 73 6c 0a 0a 33 29 20 54 65 73 74 0a  penssl..3) Test.
0690: 0a 53 74 61 72 74 20 74 63 6c 73 68 20 6f 72 20  .Start tclsh or 
06a0: 77 69 73 68 0a 0a 6c 61 70 70 65 6e 64 20 61 75  wish..lappend au
06b0: 74 6f 5f 70 61 74 68 20 7b 43 3a 5c 74 65 73 74  to_path {C:\test
06c0: 5c 74 63 6c 74 6c 73 5c 74 6c 73 31 2e 38 2e 30  \tcltls\tls1.8.0
06d0: 7d 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69 72  }.package requir
06e0: 65 20 74 6c 73 0a 0a 41 20 73 6d 61 6c 6c 20 22  e tls..A small "
06f0: 31 2e 38 2e 30 22 20 73 68 6f 77 69 6e 67 20 75  1.8.0" showing u
0700: 70 20 69 73 20 68 6f 70 65 66 75 6c 6c 79 20 74  p is hopefully t
0710: 68 65 20 65 6e 64 20 6f 66 20 74 68 69 73 20 6c  he end of this l
0720: 6f 6e 67 20 77 61 79 2e 2e 2e                    ong way...