Posted to tcl by mookie at Tue Oct 08 19:58:08 GMT 2024view raw

  1. sparkle@navitcl2:/srv/~scrap/tcltls-1.7.22 $ make
  2. od -A n -v -t xC < './tls.tcl' > tls.tcl.h.new.1
  3. sed 's@[^0-9A-Fa-f]@@g;s@..@0x&, @g' < tls.tcl.h.new.1 > tls.tcl.h.new.2
  4. rm -f tls.tcl.h.new.1
  5. mv tls.tcl.h.new.2 tls.tcl.h
  6. sh ./gen_dh_params > dh_params.h.new
  7. *****************************
  8. ** Generating DH Primes. **
  9. ** This will take a while. **
  10. *****************************
  11. mv dh_params.h.new dh_params.h
  12. cc -I/usr/bin//include -I/srv/tcl/include -I/usr/bin//include -I. -I. -DPACKAGE_NAME=\"tcltls\" -DPACKAGE_TARNAME=\"tcltls\" -DPACKAGE_VERSION=\"1.7.22\" -DPACKAGE_STRING=\"tcltls\ 1.7.22\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DMODULE_SCOPE=static -DUSE_TCL_STUBS=1 -D_FORTIFY_SOURCE=2 -DHAVE_TLS_METHOD=1 -DNO_SSL2=1 -DNO_SSL3=1 '-DTCL_CFGVAL_ENCODING="utf-8"' '-DTCL_SHLIB_EXT=".so"' '-DTCL_CFG_OPTIMIZED=1' '-DTCL_WIDE_INT_IS_LONG=1' '-DTCL_UNLOAD_DLLS=1' -I/usr/bin//include -g -O2 -I/srv/tcl/include -Wno-unused-value -Wno-unused-parameter -Wno-deprecated-declarations -Wall -W -Wno-self-assign -fstack-protector-all -fno-strict-overflow -I/usr/bin//include -fPIC -o tls.o -c ./tls.c
  13. ./tls.c:41:26: error: unknown type name 'CONST'
  14. 41 | static void InfoCallback(CONST SSL *ssl, int where, int ret);
  15. | ^
  16. ./tls.c:41:36: error: expected ')'
  17. 41 | static void InfoCallback(CONST SSL *ssl, int where, int ret);
  18. | ^
  19. ./tls.c:41:25: note: to match this '('
  20. 41 | static void InfoCallback(CONST SSL *ssl, int where, int ret);
  21. | ^
  22. ./tls.c:44:49: error: expected ')'
  23. 44 | Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]);
  24. | ^
  25. ./tls.c:43:25: note: to match this '('
  26. 43 | static int CiphersObjCmd(ClientData clientData,
  27. | ^
  28. ./tls.c:47:49: error: expected ')'
  29. 47 | Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]);
  30. | ^
  31. ./tls.c:46:27: note: to match this '('
  32. 46 | static int HandshakeObjCmd(ClientData clientData,
  33. | ^
  34. ./tls.c:50:49: error: expected ')'
  35. 50 | Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]);
  36. | ^
  37. ./tls.c:49:24: note: to match this '('
  38. 49 | static int ImportObjCmd(ClientData clientData,
  39. | ^
  40. ./tls.c:53:49: error: expected ')'
  41. 53 | Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]);
  42. | ^
  43. ./tls.c:52:24: note: to match this '('
  44. 52 | static int StatusObjCmd(ClientData clientData,
  45. | ^
  46. ./tls.c:56:49: error: expected ')'
  47. 56 | Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]);
  48. | ^
  49. ./tls.c:55:25: note: to match this '('
  50. 55 | static int VersionObjCmd(ClientData clientData,
  51. | ^
  52. ./tls.c:59:49: error: expected ')'
  53. 59 | Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]);
  54. | ^
  55. ./tls.c:58:22: note: to match this '('
  56. 58 | static int MiscObjCmd(ClientData clientData,
  57. | ^
  58. ./tls.c:62:49: error: expected ')'
  59. 62 | Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]);
  60. | ^
  61. ./tls.c:61:26: note: to match this '('
  62. 61 | static int UnimportObjCmd(ClientData clientData,
  63. | ^
  64. ./tls.c:174:14: error: unknown type name 'CONST'
  65. 174 | InfoCallback(CONST SSL *ssl, int where, int ret)
  66. | ^
  67. ./tls.c:174:24: error: expected ')'
  68. 174 | InfoCallback(CONST SSL *ssl, int where, int ret)
  69. | ^
  70. ./tls.c:174:13: note: to match this '('
  71. 174 | InfoCallback(CONST SSL *ssl, int where, int ret)
  72. | ^
  73. ./tls.c:176:54: error: expected expression
  74. 176 | State *statePtr = (State*)SSL_get_app_data((SSL *)ssl);
  75. | ^
  76. ./tls.c:196:9: error: use of undeclared identifier 'where'; did you mean 'while'?
  77. 196 | if (where & SSL_CB_HANDSHAKE_START) {
  78. | ^~~~~
  79. | while
  80. ./tls.c:196:9: error: expected expression
  81. ./tls.c:199:16: error: use of undeclared identifier 'where'; did you mean 'while'?
  82. 199 | } else if (where & SSL_CB_HANDSHAKE_DONE) {
  83. | ^~~~~
  84. | while
  85. ./tls.c:199:16: error: expected expression
  86. ./tls.c:203:6: error: use of undeclared identifier 'where'; did you mean 'while'?
  87. 203 | if (where & SSL_CB_ALERT) major = "alert";
  88. | ^~~~~
  89. | while
  90. ./tls.c:203:6: error: expected expression
  91. ./tls.c:204:11: error: use of undeclared identifier 'where'; did you mean 'while'?
  92. 204 | else if (where & SSL_ST_CONNECT) major = "connect";
  93. | ^~~~~
  94. | while
  95. fatal error: too many errors emitted, stopping now [-ferror-limit=]
  96. 20 errors generated.
  97. *** Error code 1
  98.  
  99. Stop.
  100.