Hex Artifact Content

Artifact 8e3c3487178f96b966172d3969fc0e6ed8e225e74b23acb7f9e877543ded210e:


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 75 69 73 75 61 6c 20 43 2b 2b  ote: Vuisual C++
00a0: 20 36 20 64 6f 65 73 20 6e 6f 74 20 62 75 69 6c   6 does not buil
00b0: 64 20 4f 70 65 6e 53 53 4c 20 28 6c 6f 6e 67 20  d OpenSSL (long 
00c0: 6c 6f 6e 67 20 73 79 6e 74 61 78 20 65 72 72 6f  long syntax erro
00d0: 72 29 0a 2d 20 43 79 67 77 69 6e 33 32 20 28 74  r).- Cygwin32 (t
00e0: 65 6d 70 6f 72 61 72 79 20 68 65 6c 70 65 72 2c  emporary helper,
00f0: 20 70 6c 65 61 73 65 20 68 65 6c 70 20 74 6f 20   please help to 
0100: 72 65 70 6c 61 63 65 20 62 79 20 74 63 6c 73 68  replace by tclsh
0110: 29 0a 2d 20 4f 70 65 6e 53 53 4c 20 73 74 61 74  ).- OpenSSL stat
0120: 69 63 61 6c 6c 79 20 6c 69 6e 6b 65 64 20 74 6f  ically linked to
0130: 20 54 43 4c 54 4c 53 20 44 4c 4c 2e 0a 4e 6f 74   TCLTLS DLL..Not
0140: 65 3a 20 44 79 6e 61 6d 69 63 20 6c 69 6e 6b 69  e: Dynamic linki
0150: 6e 67 20 61 6c 73 6f 20 77 6f 72 6b 73 20 62 75  ng also works bu
0160: 74 20 72 65 73 75 6c 74 73 20 69 6e 20 61 20 44  t results in a D
0170: 4c 4c 20 64 65 70 65 6e 64 65 6e 79 20 6f 6e 20  LL dependeny on 
0180: 4f 50 45 4e 53 53 4c 20 44 4c 4c 27 73 0a 0a 31  OPENSSL DLL's..1
0190: 29 20 42 75 69 6c 64 20 4f 70 65 6e 53 53 4c 20  ) Build OpenSSL 
01a0: 73 74 61 74 69 63 20 6c 69 62 72 61 72 69 65 73  static libraries
01b0: 3a 0a 0a 4f 70 65 6e 53 53 4c 20 73 6f 75 72 63  :..OpenSSL sourc
01c0: 65 20 64 69 73 74 72 69 62 74 75 74 69 6f 6e 20  e distribtution 
01d0: 75 6e 70 61 63 6b 65 64 20 69 6e 3a 0a 63 3a 5c  unpacked in:.c:\
01e0: 74 65 73 74 5c 74 63 6c 74 6c 73 5c 4f 70 65 6e  test\tcltls\Open
01f0: 73 73 6c 5f 31 5f 31 5f 31 68 0a 0a 2d 20 49 6e  ssl_1_1_1h..- In
0200: 73 74 61 6c 6c 20 50 65 72 6c 20 66 72 6f 6d 20  stall Perl from 
0210: 68 74 74 70 3a 2f 2f 73 74 72 61 77 62 65 72 72  http://strawberr
0220: 79 70 65 72 6c 2e 63 6f 6d 2f 64 6f 77 6e 6c 6f  yperl.com/downlo
0230: 61 64 2f 35 2e 33 32 2e 30 2e 31 2f 73 74 72 61  ad/5.32.0.1/stra
0240: 77 62 65 72 72 79 2d 70 65 72 6c 2d 35 2e 33 32  wberry-perl-5.32
0250: 2e 30 2e 31 2d 33 32 62 69 74 2e 6d 73 69 0a 20  .0.1-32bit.msi. 
0260: 20 74 6f 20 43 3a 5c 70 65 72 6c 0a 20 20 28 41   to C:\perl.  (A
0270: 63 74 69 76 65 50 65 72 6c 20 66 61 69 6c 65 64  ctivePerl failed
0280: 20 64 75 65 20 74 6f 20 6d 69 73 73 69 6e 67 20   due to missing 
0290: 33 32 20 62 69 74 20 63 6f 6e 73 6f 6c 65 20 6d  32 bit console m
02a0: 6f 64 75 6c 65 29 0a 2d 20 49 6e 73 74 61 6c 6c  odule).- Install
02b0: 20 4e 41 53 4d 20 41 73 73 65 6d 62 6c 65 72 3a   NASM Assembler:
02c0: 0a 0a 68 74 74 70 73 3a 2f 2f 77 77 77 2e 6e 61  ..https://www.na
02d0: 73 6d 2e 75 73 2f 70 75 62 2f 6e 61 73 6d 2f 72  sm.us/pub/nasm/r
02e0: 65 6c 65 61 73 65 62 75 69 6c 64 73 2f 32 2e 31  eleasebuilds/2.1
02f0: 35 2e 30 35 2f 77 69 6e 33 32 2f 6e 61 73 6d 2d  5.05/win32/nasm-
0300: 32 2e 31 35 2e 30 35 2d 69 6e 73 74 61 6c 6c 65  2.15.05-installe
0310: 72 2d 78 38 36 2e 65 78 65 0a 20 20 74 6f 20 43  r-x86.exe.  to C
0320: 3a 5c 50 72 6f 67 72 61 6d 20 46 69 6c 65 73 20  :\Program Files 
0330: 28 78 38 36 29 5c 4e 41 53 4d 0a 20 20 0a 2d 3e  (x86)\NASM.  .->
0340: 20 56 69 73 75 61 6c 20 53 74 75 64 69 6f 20 78   Visual Studio x
0350: 38 36 20 6e 61 74 69 76 65 20 70 72 6f 6d 70 74  86 native prompt
0360: 2e 0a 0a 73 65 74 20 50 61 74 68 3d 25 50 41 54  ...set Path=%PAT
0370: 48 25 3b 43 3a 5c 50 72 6f 67 72 61 6d 20 46 69  H%;C:\Program Fi
0380: 6c 65 73 20 28 78 38 36 29 5c 4e 41 53 4d 3b 43  les (x86)\NASM;C
0390: 3a 5c 50 65 72 6c 5c 70 65 72 6c 5c 62 69 6e 0a  :\Perl\perl\bin.
03a0: 0a 70 65 72 6c 20 43 6f 6e 66 69 67 75 72 65 20  .perl Configure 
03b0: 56 43 2d 57 49 4e 33 32 20 2d 2d 70 72 65 66 69  VC-WIN32 --prefi
03c0: 78 3d 63 3a 5c 74 65 73 74 5c 74 63 6c 74 6c 73  x=c:\test\tcltls
03d0: 5c 6f 70 65 6e 73 73 6c 20 2d 2d 6f 70 65 6e 73  \openssl --opens
03e0: 73 6c 64 69 72 3d 63 3a 5c 74 65 73 74 5c 74 63  sldir=c:\test\tc
03f0: 6c 74 6c 73 5c 6f 70 65 6e 73 73 6c 64 69 72 20  ltls\openssldir 
0400: 6e 6f 2d 73 68 61 72 65 64 20 6e 6f 2d 66 69 6c  no-shared no-fil
0410: 65 6e 61 6d 65 73 20 74 68 72 65 61 64 73 0a 0a  enames threads..
0420: 6e 6d 61 6b 65 0a 6e 6d 61 6b 65 20 74 65 73 74  nmake.nmake test
0430: 0a 6e 61 6d 6b 65 20 69 6e 73 74 61 6c 6c 0a 0a  .namke install..
0440: 32 29 20 42 75 69 6c 64 20 54 43 4c 54 4c 53 0a  2) Build TCLTLS.
0450: 0a 55 6e 7a 69 70 20 64 69 73 74 72 69 62 75 74  .Unzip distribut
0460: 69 6f 6e 20 69 6e 3a 0a 63 3a 5c 74 65 73 74 5c  ion in:.c:\test\
0470: 74 63 6c 74 6c 73 5c 74 63 6c 74 6c 73 2d 31 2e  tcltls\tcltls-1.
0480: 37 2e 32 32 0a 0a 2d 3e 20 73 74 61 72 74 20 63  7.22..-> start c
0490: 79 67 77 69 6e 20 62 61 73 68 20 70 72 6f 6d 70  ygwin bash promp
04a0: 74 0a 0a 63 64 20 2f 63 79 67 64 72 69 76 65 2f  t..cd /cygdrive/
04b0: 63 2f 74 65 73 74 2f 74 63 6c 74 6c 73 2f 74 63  c/test/tcltls/tc
04c0: 6c 74 6c 73 2d 31 2e 37 2e 32 32 0a 2e 2f 67 65  ltls-1.7.22../ge
04d0: 6e 5f 64 68 5f 70 61 72 61 6d 73 20 3e 20 64 68  n_dh_params > dh
04e0: 5f 70 61 72 61 6d 73 2e 68 0a 0a 6f 64 20 2d 41  _params.h..od -A
04f0: 20 6e 20 2d 76 20 2d 74 20 78 43 20 3c 20 27 74   n -v -t xC < 't
0500: 6c 73 2e 74 63 6c 27 20 3e 20 74 6c 73 2e 74 63  ls.tcl' > tls.tc
0510: 6c 2e 68 2e 6e 65 77 2e 31 0a 73 65 64 20 27 73  l.h.new.1.sed 's
0520: 40 5b 5e 30 2d 39 41 2d 46 61 2d 66 5d 40 40 67  @[^0-9A-Fa-f]@@g
0530: 3b 73 40 2e 2e 40 30 78 26 2c 20 40 67 27 20 3c  ;s@..@0x&, @g' <
0540: 20 74 6c 73 2e 74 63 6c 2e 68 2e 6e 65 77 2e 31   tls.tcl.h.new.1
0550: 20 3e 20 74 6c 73 2e 74 63 6c 2e 68 0a 72 6d 20   > tls.tcl.h.rm 
0560: 2d 66 20 74 6c 73 2e 74 63 6c 2e 68 2e 6e 65 77  -f tls.tcl.h.new
0570: 2e 31 0a 0a 2d 3e 20 56 69 73 75 61 6c 20 53 74  .1..-> Visual St
0580: 75 64 69 6f 20 78 38 36 20 6e 61 74 69 76 65 20  udio x86 native 
0590: 70 72 6f 6d 70 74 2e 0a 0a 63 64 20 43 3a 5c 74  prompt...cd C:\t
05a0: 65 73 74 5c 74 63 6c 74 6c 73 5c 74 63 6c 74 6c  est\tcltls\tcltl
05b0: 73 2d 31 2e 37 2e 32 32 5c 77 69 6e 0a 0a 6e 6d  s-1.7.22\win..nm
05c0: 61 6b 65 20 2d 66 20 6d 61 6b 65 66 69 6c 65 2e  ake -f makefile.
05d0: 76 63 20 54 43 4c 44 49 52 3d 63 3a 5c 74 65 73  vc TCLDIR=c:\tes
05e0: 74 5c 74 63 6c 38 36 31 30 20 53 53 4c 5f 49 4e  t\tcl8610 SSL_IN
05f0: 53 54 41 4c 4c 5f 46 4f 4c 44 45 52 3d 43 3a 5c  STALL_FOLDER=C:\
0600: 74 65 73 74 5c 74 63 6c 74 6c 73 5c 6f 70 65 6e  test\tcltls\open
0610: 73 73 6c 0a 0a 6e 6d 61 6b 65 20 2d 66 20 6d 61  ssl..nmake -f ma
0620: 6b 65 66 69 6c 65 2e 76 63 20 69 6e 73 74 61 6c  kefile.vc instal
0630: 6c 20 54 43 4c 44 49 52 3d 63 3a 5c 74 65 73 74  l TCLDIR=c:\test
0640: 5c 74 63 6c 38 36 31 30 20 49 4e 53 54 41 4c 4c  \tcl8610 INSTALL
0650: 44 49 52 3d 63 3a 5c 74 65 73 74 5c 74 63 6c 74  DIR=c:\test\tclt
0660: 6c 73 20 53 53 4c 5f 49 4e 53 54 41 4c 4c 5f 46  ls SSL_INSTALL_F
0670: 4f 4c 44 45 52 3d 43 3a 5c 74 65 73 74 5c 74 63  OLDER=C:\test\tc
0680: 6c 74 6c 73 5c 6f 70 65 6e 73 73 6c 0a 0a 33 29  ltls\openssl..3)
0690: 20 54 65 73 74 0a 0a 53 74 61 72 74 20 74 63 6c   Test..Start tcl
06a0: 73 68 20 6f 72 20 77 69 73 68 0a 0a 6c 61 70 70  sh or wish..lapp
06b0: 65 6e 64 20 61 75 74 6f 5f 70 61 74 68 20 7b 43  end auto_path {C
06c0: 3a 5c 74 65 73 74 5c 74 63 6c 74 6c 73 5c 74 6c  :\test\tcltls\tl
06d0: 73 31 2e 37 2e 32 32 7d 0a 70 61 63 6b 61 67 65  s1.7.22}.package
06e0: 20 72 65 71 75 69 72 65 20 74 6c 73 0a 0a 41 20   require tls..A 
06f0: 73 6d 61 6c 6c 20 22 31 2e 37 2e 32 32 22 20 73  small "1.7.22" s
0700: 68 6f 77 69 6e 67 20 75 70 20 69 73 20 68 6f 70  howing up is hop
0710: 65 66 75 6c 6c 79 20 74 68 65 20 65 6e 64 20 6f  efully the end o
0720: 66 20 74 68 69 73 20 6c 6f 6e 67 20 77 61 79 2e  f this long way.
0730: 2e 2e                                            ..