zhaozg / lua-openssl

Openssl binding for Lua
https://zhaozg.github.io/lua-openssl/index.html
Other
278 stars 116 forks source link

Cannot compile in MS Visual Studio using Cmake builded project, problem with ssleay32 and libeay32 libraries #197

Closed barmaley997 closed 5 years ago

barmaley997 commented 5 years ago

Hello! I have tried to build project for your project lua-openssl by Cmake, Cmake demand to get point to SSL_EAY and LIB_EAY (Release and Debug libraries for project) libraries which names usually ssleay32.lib and libeay32.lib (cause for compiling in MS Visual Studio usually needed static libraries .lib). I've tried many versions of that libs from many versions of OpenSSL - 1.0.2 , 1.1.1, 1.1.2 - and with all of them compiler gives me many error on the phase of linker code generation that is means that this libs - ssleay32.lib and libeay32.lib, that i've added to project, is not compatible with your sources and includes of openssl, which i've tried also from many versions of openssl. So please tell me which version of of openssl libs, ssleay32.lib and libeay32.lib, is needed to your project for compiling? May be your could be so pleased to give the right link to them that i could just download them?

the errors of compiler MS Visual Studio (i use 2017 edition) are such:

2>Generating Code...
2>asn1.obj : error LNK2019: unresolved external symbol _ASN1_STRING_get0_data referenced in function _ASN1_TIME_get
2>cms.obj : error LNK2001: unresolved external symbol _ASN1_STRING_get0_data
2>xattrs.obj : error LNK2001: unresolved external symbol _ASN1_STRING_get0_data
2>xname.obj : error LNK2001: unresolved external symbol _ASN1_STRING_get0_data
2>bio.obj : error LNK2019: unresolved external symbol _BIO_up_ref referenced in function _luaopen_bio
2>misc.obj : error LNK2001: unresolved external symbol _BIO_up_ref
2>ots.obj : error LNK2001: unresolved external symbol _BIO_up_ref
2>ssl.obj : error LNK2001: unresolved external symbol _BIO_up_ref
2>callback.obj : error LNK2019: unresolved external symbol _X509_up_ref referenced in function _verify_cb
2>ssl.obj : error LNK2001: unresolved external symbol _X509_up_ref
2>x509.obj : error LNK2001: unresolved external symbol _X509_up_ref
2>cipher.obj : error LNK2019: unresolved external symbol _EVP_CIPHER_name referenced in function _luaopen_cipher
2>cipher.obj : error LNK2019: unresolved external symbol _EVP_CIPHER_mode referenced in function _luaopen_cipher
2>cipher.obj : error LNK2019: unresolved external symbol _EVP_CIPHER_CTX_reset referenced in function _luaopen_cipher
2>pkey.obj : error LNK2001: unresolved external symbol _EVP_CIPHER_CTX_reset
2>xalgor.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_value
2>x509.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_value
2>xattrs.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_value
2>xexts.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_value
2>xname.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_value
2>cms.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_value
2>crl.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_value
2>ots.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_value
2>pkcs7.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_value
2>cms.obj : error LNK2019: unresolved external symbol _OPENSSL_sk_free referenced in function _sk_X509_free
2>pkcs7.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_free
2>x509.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_free
2>xexts.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_pop_free
2>ots.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_pop_free
2>pkcs12.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_pop_free
2>pkcs7.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_pop_free
2>x509.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_pop_free
2>cms.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_pop_free
2>crl.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_pop_free
2>csr.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_pop_free
2>ocsp.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_pop_free
2>xattrs.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_num
2>xexts.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_num
2>xname.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_num
2>xalgor.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_num
2>crl.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_num
2>ots.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_num
2>pkcs7.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_num
2>x509.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_num
2>xname.obj : error LNK2019: unresolved external symbol _OPENSSL_sk_new_null referenced in function _openssl_new_xname
2>xalgor.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_new_null
2>crl.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_new_null
2>x509.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_new_null
2>xattrs.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_new_null
2>xexts.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_new_null
2>xname.obj : error LNK2019: unresolved external symbol _OPENSSL_sk_push referenced in function _openssl_new_xname
2>xalgor.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_push
2>crl.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_push
2>x509.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_push
2>xattrs.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_push
2>xexts.obj : error LNK2001: unresolved external symbol _OPENSSL_sk_push
2>crl.obj : error LNK2019: unresolved external symbol _X509_CRL_set1_lastUpdate referenced in function _openssl_revoked2table
2>crl.obj : error LNK2019: unresolved external symbol _X509_CRL_set1_nextUpdate referenced in function _openssl_revoked2table
2>crl.obj : error LNK2019: unresolved external symbol _X509_CRL_up_ref referenced in function _openssl_sk_x509_crl_fromtable
2>crl.obj : error LNK2019: unresolved external symbol _X509_CRL_get_version referenced in function _openssl_revoked2table
2>crl.obj : error LNK2019: unresolved external symbol _X509_CRL_get0_lastUpdate referenced in function _openssl_revoked2table
2>crl.obj : error LNK2019: unresolved external symbol _X509_CRL_get0_nextUpdate referenced in function _openssl_revoked2table
2>crl.obj : error LNK2019: unresolved external symbol _X509_CRL_get_issuer referenced in function _openssl_revoked2table
2>crl.obj : error LNK2019: unresolved external symbol _X509_CRL_get0_extensions referenced in function _openssl_revoked2table
2>crl.obj : error LNK2019: unresolved external symbol _X509_CRL_get_REVOKED referenced in function _openssl_revoked2table
2>crl.obj : error LNK2019: unresolved external symbol _X509_CRL_get0_signature referenced in function _openssl_revoked2table
2>crl.obj : error LNK2019: unresolved external symbol _X509_REVOKED_get0_serialNumber referenced in function _openssl_revoked2table
2>crl.obj : error LNK2019: unresolved external symbol _X509_REVOKED_get0_revocationDate referenced in function _openssl_revoked2table
2>crl.obj : error LNK2019: unresolved external symbol _X509_REVOKED_get0_extensions referenced in function _openssl_revoked2table
2>crl.obj : error LNK2019: unresolved external symbol _strcasecmp referenced in function _openssl_s2i_revoke_reason
2>pkey.obj : error LNK2001: unresolved external symbol _strcasecmp
2>ssl.obj : error LNK2001: unresolved external symbol _strcasecmp
2>csr.obj : error LNK2019: unresolved external symbol _X509_REQ_get_version referenced in function _luaopen_x509_req
2>csr.obj : error LNK2019: unresolved external symbol _X509_REQ_get_subject_name referenced in function _luaopen_x509_req
2>x509.obj : error LNK2001: unresolved external symbol _X509_REQ_get_subject_name
2>csr.obj : error LNK2019: unresolved external symbol _X509_REQ_get0_signature referenced in function _luaopen_x509_req
2>csr.obj : error LNK2019: unresolved external symbol _i2d_re_X509_REQ_tbs referenced in function _luaopen_x509_req
2>csr.obj : error LNK2019: unresolved external symbol _X509_REQ_get_X509_PUBKEY referenced in function _luaopen_x509_req
2>dh.obj : error LNK2019: unresolved external symbol _DH_bits referenced in function _luaopen_dh
2>dh.obj : error LNK2019: unresolved external symbol _DH_get0_pqg referenced in function _luaopen_dh
2>dh.obj : error LNK2019: unresolved external symbol _DH_get0_key referenced in function _luaopen_dh
2>pkey.obj : error LNK2001: unresolved external symbol _DH_get0_key
2>digest.obj : error LNK2019: unresolved external symbol _EVP_MD_meth_get_app_datasize referenced in function _luaopen_digest
2>pkcs7.obj : error LNK2001: unresolved external symbol _EVP_MD_meth_get_app_datasize
2>digest.obj : error LNK2019: unresolved external symbol _EVP_MD_name referenced in function _luaopen_digest
2>digest.obj : error LNK2019: unresolved external symbol _EVP_MD_CTX_md_data referenced in function _luaopen_digest
2>pkcs7.obj : error LNK2001: unresolved external symbol _EVP_MD_CTX_md_data
2>digest.obj : error LNK2019: unresolved external symbol _EVP_MD_CTX_new referenced in function _luaopen_digest
2>pkcs7.obj : error LNK2001: unresolved external symbol _EVP_MD_CTX_new
2>pkey.obj : error LNK2001: unresolved external symbol _EVP_MD_CTX_new
2>digest.obj : error LNK2019: unresolved external symbol _EVP_MD_CTX_reset referenced in function _luaopen_digest
2>pkcs7.obj : error LNK2001: unresolved external symbol _EVP_MD_CTX_reset
2>digest.obj : error LNK2019: unresolved external symbol _EVP_MD_CTX_free referenced in function _luaopen_digest
2>pkcs7.obj : error LNK2001: unresolved external symbol _EVP_MD_CTX_free
2>pkey.obj : error LNK2001: unresolved external symbol _EVP_MD_CTX_free
2>digest.obj : error LNK2019: unresolved external symbol _EVP_DigestSignUpdate referenced in function _luaopen_digest
2>pkcs7.obj : error LNK2001: unresolved external symbol _EVP_DigestSignUpdate
2>pkey.obj : error LNK2001: unresolved external symbol _EVP_DigestSignUpdate
2>digest.obj : error LNK2019: unresolved external symbol _EVP_DigestVerifyUpdate referenced in function _luaopen_digest
2>pkey.obj : error LNK2001: unresolved external symbol _EVP_DigestVerifyUpdate
2>dsa.obj : error LNK2019: unresolved external symbol _DSA_bits referenced in function _luaopen_dsa
2>dsa.obj : error LNK2019: unresolved external symbol _DSA_get0_pqg referenced in function _luaopen_dsa
2>dsa.obj : error LNK2019: unresolved external symbol _DSA_get0_key referenced in function _luaopen_dsa
2>pkey.obj : error LNK2001: unresolved external symbol _DSA_get0_key
2>ec.obj : error LNK2019: unresolved external symbol _EC_KEY_set_method referenced in function _KDF1_SHA1
2>ec.obj : error LNK2019: unresolved external symbol _ECDSA_SIG_get0 referenced in function _openssl_point_conversion_form
2>ec.obj : error LNK2019: unresolved external symbol _ECDSA_SIG_set0 referenced in function _openssl_point_conversion_form
2>ec.obj : error LNK2019: unresolved external symbol _ENGINE_get_EC referenced in function _KDF1_SHA1
2>engine.obj : error LNK2019: unresolved external symbol _ENGINE_register_EC referenced in function _openssl_engine
2>engine.obj : error LNK2019: unresolved external symbol _ENGINE_unregister_EC referenced in function _openssl_engine
2>engine.obj : error LNK2019: unresolved external symbol _ENGINE_set_default_EC referenced in function _openssl_engine
2>hmac.obj : error LNK2019: unresolved external symbol _HMAC_CTX_new referenced in function _luaopen_hmac
2>hmac.obj : error LNK2019: unresolved external symbol _HMAC_CTX_free referenced in function _luaopen_hmac
2>lbn.obj : error LNK2019: unresolved external symbol _BN_is_zero referenced in function _Bget
2>pkey.obj : error LNK2001: unresolved external symbol _BN_is_zero
2>rsa.obj : error LNK2001: unresolved external symbol _BN_is_zero
2>lbn.obj : error LNK2019: unresolved external symbol _BN_is_one referenced in function _Bget
2>lbn.obj : error LNK2019: unresolved external symbol _BN_is_odd referenced in function _Bget
2>lbn.obj : error LNK2019: unresolved external symbol _BN_is_negative referenced in function _Bget
2>lhash.obj : error LNK2019: unresolved external symbol _OPENSSL_LH_doall_arg referenced in function _lh_CONF_VALUE_doall_lua_State
2>openssl.obj : error LNK2019: unresolved external symbol _OPENSSL_init_crypto referenced in function _luaopen_openssl
2>ots.obj : error LNK2019: unresolved external symbol _X509_STORE_up_ref referenced in function _openssl_time_cb
2>ssl.obj : error LNK2001: unresolved external symbol _X509_STORE_up_ref
2>ots.obj : error LNK2019: unresolved external symbol _TS_STATUS_INFO_get0_status referenced in function _openssl_push_ts_tst_info
2>ots.obj : error LNK2019: unresolved external symbol _TS_STATUS_INFO_get0_text referenced in function _openssl_push_ts_tst_info
2>ots.obj : error LNK2019: unresolved external symbol _TS_STATUS_INFO_get0_failure_info referenced in function _openssl_push_ts_tst_info
2>ots.obj : error LNK2019: unresolved external symbol _TS_VERIFY_CTX_set_flags referenced in function _openssl_time_cb
2>ots.obj : error LNK2019: unresolved external symbol _TS_VERIFY_CTX_add_flags referenced in function _openssl_time_cb
2>ots.obj : error LNK2019: unresolved external symbol _TS_VERIFY_CTX_set_data referenced in function _openssl_time_cb
2>ots.obj : error LNK2019: unresolved external symbol _TS_VERIFY_CTX_set_imprint referenced in function _openssl_time_cb
2>ots.obj : error LNK2019: unresolved external symbol _TS_VERIFY_CTX_set_store referenced in function _openssl_time_cb
2>pkcs7.obj : error LNK2019: unresolved external symbol _EVP_PKEY_up_ref referenced in function _openssl_push_pkcs7_signer_info
2>pkcs7.obj : error LNK2019: unresolved external symbol _ERR_new referenced in function _PKCS7_find_digest
2>pkcs7.obj : error LNK2019: unresolved external symbol _ERR_set_debug referenced in function _PKCS7_find_digest
2>pkcs7.obj : error LNK2019: unresolved external symbol _ERR_set_error referenced in function _PKCS7_find_digest
2>pkey.obj : error LNK2019: unresolved external symbol _EVP_MD_CTX_set_pkey_ctx referenced in function _EC_KEY_generate_key_part
2>pkey.obj : error LNK2019: unresolved external symbol _EVP_PKEY_set_alias_type referenced in function _EC_KEY_generate_key_part
2>pkey.obj : error LNK2019: unresolved external symbol _EVP_PKEY_get0_RSA referenced in function _openssl_pkey_is_private
2>pkey.obj : error LNK2019: unresolved external symbol _EVP_PKEY_get0_DSA referenced in function _openssl_pkey_is_private
2>pkey.obj : error LNK2019: unresolved external symbol _EVP_PKEY_get0_DH referenced in function _openssl_pkey_is_private
2>pkey.obj : error LNK2019: unresolved external symbol _EVP_PKEY_get0_EC_KEY referenced in function _openssl_pkey_is_private
2>pkey.obj : error LNK2019: unresolved external symbol _RSA_set0_key referenced in function _EC_KEY_generate_key_part
2>pkey.obj : error LNK2019: unresolved external symbol _RSA_set0_factors referenced in function _EC_KEY_generate_key_part
2>pkey.obj : error LNK2019: unresolved external symbol _RSA_set0_crt_params referenced in function _EC_KEY_generate_key_part
2>pkey.obj : error LNK2019: unresolved external symbol _RSA_get0_key referenced in function _openssl_pkey_is_private
2>rsa.obj : error LNK2001: unresolved external symbol _RSA_get0_key
2>pkey.obj : error LNK2019: unresolved external symbol _RSA_pkey_ctx_ctrl referenced in function _EC_KEY_generate_key_part
2>pkey.obj : error LNK2019: unresolved external symbol _DH_set0_pqg referenced in function _EC_KEY_generate_key_part
2>pkey.obj : error LNK2019: unresolved external symbol _DH_set0_key referenced in function _EC_KEY_generate_key_part
2>pkey.obj : error LNK2019: unresolved external symbol _DSA_set0_pqg referenced in function _EC_KEY_generate_key_part
2>pkey.obj : error LNK2019: unresolved external symbol _DSA_set0_key referenced in function _EC_KEY_generate_key_part
2>rsa.obj : error LNK2019: unresolved external symbol _RSA_bits referenced in function _is_private
2>rsa.obj : error LNK2019: unresolved external symbol _RSA_get0_factors referenced in function _is_private
2>rsa.obj : error LNK2019: unresolved external symbol _RSA_get0_crt_params referenced in function _is_private
2>ssl.obj : error LNK2019: unresolved external symbol _SSL_CTX_get_options referenced in function _luaopen_ssl
2>ssl.obj : error LNK2019: unresolved external symbol _SSL_CTX_clear_options referenced in function _luaopen_ssl
2>ssl.obj : error LNK2019: unresolved external symbol _SSL_CTX_set_options referenced in function _luaopen_ssl
2>ssl.obj : error LNK2019: unresolved external symbol _SSL_SESSION_has_ticket referenced in function _openssl_del_session
2>ssl.obj : error LNK2019: unresolved external symbol _SSL_SESSION_set1_id referenced in function _openssl_del_session
2>ssl.obj : error LNK2019: unresolved external symbol _SSL_SESSION_is_resumable referenced in function _openssl_del_session
2>ssl.obj : error LNK2019: unresolved external symbol _TLS_method referenced in function _luaopen_ssl
2>ssl.obj : error LNK2019: unresolved external symbol _TLS_server_method referenced in function _luaopen_ssl
2>ssl.obj : error LNK2019: unresolved external symbol _TLS_client_method referenced in function _luaopen_ssl
2>ssl.obj : error LNK2019: unresolved external symbol _SSL_get_state referenced in function _openssl_ssl_pushresult
2>ssl.obj : error LNK2019: unresolved external symbol _SSL_CTX_set_num_tickets referenced in function _openssl_del_session
2>ssl.obj : error LNK2019: unresolved external symbol _SSL_CTX_get_num_tickets referenced in function _openssl_del_session
2>ssl.obj : error LNK2019: unresolved external symbol _SSL_session_reused referenced in function _openssl_ssl_pushresult
2>x509.obj : error LNK2019: unresolved external symbol _OPENSSL_sk_delete referenced in function _sk_X509_EXTENSION_delete
2>x509.obj : error LNK2019: unresolved external symbol _X509_get_version referenced in function _check_cert
2>x509.obj : error LNK2019: unresolved external symbol _X509_get0_serialNumber referenced in function _check_cert
2>x509.obj : error LNK2019: unresolved external symbol _X509_get0_notBefore referenced in function _check_cert
2>x509.obj : error LNK2019: unresolved external symbol _X509_set1_notBefore referenced in function _check_cert
2>x509.obj : error LNK2019: unresolved external symbol _X509_get0_notAfter referenced in function _check_cert
2>x509.obj : error LNK2019: unresolved external symbol _X509_set1_notAfter referenced in function _check_cert
2>x509.obj : error LNK2019: unresolved external symbol _X509_get0_extensions referenced in function _check_cert
2>C:\lua\lua-openssl-master\build\Debug\openssl.dll : fatal error LNK1120: 112 unresolved externals
2>Done building project "lua-openssl.vcxproj" -- FAILED.
3>------ Rebuild All started: Project: ALL_BUILD, Configuration: Debug Win32 ------
3>Building Custom Rule C:/lua/lua-openssl-master/CMakeLists.txt
4>------ Skipped Rebuild All: Project: INSTALL, Configuration: Debug Win32 ------
4>Project not selected to build for this solution configuration 
========== Rebuild All: 2 succeeded, 1 failed, 1 skipped ==========
zhaozg commented 5 years ago

