Deutsch   English   Français   Italiano  
<104meek$cat7$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: nntp.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Alan Grunwald <nospam.nurdglaw@gmail.com>
Newsgroups: comp.lang.tcl
Subject: Re: Can't build TclTLS 2.0b1 - SOLVED
Date: Wed, 9 Jul 2025 20:02:35 +0100
Organization: A noiseless patient Spider
Lines: 64
Message-ID: <104meek$cat7$1@dont-email.me>
References: <1049lbt$12gnk$1@dont-email.me>
 <0567ed22-5320-4ee4-b8bb-6f94ae0b37ae@comcast.net>
 <104dtd8$277hu$1@dont-email.me> <104ec79$2am3h$1@dont-email.me>
 <104ej6j$2d4at$1@dont-email.me> <104hfo2$34c9v$1@dont-email.me>
 <104hjol$352sa$1@dont-email.me> <104j517$3is7p$1@dont-email.me>
 <104jc8i$3knji$1@dont-email.me> <ygafrf6zk31.fsf@akutech.de>
 <104kh2e$3rlhc$1@dont-email.me> <ygabjptztlc.fsf@akutech.de>
 <104lvn6$9ji3$1@dont-email.me> <yga7c0hz26p.fsf@akutech.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 09 Jul 2025 21:03:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="80a062a6d4036942de2e31b92bd599e2";
	logging-data="404391"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+MZERE2t00er1ffVY8B31mFm0fX1X9iRY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:3hYzODAoVUUgq1aK875KxWnaIYI=
Content-Language: en-US
In-Reply-To: <yga7c0hz26p.fsf@akutech.de>

On 09/07/2025 18:47, Ralf Fassel wrote:
> * Alan Grunwald <nospam.nurdglaw@gmail.com>
> | In file included from /usr/include/openssl/ssl.h:21,
> |                  from ./generic/tlsInt.h:31,
> |                  from ./generic/tls.c:26:
> | /usr/include/openssl/macros.h:155:4: error: #error "OPENSSL_API_COMPAT
> | expresses an impossible API compatibility level"
> |   155 | # error "OPENSSL_API_COMPAT expresses an impossible API
> |   compatibility level"
> |       |    ^~~~~
>>
> | Good news - no trace of /usr/local/include
> | Bad news is obvious.
> --<snip-snip>--
>>
> | The error (at line 155) that does trigger indicates that
> | OPENSSL_API_LEVEL < 908 which I don't understand, since it seems to me
> | after reading macros.h several times in different directions that
> | since OPENSSL_API_COMPAT isn't defined, OPENSSL_API_LEVEL should be
> | set to
> | OPENSSL_CONFIGURED_API, i.e. 30000.
> 
> - Start from scratch (delete and re-extract the tcltls sources, make
>    absolutely sure to use only one TCL version, re-configure tcltls).
> 
> - Temporarily rename the /usr/local/include/openssl (probably add a
>    00README.txt in /usr/local/include)
> 
> - if the error persists, try to find out what the macro
>    OPENSSL_API_LEVEL is set to:
> 
>    use this little hack from Stackoverflow:
> 
>      #define STR_HELPER(x) #x
>      #define STR(x) STR_HELPER(x)
> 
>      #define AAA 123
>      #pragma message "content of AAA: " STR(AAA)
> 
>   (just make a backup copy of openssl/macros.h and add that #pragma at
>   strategic places)
> 
> - or just #define OPENSSL_API_COMPAT to the default value (30000)
> 
> Needless to say that on my system (opensuse 15.6, gcc 7.5.0), tcltls
> 2.0b1 configured and compiled with no problem against either tcl8.6 or
> tcl9.0.2.
> 
> R'

:blush:

While looking at what I'd need to do to clear things down and start 
again from scratch, I spotted that I had downloaded openssl_1.1.1 myself 
in January 2023. Buoyed by this discovery, I did

make uninstall

from the openssl_1.1.1 download directory, then started again with 
tcltls 2.0b1, which... compiled and linked with no problem.

Many, many thanks to Ralf, Brian and Ashok.

Alan