• Re: How to compile Tls package on mingw64 ? (2/2)

    From P8j6@21:1/5 to All on Fri Oct 29 04:22:21 2021
    [continued from previous message]

    C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/openssl/lib/libcrypto.a(e_capi.o):e_capi.c:(.text+0x3610): undefined reference to `__imp_CertOpenStore'
    C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/openssl/lib/libcrypto.a(e_capi.o):e_capi.c:(.text+0x3655): undefined reference to `__imp_CertFreeCertificateContext'
    C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/openssl/lib/libcrypto.a(e_capi.o):e_capi.c:(.text+0x3660): undefined reference to `__imp_CertCloseStore'
    C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/openssl/lib/libcrypto.a(e_capi.o):e_capi.c:(.text+0x3683): undefined reference to `__imp_CertEnumCertificatesInStore'
    C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/openssl/lib/libcrypto.a(e_capi.o):e_capi.c:(.text+0x3dc7): undefined reference to `__imp_CertOpenStore'
    C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/openssl/lib/libcrypto.a(e_capi.o):e_capi.c:(.text+0x3e35): undefined reference to `__imp_CertFreeCertificateContext'
    C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/openssl/lib/libcrypto.a(e_capi.o):e_capi.c:(.text+0x3e40): undefined reference to `__imp_CertCloseStore'
    C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/openssl/lib/libcrypto.a(e_capi.o):e_capi.c:(.text+0x3f69): undefined reference to `__imp_CertFreeCertificateContext'
    C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/openssl/lib/libcrypto.a(e_capi.o):e_capi.c:(.text+0x4000): undefined reference to `__imp_CertFreeCertificateContext'
    collect2.exe: error: ld returned 1 exit status
    configure:5578: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "tcltls"
    | #define PACKAGE_TARNAME "tcltls"
    | #define PACKAGE_VERSION "1.7.22"
    | #define PACKAGE_STRING "tcltls 1.7.22"
    | #define PACKAGE_BUGREPORT ""
    | #define PACKAGE_URL ""
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define HAVE_UNISTD_H 1
    | #define __EXTENSIONS__ 1
    | #define _ALL_SOURCE 1
    | #define _GNU_SOURCE 1
    | #define _POSIX_PTHREAD_SEMANTICS 1
    | #define _TANDEM_SOURCE 1
    | #define HAVE_UNISTD_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_STRINGS_H 1
    | #define MODULE_SCOPE static
    | #define USE_TCL_STUBS 1
    | /* end confdefs.h. */
    |
    | #include <openssl/ssl.h>
    | #include <openssl/opensslv.h>
    | #if (SSLEAY_VERSION_NUMBER >= 0x0907000L)
    | # include <openssl/conf.h>
    | #endif
    |
    | int
    | main ()
    | {
    |
    | SSL_library_init();
    | SSL_load_error_strings();
    |
    | ;
    | return 0;
    | }
    configure:5585: result: no
    configure:5587: error: Unable to compile a basic program using OpenSSL

    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##

    ac_cv_build=x86_64-w64-mingw32
    ac_cv_c_compiler_gnu=yes
    ac_cv_env_CC_set=
    ac_cv_env_CC_value=
    ac_cv_env_CFLAGS_set=
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_LDFLAGS_set=
    ac_cv_env_LDFLAGS_value=
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_TCLTLS_SSL_CFLAGS_set=
    ac_cv_env_TCLTLS_SSL_CFLAGS_value=
    ac_cv_env_TCLTLS_SSL_CPPFLAGS_set=
    ac_cv_env_TCLTLS_SSL_CPPFLAGS_value=
    ac_cv_env_TCLTLS_SSL_LIBS_set=
    ac_cv_env_TCLTLS_SSL_LIBS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_exeext=.exe
    ac_cv_header_inttypes_h=yes
    ac_cv_header_memory_h=yes
    ac_cv_header_minix_config_h=no
    ac_cv_header_stdc=yes
    ac_cv_header_stdint_h=yes
    ac_cv_header_stdlib_h=yes
    ac_cv_header_string_h=yes
    ac_cv_header_strings_h=yes
    ac_cv_header_sys_stat_h=yes
    ac_cv_header_sys_types_h=yes
    ac_cv_header_unistd_h=yes
    ac_cv_host=x86_64-w64-mingw32
    ac_cv_objext=o
    ac_cv_path_EGREP='/usr/bin/grep -E'
    ac_cv_path_GREP=/usr/bin/grep
    ac_cv_path_install='/usr/bin/install -c'
    ac_cv_prog_CPP='gcc -E'
    ac_cv_prog_ac_ct_CC=gcc
    ac_cv_prog_ac_ct_PKGCONFIG=pkg-config
    ac_cv_prog_cc_c89=
    ac_cv_prog_cc_g=yes
    ac_cv_prog_make_make_set=yes
    ac_cv_safe_to_define___extensions__=yes
    ax_cv_check_cflags___W=yes
    ax_cv_check_cflags___Wall=yes ax_cv_check_cflags___Wno_deprecated_declarations=yes ax_cv_check_cflags___Wno_self_assign=yes ax_cv_check_cflags___Wno_unused_parameter=yes ax_cv_check_cflags___Wno_unused_value=yes
    dc_cv_dc_chk_os_info_called=1
    tcl_cv_tclsh_native_path=/C/tcl/lib/../bin/tclsh

    ## ----------------- ##
    ## Output variables. ##
    ## ----------------- ##

    AR=''
    AREXT='a'
    CC='gcc'
    CFLAGS='-I/C/openssl/include -g -O2 -mms-bitfields -IC:/tcl/include -Wno-unused-value -Wno-unused-parameter -Wno-deprecated-declarations -Wall -W -Wno-self-assign -I/C/openssl/include'
    CPP='gcc -E'
    CPPFLAGS='-I/C/openssl/include -mms-bitfields -IC:/tcl/include -I/C/openssl/include'
    DEFS=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP='/usr/bin/grep -E'
    EXEEXT='.exe'
    EXTENSION_TARGET='tcltls.dll'
    GEN_DH_PARAMS_ARGS=''
    GREP='/usr/bin/grep'
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    LDFLAGS=''
    LIBOBJS=''
    LIBS='-L/C/openssl/lib -lssl -lcrypto -LC:/tcl/lib -ltclstub86 -L/C/openssl/lib -lssl -lcrypto'
    LTLIBOBJS=''
    OBJCOPY=''
    OBJEXT='o'
    PACKAGE_BUGREPORT=''
    PACKAGE_NAME='tcltls'
    PACKAGE_STRING='tcltls 1.7.22'
    PACKAGE_TARNAME='tcltls'
    PACKAGE_URL=''
    PACKAGE_VERSION='1.7.22'
    PATH_SEPARATOR=':'
    PKGCONFIG='pkg-config'
    RANLIB=''
    REMOVESYMS=''
    SET_MAKE=''
    SHELL='/bin/sh'
    SHLIBOBJS=''
    SHOBJCPPFLAGS='-DPIC'
    SHOBJEXT='dll'
    SHOBJFLAGS=''
    SHOBJLDFLAGS='-shared -Wl,--dll -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a'
    STRIP=''
    SYMPREFIX=''
    TCLCONFIGPATH='/C/tcl/lib'
    TCLEXT_BUILD='shared'
    TCLSH_PROG='/C/tcl/lib/../bin/tclsh'
    TCLTLS_SSL_CFLAGS='-I/C/openssl/include' TCLTLS_SSL_CPPFLAGS='-I/C/openssl/include'
    TCLTLS_SSL_LIBS='-L/C/openssl/lib -lssl -lcrypto' TCL_DEFS=''\''-DTCL_THREADS=1'\'' '\''-DTCL_CFGVAL_ENCODING="utf-8"'\'' '\''-DTCL_CFG_DO64BIT=1'\'' '\''-DTCL_CFG_OPTIMIZED=1'\'' '
    TCL_PACKAGE_PATH='${libdir}'
    WEAKENSYMS=''
    ac_ct_CC='gcc'
    ac_ct_OBJCOPY=''
    ac_ct_STRIP=''
    bindir='${exec_prefix}/bin'
    build='x86_64-w64-mingw32'
    build_alias='x86_64-w64-mingw32'
    build_cpu='x86_64'
    build_os='mingw32'
    build_vendor='w64'
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    dvidir='${docdir}'
    exec_prefix='NONE'
    host='x86_64-w64-mingw32'
    host_alias=''
    host_cpu='x86_64'
    host_os='mingw32'
    host_vendor='w64'
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='/mingw64'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target_alias=''

    ## ----------- ##
    ## confdefs.h. ##
    ## ----------- ##

    /* confdefs.h */
    #define PACKAGE_NAME "tcltls"
    #define PACKAGE_TARNAME "tcltls"
    #define PACKAGE_VERSION "1.7.22"
    #define PACKAGE_STRING "tcltls 1.7.22"
    #define PACKAGE_BUGREPORT ""
    #define PACKAGE_URL ""
    #define STDC_HEADERS 1
    #define HAVE_SYS_TYPES_H 1
    #define HAVE_SYS_STAT_H 1
    #define HAVE_STDLIB_H 1
    #define HAVE_STRING_H 1
    #define HAVE_MEMORY_H 1
    #define HAVE_STRINGS_H 1
    #define HAVE_INTTYPES_H 1
    #define HAVE_STDINT_H 1
    #define HAVE_UNISTD_H 1
    #define __EXTENSIONS__ 1
    #define _ALL_SOURCE 1
    #define _GNU_SOURCE 1
    #define _POSIX_PTHREAD_SEMANTICS 1
    #define _TANDEM_SOURCE 1
    #define HAVE_UNISTD_H 1
    #define HAVE_STDLIB_H 1
    #define HAVE_STRING_H 1
    #define HAVE_STRINGS_H 1
    #define MODULE_SCOPE static
    #define USE_TCL_STUBS 1

    configure: exit 1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)