OK, I think your openssl files and libs are not match, please check it, and please paste cmake command line here.

barmaley997 commented 5 years ago

and please paste cmake command line here.

Where i can fin cmake command line? Thats Cmake cahe of builded project:

# This is the CMakeCache file.
# For build in directory: c:/lua/lua-openssl-master/build
# It was generated by CMake: C:/CMake/bin/cmake.exe
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Shared or Static libluv
BUILD_SHARED_LUA_OPENSSL:BOOL=ON

//Semicolon separated list of supported configuration types, only
// supports Debug, Release, MinSizeRel, and RelWithDebInfo, anything
// else will be ignored.
CMAKE_CONFIGURATION_TYPES:STRING=Debug;Release;MinSizeRel;RelWithDebInfo

//Flags used by the C compiler during all build types.
CMAKE_C_FLAGS:STRING=/D_WIN32 /D_WINDOWS /W3 /D_CRT_SECURE_NO_WARNINGS  /D_CRT_NONSTDC_NO_WARNINGS

//Flags used by the C compiler during DEBUG builds.
CMAKE_C_FLAGS_DEBUG:STRING=/MDd /Zi /Ob0 /Od /RTC1

//Flags used by the C compiler during MINSIZEREL builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=/MD /O1 /Ob1 /DNDEBUG

