Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to compile Tls package on mingw64 ?

527 views
Skip to first unread message

P8j6

unread,
Oct 25, 2021, 8:13:57 AM10/25/21
to
Hi,

can someone please advise me how to compile Tls package against openssl on windows?

Im using this versions:

openssl-1.1.1l.tar.gz
tcltls-1.7.22.tar.gz

Im building on Windows 7 64bit in mingw64.

Opnessl:
perl Configure mingw64 no-shared no-asm --prefix=/C/openssl
make depend
make
make install

Openssl compile and installs without errors.
But then i cannot configure tcltls. It ends with error: "Unable to compile a basic program using OpenSSL".

There is configure output:

$ ./configure --with-tcl=/C/tcl/lib --with-openssl-dir=/C/openssl --disable-hardening
configure: loading site script /etc/config.site
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32
checking host operating system... mingw32
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for path to tclConfig.sh... /C/tcl/lib
checking for runnable tclsh... /C/tcl/lib/../bin/tclsh
checking for working tclConfig.sh... found
checking how to create shared objects... -DPIC -shared -Wl,--dll -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a
checking whether C compiler accepts -Wno-unused-value... yes
checking whether C compiler accepts -Wno-unused-parameter... yes
checking whether C compiler accepts -Wno-deprecated-declarations... yes
checking for pkg-config... pkg-config
checking whether C compiler accepts -Wall... yes
checking whether C compiler accepts -W... yes
checking whether C compiler accepts -Wno-self-assign... yes
checking which TLS library to use... openssl
checking if a basic OpenSSL program works... no
configure: error: Unable to compile a basic program using OpenSSL

Ashok

unread,
Oct 25, 2021, 10:49:58 PM10/25/21
to
On 10/25/2021 5:43 PM, P8j6 wrote:
> Hi,
>
> checking which TLS library to use... openssl
> checking if a basic OpenSSL program works... no
> configure: error: Unable to compile a basic program using OpenSSL
>

Did you check config.log which should give more detail on the error?

Wayland Augur

unread,
Oct 26, 2021, 12:22:56 PM10/26/21
to
I had to get TLS working a few years ago, I don't recall all the details but think I finally downloaded BAWT and let it build everything for me. I got a whole lot of stuff I didn't need, but also got the TLS package.

P8j6

unread,
Oct 29, 2021, 7:22:24 AM10/29/21
to
Dne úterý 26. října 2021 v 4:49:58 UTC+2 uživatel Ashok napsal:
Theres config.log. I see some missing files for minix? Then some undefined refrences. Maybe im missing some configure switches? Or problem with defined architecture? I want the result library to be Windows 64 bit compatible.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by tcltls configure 1.7.22, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure --with-tcl=/C/tcl/lib --with-openssl-dir=/C/openssl --disable-hardening

## --------- ##
## Platform. ##
## --------- ##

