Sujet : Re: Can't build TclTLS 2.0b1
De : brian199 (at) *nospam* comcast.net (Brian)
Groupes : comp.lang.tclDate : 08. Jul 2025, 00:03:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <104hjol$352sa$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Mozilla Thunderbird
On 7/7/25 4:53 PM, Alan Grunwald wrote:
On 06/07/2025 20:35, Brian wrote:
On 7/6/25 12:35 PM, Alan Grunwald wrote:
On 06/07/2025 14:22, Alan Grunwald wrote:
On 06/07/2025 02:09, Brian wrote:
>
>
So the configure script worked exactly as you specified. You only provided the --with-openssl-includedir option, so only that path was overridden from the default. The default is a blank which means find it in the default paths.
>
However, I don't think that's your issue. The issue is you don't know where you installed OpenSSL. From your emails it could be the default one in /usr and your email today suggests it could be in /usr/local. You need to find where the openssl executable, ssl.h, and libssl.so are located, then use the 3 options to point to those locations. Make sure not to include /openssl in the include path since its in the #include already. My example provided the location where these are in OpenSUSE. The README.txt file has more info on all of the options.
>
I'd also suggest doing a 'make clean' and 'make distclean' to remove any temp files with old path config info. I also suggest using all of the TCL options to point to the TCL 9.0.2 directory so it doesn't accidentally find the TCL 8.6 install. The tcl.m4 file is configured to be very aggressive about using wherever is in the default paths.
>
>
Hi Brian,
I think I have two versions of OpenSSL installed -
I have two openssl executables - /usr/bin/openssl and /usr/local/bin/ openssl,
two copies of ssl.h - /usr/local/include/openssl/ssl.h and / usr/include/openssl/ssl.h
and two copies of libssl.so - /usr/lib/x86_64-linux-gnu/libssl.so and /usr/local/lib/libssl.so
Looking at the versions of the two openssl executables,
$ /usr/local/bin/openssl version
OpenSSL 1.1.1 11 Sep 2018
$ /usr/bin/openssl version
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)
Checking the content of the two bio.h files that sit alongside the ssl.h files, only /usr/include/openssl/bio.h defines BIO_FLAGS_IN_EOF
FWIW /usr/local/bin appears before /usr/bin in my PATH.
$ ls -l /usr/bin/openssl /usr/local/bin/openssl /usr/lib/x86_64-linux- gnu/libssl.so /usr/local/lib/libssl.so /usr/local/include/openssl/ ssl.h /usr/include/openssl/ssl.h /usr/lib/x86_64-linux-gnu/libssl.so.3 / usr/local/lib/libssl.so.1.1
-rwxr-xr-x 1 root root 1001272 Feb 5 13:19 /usr/bin/openssl
-rw-r--r-- 1 root root 124376 Feb 5 13:19 /usr/include/openssl/ssl.h
lrwxrwxrwx 1 root root 11 Feb 5 13:19 /usr/lib/x86_64-linux-gnu/ libssl.so -> libssl.so.3
-rw-r--r-- 1 root root 667864 Feb 5 13:19 /usr/lib/x86_64-linux-gnu/ libssl.so.3
-rwxr-xr-x 1 root root 870432 Jan 16 2023 /usr/local/bin/openssl
-rw-r--r-- 1 root root 110319 Jan 16 2023 /usr/local/include/openssl/ ssl.h
lrwxrwxrwx 1 root root 13 Jan 16 2023 /usr/local/lib/libssl.so -> libssl.so.1.1
-rwxr-xr-x 1 root root 700296 Jan 16 2023 /usr/local/lib/libssl.so.1.1
What do you recommend I use as a configure command line, judging by the location of the various openssl files, I think the following is suitable, although I haven't addressed your concerns about getting the right Tcl installation.
./configure --enable-64bit --prefix=/opt.tcl9.0.2 --exec-prefix=/opt/ tcl9.0.2 --with-openssl-includedir=/usr/ --with-openssl-libdir=/usr/lib/ x86_64-linux-gnu --with-openssl-dir=/usr/bin
It's getting too late for me to trust myself to type this command in before tomorrow morning, but I am concerned that as far as I can make out, the changes you've recommended affect the *link* part of the process, but I am seeing problems with the *compile* steps.
Many thanks - I'll see what I see tomorrow :-)
Alan
Yes, that's it. You have 2 versions and the ancient 1.1.1 version is in /usr/local, which appears before /usr in the path. So you need to override that. I seem to recall from the earlier discussion that may have been the first 1.1.1 release which is missing some things. Anyway, I would not use such an outdated and insecure version. I'd suggest the following for the configure options, though check if --libdir is correct for you. You want it to point to the location of the tclConfig.sh file.
./configure --enable-64bit --prefix=/opt/tcl9.0.2 --exec-prefix=/opt/tcl9.0.2 --libdir=/opt/tcl9.0.2/lib64/tcl --with-openssl-dir=/usr --with-openssl-includedir=/usr/include --with-openssl-libdir=/usr/lib/x86_64-linux-gnu