//Flags used by the C compiler during RELEASE builds.
CMAKE_C_FLAGS_RELEASE:STRING=/MD /O2 /Ob2 /DNDEBUG

//Flags used by the C compiler during RELWITHDEBINFO builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2 /Ob1 /DNDEBUG

//Libraries linked by default with all C applications.
CMAKE_C_STANDARD_LIBRARIES:STRING=kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib

//Flags used by the linker during all build types.
CMAKE_EXE_LINKER_FLAGS:STRING=/machine:X86

//Flags used by the linker during DEBUG builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL

//Flags used by the linker during MINSIZEREL builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO

//Flags used by the linker during RELEASE builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO

//Flags used by the linker during RELWITHDEBINFO builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL

//User executables (bin)
CMAKE_INSTALL_BINDIR:PATH=bin

//Read-only architecture-independent data (DATAROOTDIR)
CMAKE_INSTALL_DATADIR:PATH=

//Read-only architecture-independent data root (share)
CMAKE_INSTALL_DATAROOTDIR:PATH=share

//Documentation root (DATAROOTDIR/doc/PROJECT_NAME)
CMAKE_INSTALL_DOCDIR:PATH=

//C header files (include)
CMAKE_INSTALL_INCLUDEDIR:PATH=include

//Info documentation (DATAROOTDIR/info)
CMAKE_INSTALL_INFODIR:PATH=