hostname = WIN-E2MRFFAK59L
uname -m = x86_64
uname -r = 3.1.7-340.x86_64
uname -s = MINGW64_NT-6.1-7601
uname -v = 2021-10-12 16:29 UTC

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /c/Users/p8j6/bin
PATH: /mingw64/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /mingw64/bin
PATH: /usr/bin
PATH: /c/Users/p8j6/bin
PATH: /c/tcl/bin
PATH: /c/Windows/system32
PATH: /c/Windows
PATH: /c/Windows/System32/Wbem
PATH: /c/Windows/System32/WindowsPowerShell/v1.0
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2095: loading site script /etc/config.site
| # This file is in public domain.
| # Original author: Karlson2k (Evgeny Grin)
| # Written for MSys2 to help running 'configure' scripts
|
| # Defaults for MSys2/MinGW64-targeted programs
|
| # Set proper selfname on bash and fallback to default name on other shells
| test -n "${BASH_SOURCE}" 2>/dev/null && config_site_me="${BASH_SOURCE[0]##*/}" || config_site_me=config.site
|
| # Set default 'host' to speedup configure
| if test -z "$build_alias"; then
| build_alias="${MSYSTEM_CHOST}" && \
| ${as_echo-echo} "$config_site_me:${as_lineno-$LINENO}: default build_alias set to $build_alias" >&5
| fi
|
| # Set default 'prefix'
| if ( test -z "$prefix" || test "x$prefix" = "xNONE" ) && \
| ( test -z "$exec_prefix" || test "x$exec_prefix" = "xNONE" ); then
| prefix="${MSYSTEM_PREFIX}" && \
| ${as_echo-echo} "$config_site_me:${as_lineno-$LINENO}: default prefix set to $prefix" >&5
| fi
config.site:13: default build_alias set to x86_64-w64-mingw32
config.site:20: default prefix set to /mingw64
configure:2240: checking for gcc
configure:2256: found /mingw64/bin/gcc
configure:2267: result: gcc
configure:2496: checking for C compiler version
configure:2505: gcc --version >&5
gcc.exe (Rev1, Built by MSYS2 project) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2516: $? = 0
configure:2505: gcc -v >&5
Using built-in specs.
COLLECT_GCC=C:\git-sdk-64\mingw64\bin\gcc.exe
COLLECT_LTO_WRAPPER=C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-11.2.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --enable-checking=release --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++,jit --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts --enable-libstdcxx-time --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-lto --enable-libgomp --disable-multilib --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev1, Built by MSYS2 project' --with-bugurl=https://github.com/msys2/MINGW-packages/issues --with-gnu-as --with-gnu-ld --with-boot-ldflags='-pipe -Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-base-high -Wl,--disable-dynamicbase -static-libstdc++ -static-libgcc' 'LDFLAGS_FOR_TARGET=-pipe -Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-base-high' --enable-linker-plugin-flags='LDFLAGS=-static-libstdc++\ -static-libgcc\ -pipe\ -Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-base-high\ -Wl,--stack,12582912'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (Rev1, Built by MSYS2 project)
configure:2516: $? = 0
configure:2505: gcc -V >&5
gcc.exe: error: unrecognized command-line option '-V'
gcc.exe: fatal error: no input files
compilation terminated.
configure:2516: $? = 1
configure:2505: gcc -qversion >&5
gcc.exe: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc.exe: fatal error: no input files
compilation terminated.
configure:2516: $? = 1
configure:2536: checking whether the C compiler works
configure:2558: gcc conftest.c >&5
configure:2562: $? = 0
configure:2610: result: yes
configure:2613: checking for C compiler default output file name
configure:2615: result: a.exe
configure:2621: checking for suffix of executables
configure:2628: gcc -o conftest.exe conftest.c >&5
configure:2632: $? = 0
configure:2654: result: .exe
configure:2676: checking whether we are cross compiling
configure:2684: gcc -o conftest.exe conftest.c >&5
configure:2688: $? = 0
configure:2695: ./conftest.exe
configure:2699: $? = 0
configure:2714: result: no
configure:2719: checking for suffix of object files
configure:2741: gcc -c conftest.c >&5
configure:2745: $? = 0
configure:2766: result: o
configure:2770: checking whether we are using the GNU C compiler
configure:2789: gcc -c conftest.c >&5
configure:2789: $? = 0
configure:2798: result: yes
configure:2807: checking whether gcc accepts -g
configure:2827: gcc -c -g conftest.c >&5
configure:2827: $? = 0
configure:2868: result: yes
configure:2885: checking for gcc option to accept ISO C89
configure:2948: gcc -c -g -O2 conftest.c >&5
configure:2948: $? = 0
configure:2961: result: none needed
configure:2981: checking whether make sets $(MAKE)
configure:3003: result: yes
configure:3055: checking for a BSD-compatible install
configure:3123: result: /usr/bin/install -c
configure:3140: checking how to run the C preprocessor
configure:3171: gcc -E conftest.c
configure:3171: $? = 0
configure:3185: gcc -E conftest.c
conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory
9 | #include <ac_nonexistent.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:3185: $? = 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 ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3210: result: gcc -E
configure:3230: gcc -E conftest.c
configure:3230: $? = 0
configure:3244: gcc -E conftest.c
conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory
9 | #include <ac_nonexistent.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:3244: $? = 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 ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3273: checking for grep that handles long lines and -e
configure:3331: result: /usr/bin/grep
configure:3336: checking for egrep
configure:3398: result: /usr/bin/grep -E
configure:3403: checking for ANSI C header files
configure:3423: gcc -c -g -O2 conftest.c >&5
configure:3423: $? = 0
configure:3496: gcc -o conftest.exe -g -O2 conftest.c >&5
configure:3496: $? = 0
configure:3496: ./conftest.exe
configure:3496: $? = 0
configure:3507: result: yes
configure:3520: checking for sys/types.h
configure:3520: gcc -c -g -O2 conftest.c >&5
configure:3520: $? = 0
configure:3520: result: yes
configure:3520: checking for sys/stat.h
configure:3520: gcc -c -g -O2 conftest.c >&5
configure:3520: $? = 0
configure:3520: result: yes
configure:3520: checking for stdlib.h
configure:3520: gcc -c -g -O2 conftest.c >&5
configure:3520: $? = 0
configure:3520: result: yes
configure:3520: checking for string.h
configure:3520: gcc -c -g -O2 conftest.c >&5
configure:3520: $? = 0
configure:3520: result: yes
configure:3520: checking for memory.h
configure:3520: gcc -c -g -O2 conftest.c >&5
configure:3520: $? = 0
configure:3520: result: yes
configure:3520: checking for strings.h
configure:3520: gcc -c -g -O2 conftest.c >&5
configure:3520: $? = 0
configure:3520: result: yes
configure:3520: checking for inttypes.h
configure:3520: gcc -c -g -O2 conftest.c >&5
configure:3520: $? = 0
configure:3520: result: yes
configure:3520: checking for stdint.h
configure:3520: gcc -c -g -O2 conftest.c >&5
configure:3520: $? = 0
configure:3520: result: yes
configure:3520: checking for unistd.h
configure:3520: gcc -c -g -O2 conftest.c >&5
configure:3520: $? = 0
configure:3520: result: yes
configure:3533: checking minix/config.h usability
configure:3533: gcc -c -g -O2 conftest.c >&5
conftest.c:52:10: fatal error: minix/config.h: No such file or directory
52 | #include <minix/config.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
configure:3533: $? = 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
| /* end confdefs.h. */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <minix/config.h>
configure:3533: result: no
configure:3533: checking minix/config.h presence
configure:3533: gcc -E conftest.c
conftest.c:19:10: fatal error: minix/config.h: No such file or directory
19 | #include <minix/config.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
configure:3533: $? = 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
| /* end confdefs.h. */
| #include <minix/config.h>
configure:3533: result: no
configure:3533: checking for minix/config.h
configure:3533: result: no
configure:3554: checking whether it is safe to define __EXTENSIONS__
configure:3572: gcc -c -g -O2 conftest.c >&5
configure:3572: $? = 0
configure:3579: result: yes
configure:3599: checking build system type
configure:3613: result: x86_64-w64-mingw32
configure:3633: checking host system type
configure:3646: result: x86_64-w64-mingw32
configure:3679: checking host operating system
configure:3681: result: mingw32
configure:3730: checking for unistd.h
configure:3730: result: yes
configure:3730: checking for stdlib.h
configure:3730: result: yes
configure:3730: checking for string.h
configure:3730: result: yes
configure:3730: checking for strings.h
configure:3730: result: yes
configure:3827: checking for path to tclConfig.sh
configure:3836: result: /C/tcl/lib
configure:3841: checking for runnable tclsh
configure:3877: result: /C/tcl/lib/../bin/tclsh
configure:3886: checking for working tclConfig.sh
configure:3896: result: found
configure:4047: checking how to create shared objects
configure:4479: result: -DPIC -shared -Wl,--dll -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a
configure:4868: checking whether C compiler accepts -Wno-unused-value
configure:4887: gcc -o conftest.exe -g -O2 -mms-bitfields -IC:/tcl/include -Wno-unused-value -mms-bitfields -IC:/tcl/include conftest.c -LC:/tcl/lib -ltclstub86 >&5
configure:4887: $? = 0
configure:4896: result: yes
configure:4904: checking whether C compiler accepts -Wno-unused-parameter
configure:4923: gcc -o conftest.exe -g -O2 -mms-bitfields -IC:/tcl/include -Wno-unused-value -Wno-unused-parameter -mms-bitfields -IC:/tcl/include conftest.c -LC:/tcl/lib -ltclstub86 >&5
configure:4923: $? = 0
configure:4932: result: yes
configure:4940: checking whether C compiler accepts -Wno-deprecated-declarations
configure:4959: gcc -o conftest.exe -g -O2 -mms-bitfields -IC:/tcl/include -Wno-unused-value -Wno-unused-parameter -Wno-deprecated-declarations -mms-bitfields -IC:/tcl/include conftest.c -LC:/tcl/lib -ltclstub86 >&5
configure:4959: $? = 0
configure:4968: result: yes
configure:5021: checking for pkg-config
configure:5037: found /mingw64/bin/pkg-config
configure:5048: result: pkg-config
configure:5101: checking whether C compiler accepts -Wall
configure:5120: gcc -o conftest.exe -g -O2 -mms-bitfields -IC:/tcl/include -Wno-unused-value -Wno-unused-parameter -Wno-deprecated-declarations -Wall -mms-bitfields -IC:/tcl/include conftest.c -LC:/tcl/lib -ltclstub86 >&5
configure:5120: $? = 0
configure:5129: result: yes
configure:5137: checking whether C compiler accepts -W
configure:5156: gcc -o conftest.exe -g -O2 -mms-bitfields -IC:/tcl/include -Wno-unused-value -Wno-unused-parameter -Wno-deprecated-declarations -Wall -W -mms-bitfields -IC:/tcl/include conftest.c -LC:/tcl/lib -ltclstub86 >&5
configure:5156: $? = 0
configure:5165: result: yes
configure:5170: checking whether C compiler accepts -Wno-self-assign
configure:5189: gcc -o conftest.exe -g -O2 -mms-bitfields -IC:/tcl/include -Wno-unused-value -Wno-unused-parameter -Wno-deprecated-declarations -Wall -W -Wno-self-assign -mms-bitfields -IC:/tcl/include conftest.c -LC:/tcl/lib -ltclstub86 >&5
configure:5189: $? = 0
configure:5198: result: yes
configure:5312: checking which TLS library to use
configure:5314: result: openssl
configure:5556: checking if a basic OpenSSL program works
configure:5578: gcc -o conftest.exe -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 -I/C/openssl/include -mms-bitfields -IC:/tcl/include -I/C/openssl/include conftest.c -L/C/openssl/lib -lssl -lcrypto -LC:/tcl/lib -ltclstub86 -L/C/openssl/lib -lssl -lcrypto >&5
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(b_addr.o):b_addr.c:(.text+0xad): undefined reference to `__imp_getnameinfo'
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(b_addr.o):b_addr.c:(.text+0xde): undefined reference to `__imp_ntohs'
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(b_addr.o):b_addr.c:(.text+0x23b): undefined reference to `gai_strerrorW'
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(b_addr.o):b_addr.c:(.text+0x6f8): undefined reference to `__imp_freeaddrinfo'
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(b_addr.o):b_addr.c:(.text+0xb2e): undefined reference to `__imp_getaddrinfo'
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(b_addr.o):b_addr.c:(.text+0xbf2): undefined reference to `gai_strerrorW'
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(b_addr.o):b_addr.c:(.text+0xd10): undefined reference to `__imp_getaddrinfo'
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(b_addr.o):b_addr.c:(.text+0xdd2): undefined reference to `gai_strerrorW'
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(b_sock.o):b_sock.c:(.text+0xd5): undefined reference to `__imp_WSAStartup'
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(b_sock.o):b_sock.c:(.text+0xe3): undefined reference to `__imp_WSAGetLastError'
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(b_sock.o):b_sock.c:(.text+0x28d): undefined reference to `__imp_WSAStartup'
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(b_sock.o):b_sock.c:(.text+0x29b): undefined reference to `__imp_WSAGetLastError'
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(b_sock.o):b_sock.c:(.text+0x36d): undefined reference to `__imp_ntohs'
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(b_sock.o):b_sock.c:(.text+0x3b3): undefined reference to `__imp_getsockopt'
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(b_sock.o):b_sock.c:(.text+0x3d2): undefined reference to `__imp_WSAGetLastError'
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(b_sock.o):b_sock.c:(.text+0x3e3): undefined reference to `__imp_gethostbyname'
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(b_sock.o):b_sock.c:(.text+0x435): undefined reference to `__imp_WSAStartup'
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(b_sock.o):b_sock.c:(.text+0x43f): undefined reference to `__imp_WSAGetLastError'
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(b_sock.o):b_sock.c:(.text+0x4bd): undefined reference to `__imp_WSACleanup'
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(b_sock.o):b_sock.c:(.text+0x4db): undefined reference to `__imp_ioctlsocket'
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(b_sock.o):b_sock.c:(.text+0x4f2): undefined reference to `__imp_WSAGetLastError'
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(b_sock.o):b_sock.c:(.text+0x69d): undefined reference to `__imp_WSAStartup'
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(b_sock.o):b_sock.c:(.text+0x6ab): undefined reference to `__imp_WSAGetLastError'
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(b_sock.o):b_sock.c:(.text+0x8c2): undefined reference to `__imp_WSAGetLastError'
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(b_sock.o):b_sock.c:(.text+0x945): undefined reference to `__imp_setsockopt'
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(b_sock.o):b_sock.c:(.text+0x978): undefined reference to `__imp_ioctlsocket'
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(b_sock.o):b_sock.c:(.text+0x992): undefined reference to `__imp_WSAGetLastError'
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(b_sock.o):b_sock.c:(.text+0x9f8): undefined reference to `__imp_getsockname'
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(b_sock.o):b_sock.c:(.text+0xa52): undefined reference to `__imp_WSAGetLastError'
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(b_sock2.o):b_sock2.c:(.text+0x27): undefined reference to `__imp_socket'
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(b_sock2.o):b_sock2.c:(.text+0x4a): undefined reference to `__imp_WSAGetLastError'
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(b_sock2.o):b_sock2.c:(.text+0x106): undefined reference to `__imp_setsockopt'
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(b_sock2.o):b_sock2.c:(.text+0x135): undefined reference to `__imp_connect'
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(b_sock2.o):b_sock2.c:(.text+0x16d): undefined reference to `__imp_setsockopt'
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(b_sock2.o):b_sock2.c:(.text+0x17b): undefined reference to `__imp_WSAGetLastError'
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(b_sock2.o):b_sock2.c:(.text+0x223): undefined reference to `__imp_WSAGetLastError'
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(b_sock2.o):b_sock2.c:(.text+0x27a): undefined reference to `__imp_WSAGetLastError'
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(b_sock2.o):b_sock2.c:(.text+0x2ff): undefined reference to `__imp_bind'
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(b_sock2.o):b_sock2.c:(.text+0x352): undefined reference to `__imp_WSAGetLastError'
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(b_sock2.o):b_sock2.c:(.text+0x401): undefined reference to `__imp_getsockopt'
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(b_sock2.o):b_sock2.c:(.text+0x415): undefined reference to `__imp_WSAGetLastError'
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(b_sock2.o):b_sock2.c:(.text+0x4b7): undefined reference to `__imp_setsockopt'
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(b_sock2.o):b_sock2.c:(.text+0x53a): undefined reference to `__imp_listen'
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(b_sock2.o):b_sock2.c:(.text+0x545): undefined reference to `__imp_WSAGetLastError'
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(b_sock2.o):b_sock2.c:(.text+0x5b5): undefined reference to `__imp_setsockopt'
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(b_sock2.o):b_sock2.c:(.text+0x5c3): undefined reference to `__imp_WSAGetLastError'
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(b_sock2.o):b_sock2.c:(.text+0x640): undefined reference to `__imp_setsockopt'
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(b_sock2.o):b_sock2.c:(.text+0x64e): undefined reference to `__imp_WSAGetLastError'
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(b_sock2.o):b_sock2.c:(.text+0x6a2): undefined reference to `__imp_WSAGetLastError'
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(b_sock2.o):b_sock2.c:(.text+0x726): undefined reference to `__imp_accept'
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(b_sock2.o):b_sock2.c:(.text+0x764): undefined reference to `__imp_WSAGetLastError'
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(b_sock2.o):b_sock2.c:(.text+0x7ba): undefined reference to `__imp_closesocket'
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(b_sock2.o):b_sock2.c:(.text+0x7c9): undefined reference to `__imp_closesocket'
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(bss_sock.o):bss_sock.c:(.text+0x1b6): undefined reference to `__imp_WSASetLastError'
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(bss_sock.o):bss_sock.c:(.text+0x1c9): undefined reference to `__imp_send'
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(bss_sock.o):bss_sock.c:(.text+0x1fc): undefined reference to `__imp_WSAGetLastError'
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(bss_sock.o):bss_sock.c:(.text+0x297): undefined reference to `__imp_WSASetLastError'
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(bss_sock.o):bss_sock.c:(.text+0x2aa): undefined reference to `__imp_send'
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(bss_sock.o):bss_sock.c:(.text+0x2dc): undefined reference to `__imp_WSAGetLastError'
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(bss_sock.o):bss_sock.c:(.text+0x350): undefined reference to `__imp_WSASetLastError'
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(bss_sock.o):bss_sock.c:(.text+0x363): undefined reference to `__imp_recv'
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(bss_sock.o):bss_sock.c:(.text+0x3c2): undefined reference to `__imp_WSAGetLastError'
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(bss_sock.o):bss_sock.c:(.text+0x48a): undefined reference to `__imp_WSAGetLastError'
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+0xe0): 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+0x160): 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+0x56f): undefined reference to `__imp_CertGetCertificateContextProperty'
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+0xafe): undefined reference to `__imp_CertGetCertificateContextProperty'
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+0xc4e): 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+0xd01): undefined reference to `__imp_CertFindCertificateInStore'
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+0x2d50): 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+0x2d80): 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+0x2e81): undefined reference to `__imp_CertDuplicateCertificateContext'
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+0x2eee): 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+0x2f8a): 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+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

apn

unread,
Oct 30, 2021, 1:29:36 AM10/30/21
to
On 10/29/2021 4:52 PM, P8j6 wrote:
> configure:5314: result: openssl
> configure:5556: checking if a basic OpenSSL program works
> configure:5578: gcc -o conftest.exe -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 -I/C/openssl/include -mms-bitfields -IC:/tcl/include -I/C/openssl/include conftest.c -L/C/openssl/lib -lssl -lcrypto -LC:/tcl/lib -ltclstub86 -L/C/openssl/lib -lssl -lcrypto >&5
> 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(b_addr.o):b_addr.c:(.text+0xad): undefined reference to `__imp_getnameinfo'
For some reason, your set up is not linking against ws2_32.lib hence the
undefined symbols. Here the line from my build -

