Sujet : Re: Can't build TclTLS 2.0b1
De : ralfixx (at) *nospam* gmx.de (Ralf Fassel)
Groupes : comp.lang.tclDate : 09. Jul 2025, 18:47:26
Autres entêtes
Message-ID : <yga7c0hz26p.fsf@akutech.de>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
* 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'