//Object code libraries (lib)
CMAKE_INSTALL_LIBDIR:PATH=lib

//Program executables (libexec)
CMAKE_INSTALL_LIBEXECDIR:PATH=libexec

//Locale-dependent data (DATAROOTDIR/locale)
CMAKE_INSTALL_LOCALEDIR:PATH=

//Modifiable single-machine data (var)
CMAKE_INSTALL_LOCALSTATEDIR:PATH=var

//Man documentation (DATAROOTDIR/man)
CMAKE_INSTALL_MANDIR:PATH=

//C header files for non-gcc (/usr/include)
CMAKE_INSTALL_OLDINCLUDEDIR:PATH=/usr/include

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=c:\progs\lua-openssl

//Run-time variable data (LOCALSTATEDIR/run)
CMAKE_INSTALL_RUNSTATEDIR:PATH=

//System admin executables (sbin)
CMAKE_INSTALL_SBINDIR:PATH=sbin

//Modifiable architecture-independent data (com)
CMAKE_INSTALL_SHAREDSTATEDIR:PATH=com

//Read-only single-machine data (etc)
CMAKE_INSTALL_SYSCONFDIR:PATH=etc

//Path to a program.
CMAKE_LINKER:FILEPATH=C:/MSVisualStudio/2017/Enterprise/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x86/link.exe

//Flags used by the linker during the creation of modules during
// all build types.
CMAKE_MODULE_LINKER_FLAGS:STRING=/machine:X86

//Flags used by the linker during the creation of modules during
// DEBUG builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL

//Flags used by the linker during the creation of modules during
// MINSIZEREL builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO

//Flags used by the linker during the creation of modules during
// RELEASE builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO

//Flags used by the linker during the creation of modules during
// RELWITHDEBINFO builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL

//Path to a program.
CMAKE_MT:FILEPATH=CMAKE_MT-NOTFOUND

//Value Computed by CMake
CMAKE_PROJECT_DESCRIPTION:STATIC=

//Value Computed by CMake
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=

//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=lua-openssl

//RC compiler
CMAKE_RC_COMPILER:FILEPATH=rc

//Flags for Windows Resource Compiler during all build types.
CMAKE_RC_FLAGS:STRING=-DWIN32

//Flags for Windows Resource Compiler during DEBUG builds.
CMAKE_RC_FLAGS_DEBUG:STRING=-D_DEBUG

//Flags for Windows Resource Compiler during MINSIZEREL builds.
CMAKE_RC_FLAGS_MINSIZEREL:STRING=

//Flags for Windows Resource Compiler during RELEASE builds.
CMAKE_RC_FLAGS_RELEASE:STRING=

//Flags for Windows Resource Compiler during RELWITHDEBINFO builds.
CMAKE_RC_FLAGS_RELWITHDEBINFO:STRING=

//Flags used by the linker during the creation of shared libraries
// during all build types.
CMAKE_SHARED_LINKER_FLAGS:STRING=/machine:X86

//Flags used by the linker during the creation of shared libraries
// during DEBUG builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL

//Flags used by the linker during the creation of shared libraries
// during MINSIZEREL builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO

//Flags used by the linker during the creation of shared libraries
// during RELEASE builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO

//Flags used by the linker during the creation of shared libraries
// during RELWITHDEBINFO builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL

//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=OFF

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=OFF

//Flags used by the linker during the creation of static libraries
// during all build types.
CMAKE_STATIC_LINKER_FLAGS:STRING=/machine:X86

//Flags used by the linker during the creation of static libraries
// during DEBUG builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during the creation of static libraries
// during MINSIZEREL builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of static libraries
// during RELEASE builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during the creation of static libraries
// during RELWITHDEBINFO builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=OFF

//Path to a library.
LIB_EAY_DEBUG:FILEPATH=C:/Progs/openssl-1.0.2t-x64_86-win32_LinkLibs/libeay32.lib

//Path to a library.
LIB_EAY_LIBRARY_DEBUG:FILEPATH=C:/Progs/openssl-1.0.2t-x64_86-win32_LinkLibs/libeay32.lib

//Path to a library.
LIB_EAY_LIBRARY_RELEASE:FILEPATH=C:/Progs/openssl-1.0.2t-x64_86-win32_LinkLibs/libeay32.lib

//Path to a library.
LIB_EAY_RELEASE:FILEPATH=C:/Progs/openssl-1.0.2t-x64_86-win32_LinkLibs/libeay32.lib