configure:5556: checking if a basic OpenSSL program works
configure:5578: gcc -o conftest.exe -g -O2 -mms-bitfields
-I/d/tcl/8610-mingw/x64/include -Wno-unused-value -Wno-unused-parameter
-Wno-deprecated-declarations -Wall -W -Wno-self-assign
-fstack-protector-all -fno-strict-overflow -IC:/msys64/mingw64/include
-mms-bitfields -I/d/tcl/8610-mingw/x64/include
-IC:/msys64/mingw64/include conftest.c -LC:/msys64/mingw64/lib
-LC:/msys64/mingw64/lib -Wl,-Bstatic -LC:/msys64/mingw64/lib -lssl
-LC:/msys64/mingw64/lib -lws2_32 -lgdi32 -lcrypt32 -lcrypto -lws2_32
-lgdi32 -lcrypt32 -Wl,-Bdynamic -Wl,-Bstatic -lssp -Wl,-Bdynamic
-static-libgcc -L/d/tcl/8610-mingw/x64/lib -ltclstub86
-LC:/msys64/mingw64/lib -LC:/msys64/mingw64/lib -Wl,-Bstatic
-LC:/msys64/mingw64/lib -lssl -LC:/msys64/mingw64/lib -lws2_32 -lgdi32
-lcrypt32 -lcrypto -lws2_32 -lgdi32 -lcrypt32 -Wl,-Bdynamic >&5

