_dinsdale

Exibit A - luaossl - -pthread not required in Lua exec

Jul 14th, 2018
257
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. russellh@g1 /u/p/l/lua53> lua53
  2. fish: Unknown command 'lua53'
  3. russellh@g1 /u/p/l/lua53> cd ~/freebsd/ports/lang/lua53
  4. russellh@g1 ~> lua53
  5. fish: Unknown command 'lua53'
  6. russellh@g1 ~/f/p/l/lua53> make clean
  7. ===> Cleaning for lua53-5.3.5_1
  8. russellh@g1 ~/f/p/l/lua53> make
  9. ===> License MIT accepted by the user
  10. ===> lua53-5.3.5_1 depends on file: /usr/local/sbin/pkg - found
  11. ===> Fetching all distfiles required by lua53-5.3.5_1 for building
  12. ===> Extracting for lua53-5.3.5_1
  13. => SHA256 Checksum OK for lua-5.3.5.tar.gz.
  14. ===> Patching for lua53-5.3.5_1
  15. ===> Applying FreeBSD patches for lua53-5.3.5_1
  16. ===> Configuring for lua53-5.3.5_1
  17. ===> Building for lua53-5.3.5_1
  18. --- freebsd ---
  19. /usr/bin/make all SYSCFLAGS="-DLUA_USE_LINUX -I/usr/include/edit" SYSLIBS="-Wl,-E -ledit"
  20. --- lapi.o ---
  21. --- lcode.o ---
  22. --- lapi.o ---
  23. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lapi.c -o lapi.o
  24. --- lcode.o ---
  25. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lcode.c -o lcode.o
  26. --- lctype.o ---
  27. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lctype.c -o lctype.o
  28. --- ldebug.o ---
  29. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c ldebug.c -o ldebug.o
  30. --- ldo.o ---
  31. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c ldo.c -o ldo.o
  32. --- ldump.o ---
  33. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c ldump.c -o ldump.o
  34. --- lfunc.o ---
  35. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lfunc.c -o lfunc.o
  36. --- lgc.o ---
  37. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lgc.c -o lgc.o
  38. --- llex.o ---
  39. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c llex.c -o llex.o
  40. --- lmem.o ---
  41. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lmem.c -o lmem.o
  42. --- lobject.o ---
  43. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lobject.c -o lobject.o
  44. --- lopcodes.o ---
  45. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lopcodes.c -o lopcodes.o
  46. --- lparser.o ---
  47. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lparser.c -o lparser.o
  48. --- lstate.o ---
  49. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lstate.c -o lstate.o
  50. --- lstring.o ---
  51. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lstring.c -o lstring.o
  52. --- ltable.o ---
  53. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c ltable.c -o ltable.o
  54. --- ltm.o ---
  55. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c ltm.c -o ltm.o
  56. --- lundump.o ---
  57. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lundump.c -o lundump.o
  58. --- lvm.o ---
  59. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lvm.c -o lvm.o
  60. --- lzio.o ---
  61. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lzio.c -o lzio.o
  62. --- lauxlib.o ---
  63. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lauxlib.c -o lauxlib.o
  64. --- lbaselib.o ---
  65. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lbaselib.c -o lbaselib.o
  66. --- lbitlib.o ---
  67. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lbitlib.c -o lbitlib.o
  68. --- lcorolib.o ---
  69. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lcorolib.c -o lcorolib.o
  70. --- ldblib.o ---
  71. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c ldblib.c -o ldblib.o
  72. --- liolib.o ---
  73. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c liolib.c -o liolib.o
  74. --- lmathlib.o ---
  75. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lmathlib.c -o lmathlib.o
  76. --- loslib.o ---
  77. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c loslib.c -o loslib.o
  78. --- lstrlib.o ---
  79. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lstrlib.c -o lstrlib.o
  80. --- ltablib.o ---
  81. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c ltablib.c -o ltablib.o
  82. --- lutf8lib.o ---
  83. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lutf8lib.c -o lutf8lib.o
  84. --- loadlib.o ---
  85. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c loadlib.c -o loadlib.o
  86. --- linit.o ---
  87. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c linit.c -o linit.o
  88. --- lua.o ---
  89. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c lua.c -o lua.o
  90. --- luac.o ---
  91. cc -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -c luac.c -o luac.o
  92. --- liblua-5.3.so ---
  93. cc -o liblua-5.3.so -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -I/usr/include/edit -O2 -pipe -fPIC -fstack-protector -lm -fstack-protector -lm -fstack-protector -shared -Wl,-soname=liblua-5.3.so lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o loadlib.o linit.o
  94. --- liblua-5.3.a ---
  95. ar -crD liblua-5.3.a lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o loadlib.o linit.o
  96. ranlib liblua-5.3.a
  97. --- lua53 ---
  98. --- luac53 ---
  99. --- lua53 ---
  100. cc -o lua53 -lm -fstack-protector lua.o liblua-5.3.a -lm -Wl,-E -ledit
  101. --- luac53 ---
  102. cc -o luac53 -lm -fstack-protector luac.o liblua-5.3.a -lm -Wl,-E -ledit
  103. ===> Staging for lua53-5.3.5_1
  104. ===> Generating temporary packing list
  105. cd src && mkdir -p /usr/home/russellh/freebsd/ports/lang/lua53/work/stage/usr/local/bin /usr/home/russellh/freebsd/ports/lang/lua53/work/stage/usr/local/include/lua53 /usr/home/russellh/freebsd/ports/lang/lua53/work/stage/usr/local/lib /usr/home/russellh/freebsd/ports/lang/lua53/work/stage/usr/local/man/man1 /usr/home/russellh/freebsd/ports/lang/lua53/work/stage/usr/local/share/lua/5.3 /usr/home/russellh/freebsd/ports/lang/lua53/work/stage/usr/local/lib/lua/5.3
  106. cd src && install -s -m 555 lua53 luac53 /usr/home/russellh/freebsd/ports/lang/lua53/work/stage/usr/local/bin
  107. cd src && install -p -m 0644 lua.h luaconf.h lualib.h lauxlib.h lua.hpp /usr/home/russellh/freebsd/ports/lang/lua53/work/stage/usr/local/include/lua53
  108. cd src && install -p -m 0644 liblua-5.3.so liblua-5.3.a /usr/home/russellh/freebsd/ports/lang/lua53/work/stage/usr/local/lib
  109. cd doc && install -p -m 0644 lua.1 luac.1 /usr/home/russellh/freebsd/ports/lang/lua53/work/stage/usr/local/man/man1
  110. install -m 0644 /usr/home/russellh/freebsd/ports/lang/lua53/work/lua-5.3.pc /usr/home/russellh/freebsd/ports/lang/lua53/work/stage/usr/local/libdata/pkgconfig
  111. ====> Compressing man pages (compress-man)
  112. russellh@g1 ~/f/p/l/lua53> sudo make install
  113. ===> Installing for lua53-5.3.5_1
  114. ===> Checking if lua53 already installed
  115. ===> Registering installation for lua53-5.3.5_1
  116. Installing lua53-5.3.5_1...
  117. russellh@g1 ~/f/p/l/lua53> lua53
  118. Lua 5.3.5 Copyright (C) 1994-2018 Lua.org, PUC-Rio
  119. > o = require('openssl')
  120. > o.version()
  121. 268443839
  122. > o.version(SSLEAY_VERSION)
  123. 268443839
  124. > o.version(SSLEAY_VERSION)
  125. 268443839
  126. >
  127. > ⏎
  128. russellh@g1 ~/f/p/l/lua53> which openssl
  129. /usr/bin/openssl
  130. russellh@g1 ~/f/p/l/lua53> openssl version
  131. OpenSSL 1.0.2k-freebsd 26 Jan 2017
  132. russellh@g1 ~/f/p/l/lua53>
  133. russellh@g1 ~/f/p/l/lua53> lua53
  134. Lua 5.3.5 Copyright (C) 1994-2018 Lua.org, PUC-Rio
  135. > p = require('openssl.pkey')
  136. > p
  137. table: 0x801622980
  138. > p.new()
  139. -----BEGIN PUBLIC KEY-----
  140. MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDKBq+qpBsTd7/1ZjBhBIhWm6wS
  141. O+QI5aeMUDeKjQzgS6MfQ9tYjEFMaPwoADSLEBdbZqM6BxMUG2fIOBXbu7RUOv4s
  142. 4VH0X85QPcAJWj1Ybz40EqW84kRs435rucbQBAAHWFzKaz687IrjuIfF1HTZgNi4
  143. uhkiyL/gPQxiyjqyIQIDAQAB
  144. -----END PUBLIC KEY-----
  145.  
  146. >
RAW Paste Data