//Path to a file.
LUAJIT_INCLUDE_DIRS:PATH=C:/lua/lua-5.3.5_Win32_dll15_lib/include

//Lua Libraries
LUAJIT_LIBRARIES:STRING=C:/lua/lua-5.3.5_Win32_dll15_lib/lua53.lib

//Path to a library.
LUAJIT_LIBRARY:FILEPATH=C:/lua/lua-5.3.5_Win32_dll15_lib/lua53.lib

//Path to a file.
OPENSSL_INCLUDE_DIR:PATH=C:/Progs/openssl_1_0_2

//Path to a library.
SSL_EAY_DEBUG:FILEPATH=C:/Progs/openssl-1.0.2t-x64_86-win32_LinkLibs/ssleay32.lib

//Path to a library.
SSL_EAY_LIBRARY_DEBUG:FILEPATH=C:/Progs/openssl-1.0.2t-x64_86-win32_LinkLibs/ssleay32.lib

//Path to a library.
SSL_EAY_LIBRARY_RELEASE:FILEPATH=C:/Progs/openssl-1.0.2t-x64_86-win32_LinkLibs/ssleay32.lib

//Path to a library.
SSL_EAY_RELEASE:FILEPATH=C:/Progs/openssl-1.0.2t-x64_86-win32_LinkLibs/ssleay32.lib

//Value Computed by CMake
lua-openssl_BINARY_DIR:STATIC=C:/lua/lua-openssl-master/build

//Dependencies for the target
lua-openssl_LIB_DEPENDS:STATIC=general;C:/Progs/openssl-1.0.2t-x64_86-win32_LinkLibs/ssleay32.lib;general;C:/Progs/openssl-1.0.2t-x64_86-win32_LinkLibs/libeay32.lib;general;C:/lua/lua-5.3.5_Win32_dll15_lib/lua53.lib;

//Value Computed by CMake
lua-openssl_SOURCE_DIR:STATIC=C:/lua/lua-openssl-master

########################
# INTERNAL cache entries
########################

//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=c:/lua/lua-openssl-master/build
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=16
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=0
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=C:/CMake/bin/cmake.exe
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=C:/CMake/bin/cpack.exe
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=C:/CMake/bin/ctest.exe
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_STANDARD_LIBRARIES
CMAKE_C_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Name of external makefile project generator.
CMAKE_EXTRA_GENERATOR:INTERNAL=
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Visual Studio 15 2017
//Generator instance identifier.
CMAKE_GENERATOR_INSTANCE:INTERNAL=C:/MSVisualStudio/2017/Enterprise
//Name of generator platform.
CMAKE_GENERATOR_PLATFORM:INTERNAL=
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Have include pthread.h
CMAKE_HAVE_PTHREAD_H:INTERNAL=
//Source directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=C:/lua/lua-openssl-master
//ADVANCED property for variable: CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_BINDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_DATADIR
CMAKE_INSTALL_DATADIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_DATAROOTDIR
CMAKE_INSTALL_DATAROOTDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_DOCDIR
CMAKE_INSTALL_DOCDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_INCLUDEDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_INFODIR
CMAKE_INSTALL_INFODIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_LIBDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_LIBEXECDIR
CMAKE_INSTALL_LIBEXECDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_LOCALEDIR
CMAKE_INSTALL_LOCALEDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_LOCALSTATEDIR
CMAKE_INSTALL_LOCALSTATEDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_MANDIR
CMAKE_INSTALL_MANDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_OLDINCLUDEDIR
CMAKE_INSTALL_OLDINCLUDEDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_RUNSTATEDIR
CMAKE_INSTALL_RUNSTATEDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_SBINDIR
CMAKE_INSTALL_SBINDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_SHAREDSTATEDIR
CMAKE_INSTALL_SHAREDSTATEDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_SYSCONFDIR
CMAKE_INSTALL_SYSCONFDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MT
CMAKE_MT-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
//Platform information initialized
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_COMPILER
CMAKE_RC_COMPILER-ADVANCED:INTERNAL=1
CMAKE_RC_COMPILER_WORKS:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS
CMAKE_RC_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_DEBUG
CMAKE_RC_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_MINSIZEREL
CMAKE_RC_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_RELEASE
CMAKE_RC_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_RELWITHDEBINFO
CMAKE_RC_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=C:/CMake/share/cmake-3.16
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//Details about finding LuaJIT
FIND_PACKAGE_MESSAGE_DETAILS_LuaJIT:INTERNAL=[C:/lua/lua-5.3.5_Win32_dll15_lib/lua53.lib][C:/lua/lua-5.3.5_Win32_dll15_lib/include][v(2.0)]
//Details about finding OpenSSL
FIND_PACKAGE_MESSAGE_DETAILS_OpenSSL:INTERNAL=[C:/Progs/openssl-1.0.2t-x64_86-win32_LinkLibs/libeay32.lib][C:/Progs/openssl_1_0_2][c ][v()]
//Details about finding Threads
FIND_PACKAGE_MESSAGE_DETAILS_Threads:INTERNAL=[TRUE][v()]
//ADVANCED property for variable: LIB_EAY_LIBRARY_DEBUG
LIB_EAY_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: LIB_EAY_LIBRARY_RELEASE
LIB_EAY_LIBRARY_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: LUAJIT_INCLUDE_DIRS
LUAJIT_INCLUDE_DIRS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: LUAJIT_LIBRARIES
LUAJIT_LIBRARIES-ADVANCED:INTERNAL=1
//ADVANCED property for variable: LUAJIT_LIBRARY
LUAJIT_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OPENSSL_INCLUDE_DIR
OPENSSL_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SSL_EAY_LIBRARY_DEBUG
SSL_EAY_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SSL_EAY_LIBRARY_RELEASE
SSL_EAY_LIBRARY_RELEASE-ADVANCED:INTERNAL=1
//CMAKE_INSTALL_PREFIX during last run
_GNUInstallDirs_LAST_CMAKE_INSTALL_PREFIX:INTERNAL=c:\progs\lua-openssl

And one else thing - i want to build lua-openssl to use in Lua 5.3 - so i used Lua 5.3 sources, not LuaJit. But with which version of OpenSSL you compiled your own project by yourself? Tell this version and i find this libraries, or better if you add this libraries to your project )))) And tell us its version

zhaozg commented 5 years ago

It's regret that I have not test cmake build on any windows platform, I need find time to do more work for that. cmake command line that mean cmake to make a generator, just like cmake -Bbuild -H. -DOPENSSL_ROOT_DIR=... -DBUILD_SHARED_LUA_OPENSSL=OFF && cd build && make

zhaozg commented 5 years ago