As you can see, all the Windows libraries are missing from your command
line, not sure why. (I just realized from the above that libraries are
duplicated in my build, not sure why, but should not matter.) Also, I'm
building statically. Here is the exact batch file I'm using to build
from CMD prompt (not the mingw shell, hence you can ignore the stuff
preceding the ../configure, and the funny quoting)

pushd tcltls-%TLSVER%
mkdir build-%MAGICARCH%
cd build-%MAGICARCH%
if NOT EXIST dh_params.h call "%MINGWROOT%\msys2_shell.cmd" -defterm
-no-start -here %MINGWARCHOPT% -l -c "../configure --enable-static-ssl
--prefix=""%MAGICDISTROUNIX%""
--with-tcl=d:/tcl/mingw-8610/%MAGICARCH%/lib LIBS=""-Wl,-Bstatic -lssp
-Wl,-Bdynamic -static-libgcc"""
call "%MINGWROOT%\msys2_shell.cmd" -defterm -no-start -here
%MINGWARCHOPT% -l -c make
call "%MINGWROOT%\msys2_shell.cmd" -defterm -no-start -here
%MINGWARCHOPT% -l -c "make install"
copy /y ..\tls.htm "%MAGICDISTRO%\lib\tcltls%TLSVER%\tls.htm
popd
if NOT "%1" == "" goto done

I don't understand why you don't see the Windows libraries in your link
line though but hope that helps tracking it down.

/Ashok

apn

unread,
Oct 30, 2021, 1:33:19 AM10/30/21
to
One other thing, did you build Tcl itself with VC++ or MingW? It should
have been built with mingw if your tcltls is also using mingw

P8j6

unread,
Nov 1, 2021, 2:18:07 PM11/1/21
to
Dne sobota 30. října 2021 v 7:33:19 UTC+2 uživatel apn napsal:
> One other thing, did you build Tcl itself with VC++ or MingW? It should
> have been built with mingw if your tcltls is also using mingw

Tcl is build with mingw. I builded it in the same envirnment, just ot be sure.

But thanks! You pointed me in the right direction. I solved it by exporting LIBS variable, to tell the build system implicitly which libraries are needed.

export LIBS="-lws2_32 -lgdi32 -lcrypt32 -lcrypto"
./configure --with-tcl=/C/tcl/lib --with-openssl-dir=/C/openssl --disable-hardening

And tcltls compiled succesfuly.
Probably not the perfect solution, but it works :)

Harald Oehlmann

unread,
Nov 3, 2021, 4:08:13 AM11/3/21
to
Dear P8j6,

thank you for the message. This is an unrelated message not answering
your question. It gives background information about the usage.
- are you aware of twapi which is often the better TLS package on
Windows (see also the fabulous blog by Ashok) ?
https://www.magicsplat.com/blog/tcltls/
- you asked about msys build chain, which is ok. In case, MS-VC build
chaoin is ok, you may look into this ticket:
https://core.tcl-lang.org/tcltls/tktview?name=604bb68b5c
- there are folks working on the TLS build system to make it more TEA
compliant. Any help is appreciated. We often have complaints that
building TLS is difficult and not TEA-compliant.

Take care,
Harald
0 new messages