I install luajit openssl at E:/dist, lua-openssl source in e:\work\luaclibs\lua-openssl

e:\work\luaclibs\lua-openssl\build>cmake  -DLUAJIT_INCLUDE_DIRS=E:\dist\include -DLUAJIT_LIBRARY=E:\dist\lib\lua51.lib -DOPENSSL_ROOT_DIR=E:\dist .. -G "NMake Makefiles"
-- The C compiler identification is MSVC 19.23.28106.4
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found LuaJIT: E:/dist/lib/lua51.lib
-- Found OpenSSL: E:/dist/lib/libcrypto.lib (found version "1.1.1e")
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: E:/work/luaclibs/lua-openssl/build
e:\work\luaclibs\lua-openssl\build>nmake

Microsoft (R) 程序维护实用工具 14.23.28106.4 版
版权所有 (C) Microsoft Corporation。  保留所有权利。

Scanning dependencies of target lua-openssl
[  2%] Building C object CMakeFiles/lua-openssl.dir/deps/auxiliar/auxiliar.c.obj
auxiliar.c
E:\work\luaclibs\lua-openssl\deps\auxiliar\auxiliar.c(61): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明
E:\work\luaclibs\lua-openssl\deps\auxiliar\auxiliar.c(98): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明
E:\work\luaclibs\lua-openssl\deps\auxiliar\auxiliar.c(112): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明
[  5%] Building C object CMakeFiles/lua-openssl.dir/deps/auxiliar/subsidiar.c.obj
subsidiar.c
[  8%] Building C object CMakeFiles/lua-openssl.dir/src/asn1.c.obj
asn1.c
E:\work\luaclibs\lua-openssl\src\asn1.c(108): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\asn1.c(98): warning C4244: “初始化”: 从“lua_Integer”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\asn1.c(155): warning C4267: “函数”: 从“size_t”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\asn1.c(208): warning C4244: “=”: 从“lua_Integer”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\asn1.c(302): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\asn1.c(526): warning C4267: “函数”: 从“size_t”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\asn1.c(585): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\asn1.c(1033): warning C4996: '__timezone': This function or variable may be unsafe. Consider using _get_timezone instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\time.h(74): note: 参见“__timezone”的声明
E:\work\luaclibs\lua-openssl\src\asn1.c(1124): warning C4267: “函数”: 从“size_t”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\asn1.c(1136): warning C4267: “函数”: 从“size_t”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\asn1.c(1214): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\asn1.c(1419): warning C4996: 'tzset': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _tzset. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\time.h(594): note: 参见“tzset”的声明
[ 10%] Building C object CMakeFiles/lua-openssl.dir/src/bio.c.obj
bio.c
E:\work\luaclibs\lua-openssl\src\bio.c(81): warning C4267: “函数”: 从“size_t”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\bio.c(86): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\bio.c(747): warning C4244: “=”: 从“lua_Integer”转换到“int”,可能丢失数据
[ 13%] Building C object CMakeFiles/lua-openssl.dir/src/callback.c.obj
callback.c
E:\work\luaclibs\lua-openssl\src\callback.c(92): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
[ 16%] Building C object CMakeFiles/lua-openssl.dir/src/cipher.c.obj
cipher.c
E:\work\luaclibs\lua-openssl\src\cipher.c(124): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\cipher.c(212): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\cipher.c(216): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\cipher.c(307): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\cipher.c(309): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\cipher.c(313): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\cipher.c(566): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\cipher.c(742): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\cipher.c(757): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\cipher.c(759): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\cipher.c(761): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\cipher.c(875): warning C4244: “=”: 从“lua_Integer”转换到“int”,可能丢失数据
[ 18%] Building C object CMakeFiles/lua-openssl.dir/src/cms.c.obj
cms.c
E:\work\luaclibs\lua-openssl\src\cms.c(460): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\string.h(536): note: 参见“strdup”的声明
[ 21%] Building C object CMakeFiles/lua-openssl.dir/src/compat.c.obj
compat.c
[ 24%] Building C object CMakeFiles/lua-openssl.dir/src/crl.c.obj
crl.c
E:\work\luaclibs\lua-openssl\src\crl.c(69): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\string.h(549): note: 参见“stricmp”的声明
E:\work\luaclibs\lua-openssl\src\crl.c(84): warning C4244: “=”: 从“lua_Integer”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\crl.c(192): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\crl.c(353): warning C4244: “初始化”: 从“lua_Integer”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\crl.c(723): warning C4244: “初始化”: 从“lua_Integer”转换到“unsigned int”,可能丢 失数据
E:\work\luaclibs\lua-openssl\src\crl.c(747): warning C4244: “初始化”: 从“lua_Integer”转换到“unsigned long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\crl.c(771): warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stdio.h(1961): note: 参见“_snprintf”的声明
E:\work\luaclibs\lua-openssl\src\crl.c(932): warning C4244: “=”: 从“lua_Integer”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\crl.c(1121): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
[ 27%] Building C object CMakeFiles/lua-openssl.dir/src/csr.c.obj
csr.c
E:\work\luaclibs\lua-openssl\src\csr.c(400): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\csr.c(687): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
[ 29%] Building C object CMakeFiles/lua-openssl.dir/src/dh.c.obj
dh.c
[ 32%] Building C object CMakeFiles/lua-openssl.dir/src/digest.c.obj
digest.c
E:\work\luaclibs\lua-openssl\src\digest.c(600): warning C4267: “函数”: 从“size_t”转换到“unsigned int”,可能丢失数 据
[ 35%] Building C object CMakeFiles/lua-openssl.dir/src/dsa.c.obj
dsa.c
[ 37%] Building C object CMakeFiles/lua-openssl.dir/src/ec.c.obj
ec.c
E:\work\luaclibs\lua-openssl\src\ec.c(199): warning C4244: “=”: 从“lua_Integer”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ec.c(430): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ec.c(471): warning C4267: “函数”: 从“size_t”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ec.c(472): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ec.c(489): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ec.c(674): warning C4267: “函数”: 从“size_t”转换到“long”,可能丢失数据
[ 40%] Building C object CMakeFiles/lua-openssl.dir/src/engine.c.obj
engine.c
E:\work\luaclibs\lua-openssl\src\engine.c(521): warning C4244: “=”: 从“lua_Integer”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\engine.c(539): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
[ 43%] Building C object CMakeFiles/lua-openssl.dir/src/hmac.c.obj
hmac.c
E:\work\luaclibs\lua-openssl\src\hmac.c(107): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
[ 45%] Building C object CMakeFiles/lua-openssl.dir/src/lbn.c.obj
lbn.c
E:\work\luaclibs\lua-openssl\src\lbn.c(147): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
[ 48%] Building C object CMakeFiles/lua-openssl.dir/src/lhash.c.obj
lhash.c
[ 51%] Building C object CMakeFiles/lua-openssl.dir/src/misc.c.obj
misc.c
E:\work\luaclibs\lua-openssl\src\misc.c(26): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\misc.c(58): warning C4244: “函数”: 从“lua_Integer”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\misc.c(91): warning C4244: “函数”: 从“lua_Integer”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\misc.c(141): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\misc.c(269): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
[ 54%] Building C object CMakeFiles/lua-openssl.dir/src/ocsp.c.obj
ocsp.c
E:\work\luaclibs\lua-openssl\src\ocsp.c(63): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ocsp.c(46): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ocsp.c(139): warning C4113: “int (__cdecl *)()”和“i2d_of_void (__cdecl *)”的参数列 表不同
E:\work\luaclibs\lua-openssl\src\ocsp.c(456): warning C4113: “int (__cdecl *)()”和“i2d_of_void (__cdecl *)”的参数列 表不同
[ 56%] Building C object CMakeFiles/lua-openssl.dir/src/openssl.c.obj
openssl.c
E:\work\luaclibs\lua-openssl\src\openssl.c(67): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\openssl.c(72): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\openssl.c(103): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\openssl.c(222): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\openssl.c(220): warning C4244: “初始化”: 从“lua_Integer”转换到“double”,可能丢失 数据
E:\work\luaclibs\lua-openssl\src\openssl.c(249): warning C4244: “=”: 从“lua_Integer”转换到“int”,可能丢失数据
[ 59%] Building C object CMakeFiles/lua-openssl.dir/src/ots.c.obj
ots.c
E:\work\luaclibs\lua-openssl\src\ots.c(28): warning C4244: “初始化”: 从“lua_Integer”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ots.c(330): warning C4244: “初始化”: 从“lua_Integer”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ots.c(372): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ots.c(862): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ots.c(1008): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ots.c(1390): warning C4267: “函数”: 从“size_t”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ots.c(1431): warning C4267: “函数”: 从“size_t”转换到“long”,可能丢失数据
[ 62%] Building C object CMakeFiles/lua-openssl.dir/src/pkcs12.c.obj
pkcs12.c
[ 64%] Building C object CMakeFiles/lua-openssl.dir/src/pkcs7.c.obj
pkcs7.c
E:\work\luaclibs\lua-openssl\src\pkcs7.c(239): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkcs7.c(300): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\string.h(536): note: 参见“strdup”的声明
E:\work\luaclibs\lua-openssl\src\pkcs7.c(1312): warning C4267: “初始化”: 从“size_t”转换到“long”,可能丢失数据
[ 67%] Building C object CMakeFiles/lua-openssl.dir/src/pkey.c.obj
pkey.c
E:\work\luaclibs\lua-openssl\src\pkey.c(449): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(698): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(699): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(700): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(701): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(423): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\string.h(549): note: 参见“stricmp”的声明
E:\work\luaclibs\lua-openssl\src\pkey.c(441): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\string.h(549): note: 参见“stricmp”的声明
E:\work\luaclibs\lua-openssl\src\pkey.c(458): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\string.h(549): note: 参见“stricmp”的声明
E:\work\luaclibs\lua-openssl\src\pkey.c(479): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\string.h(549): note: 参见“stricmp”的声明
E:\work\luaclibs\lua-openssl\src\pkey.c(512): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\string.h(549): note: 参见“stricmp”的声明
E:\work\luaclibs\lua-openssl\src\pkey.c(576): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\string.h(549): note: 参见“stricmp”的声明
E:\work\luaclibs\lua-openssl\src\pkey.c(627): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\string.h(549): note: 参见“stricmp”的声明
E:\work\luaclibs\lua-openssl\src\pkey.c(680): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\string.h(549): note: 参见“stricmp”的声明
E:\work\luaclibs\lua-openssl\src\pkey.c(813): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(822): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(827): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(836): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(853): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(1147): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(1352): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(1414): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(1419): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(1488): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(1492): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(1493): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(1495): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(1525): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(1627): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(1624): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(1671): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(1695): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\pkey.c(1692): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
[ 70%] Building C object CMakeFiles/lua-openssl.dir/src/rsa.c.obj
rsa.c
E:\work\luaclibs\lua-openssl\src\rsa.c(52): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\rsa.c(75): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\rsa.c(97): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\rsa.c(119): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\rsa.c(120): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\rsa.c(159): warning C4267: “函数”: 从“size_t”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\rsa.c(163): warning C4267: “函数”: 从“size_t”转换到“long”,可能丢失数据
[ 72%] Building C object CMakeFiles/lua-openssl.dir/src/srp.c.obj
srp.c
[ 75%] Building C object CMakeFiles/lua-openssl.dir/src/ssl.c.obj
ssl.c
E:\work\luaclibs\lua-openssl\src\ssl.c(291): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ssl.c(475): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\string.h(549): note: 参见“stricmp”的声明
E:\work\luaclibs\lua-openssl\src\ssl.c(1221): warning C4244: “=”: 从“lua_Integer”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ssl.c(1320): warning C4244: “初始化”: 从“lua_Integer”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ssl.c(1336): warning C4267: “函数”: 从“size_t”转换到“unsigned int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ssl.c(1406): warning C4244: “=”: 从“lua_Integer”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ssl.c(1625): warning C4267: “函数”: 从“size_t”转换到“unsigned int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ssl.c(2271): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\ssl.c(2525): warning C4267: “函数”: 从“size_t”转换到“unsigned int”,可能丢失数据
[ 78%] Building C object CMakeFiles/lua-openssl.dir/src/th-lock.c.obj
th-lock.c
[ 81%] Building C object CMakeFiles/lua-openssl.dir/src/util.c.obj
util.c
[ 83%] Building C object CMakeFiles/lua-openssl.dir/src/x509.c.obj
x509.c
E:\work\luaclibs\lua-openssl\src\x509.c(69): warning C4244: “函数”: 从“lua_Integer”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\x509.c(542): warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stdio.h(1961): note: 参见“_snprintf”的声明
E:\work\luaclibs\lua-openssl\src\x509.c(818): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
[ 86%] Building C object CMakeFiles/lua-openssl.dir/src/xattrs.c.obj
xattrs.c
E:\work\luaclibs\lua-openssl\src\xattrs.c(191): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\xattrs.c(337): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\xattrs.c(344): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
[ 89%] Building C object CMakeFiles/lua-openssl.dir/src/xexts.c.obj
xexts.c
E:\work\luaclibs\lua-openssl\src\xexts.c(117): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\xexts.c(123): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\xexts.c(186): warning C4267: “函数”: 从“size_t”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\xexts.c(493): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\xexts.c(533): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
[ 91%] Building C object CMakeFiles/lua-openssl.dir/src/xname.c.obj
xname.c
E:\work\luaclibs\lua-openssl\src\xname.c(30): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\xname.c(94): warning C4267: “函数”: 从“size_t”转换到“long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\xname.c(196): warning C4244: “初始化”: 从“lua_Integer”转换到“unsigned long”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\xname.c(444): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
[ 94%] Building C object CMakeFiles/lua-openssl.dir/src/xalgor.c.obj
xalgor.c
E:\work\luaclibs\lua-openssl\src\xalgor.c(12): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
[ 97%] Building C object CMakeFiles/lua-openssl.dir/src/xstore.c.obj
xstore.c
E:\work\luaclibs\lua-openssl\src\xstore.c(25): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\xstore.c(39): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
E:\work\luaclibs\lua-openssl\src\xstore.c(219): warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
[100%] Linking C shared library openssl.dll
[100%] Built target lua-openssl
barmaley997 commented 5 years ago

and please paste cmake command line here.

I dont quite understand - where the Cmake command line, sorry, i am always using Cmake GUI, i am not using Cmake through command line, so options of Cmake-gui that was for build lua-openssl was such: Ashampoo_Snap_4 ноября 2019 г _09h59m55s_030_ Ashampoo_Snap_4 ноября 2019 г _10h00m10s_031_ So i downloaded the latest stable openssl 1.1.1 - https://github.com/openssl/openssl/tree/OpenSSL_1_1_1-stable Compile it according to the instruction of the developers by using ActivePerl and MS Visual Studio command shell, then i pointed to Cmake to that OpenSSL_1_1_1-stable includes and to builded libcrypto.lib and libssl.dll and after opening in MS Visual Studio, builded by Cmake, project it was compiled OK! Was builded only one output file - Openssl.dll - is it OK? And then another problem - after trying to require that library in lua script

local hmac = require "openssl".hmac

lua interpreter it gives me error: required procedure not found. So i looked into builded openssl.dll by DLL Dependency Viewer and i seen the openssl.dll has no any exported functions:

Ashampoo_Snap_4 ноября 2019 г _12h22m43s_032_

Ashampoo_Snap_4 ноября 2019 г _12h27m35s_033_

zhaozg commented 5 years ago

thank you @barmaley997. You got key point that So i looked into builded openssl.dll by DLL Dependency Viewer and i seen the openssl.dll has no any exported functions. I will fix it lately.

zhaozg commented 5 years ago

@barmaley997 please try this https://github.com/zhaozg/lua-openssl/commit/b26171d65948fe58cc0d49824f0a6c76190160c9

barmaley997 commented 5 years ago

please try this b26171d

I've tried this, so CMakeLists.txt get looks so:

cmake_minimum_required(VERSION 2.8.9)
project(lua-openssl C)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
option(BUILD_SHARED_LUA_OPENSSL "Shared or Static libluv" ON)

include(GNUInstallDirs)

find_package(LuaJIT 2.0 REQUIRED)
find_package(OpenSSL REQUIRED)

set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
find_package(Threads REQUIRED)
add_definitions(-DPTHREADS)

if(BUILD_SHARED_LUA_OPENSSL)
    set(LUA_OPENSSL_LIBTYPE SHARED)
     add_definitions(-DLUA_LIB)
else()
    set(LUA_OPENSSL_LIBTYPE STATIC)
endif()

add_library(lua-openssl ${LUA_OPENSSL_LIBTYPE}
    deps/auxiliar/auxiliar.c
    deps/auxiliar/subsidiar.c
    src/asn1.c
    src/bio.c
    src/callback.c
    src/cipher.c
    src/cms.c
    src/compat.c
    src/crl.c
    src/csr.c
    src/dh.c
    src/digest.c
    src/dsa.c
    src/ec.c
    src/engine.c
    src/hmac.c
    src/lbn.c
    src/lhash.c
    src/misc.c
    src/ocsp.c
    src/oids.txt
    src/openssl.c
    src/ots.c
    src/pkcs12.c
    src/pkcs7.c
    src/pkey.c
    src/private.h
    src/rsa.c
    src/sk.h
    src/srp.c
    src/ssl.c
    src/th-lock.c
    src/util.c
    src/x509.c
    src/xattrs.c
    src/xexts.c
    src/xname.c
    src/xalgor.c
    src/xstore.c
)

target_include_directories(lua-openssl PUBLIC
    ${OPENSSL_INCLUDE_DIR}
    ${LUAJIT_INCLUDE_DIRS}
    deps
    deps/lua-compat
    deps/auxiliar
)

target_link_libraries(lua-openssl PUBLIC
    ${OPENSSL_LIBRARIES}
    ${LUAJIT_LIBRARIES}
    Threads::Threads
)

set_target_properties(lua-openssl PROPERTIES
    PREFIX ""
    OUTPUT_NAME "openssl"
    VERSION 0.7.6.0 SOVERSION 1
)

install(TARGETS lua-openssl
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/lua/5.1
) 

But it wasn't helped, after generating new project by Cmake and compiling by visual studio openssl.dll still has zero exported functions, like in screenshots above - no function available to use in Lua...

zhaozg commented 5 years ago

update here: https://github.com/zhaozg/lua-openssl/commit/5d30d8efa342601d20faf88ba6b10922d75f5a01

barmaley997 commented 5 years ago

update here: 5d30d8e

But now there are strange error - though i've added into Cmake-Gui paths to lua library - lua53.lib ( i want to compile openssl for Lua 5.3 ) before Configure Project (of course i've deleted cache of Cmake before using your new corrected CMakeLists.txt that you posted) when i'm opening generated projed in MS Visual Studio i'm noticed that in project, in Properties of lua-openssl - Linker - Input - Additional Dependecies was not added lib53.lib automatically by Cmake It is strange cause before Cmake automatically adds this lib here if i generating project with it So i've added lib53.lib with full path to here, Properties of lua-openssl - Linker - Input - Additional Dependecies, and try to compiling the project, but compilier gives me errors on the stage of Linker such as project not see the lib53.lib and Linker cannot get functions from that lib, but lib was added, I've tried many times to Configure-Generate-Compile project again and the errors still the same

barmaley997 commented 5 years ago

Hello, i have tried again to Configure - Generate - Build Project, with your latest CMakeLists.txt, and now it was compiled OK! It seems that i've missed some in previous try, now openssl.dll have exported functions and works OK! Thanks to you for your great work for all Lua programmers!

![Uploading Ashampoo_Snap_8 ноября 2019 г._18h05m05s001.jpg…]()