You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using WOLFSSL_LEAN_TLS causes a transient compilations issue when WOLFSSL_MEMORY=OFF is not provided. The compilation will initially fail with the error given in the logs section, but touching any file that would trigger recompilation of WolfSSL will cause subsequent compilations to succeed. At first glance, CMakeLists.txt:1133 appears to be a bad assumption as the only difference between runs is that WOLFSSL_MEMORY=OFF is in the cache. Both removing the conditional as well as adding the list command in place of this line fix the issue.
Reproduction steps
Create a new directory with the attached files (CMakeLists.txt and save C code below as "repro.c" - cannot upload due to GitHub restrictions...)
Undefined symbols for architecture arm64:
"_wolfSSL_Free", referenced from:
_wc_HashNew in hash.c.o
_wc_HashDelete in hash.c.o
_wc_rng_new in random.c.o
__InitRng in random.c.o
_wc_rng_new_ex in random.c.o
_wc_rng_free in random.c.o
_wc_FreeRng in random.c.o
...
"_wolfSSL_Malloc", referenced from:
_wc_HashNew in hash.c.o
_wc_rng_new in random.c.o
__InitRng in random.c.o
_wc_rng_new_ex in random.c.o
__sp_invmod_mont_ct in sp_int.c.o
__sp_exptmod_nct in sp_int.c.o
_wc_AesNew in aes.c.o
...
"_wolfSSL_Realloc", referenced from:
_wolfSSL_EVP_CipherUpdate_GCM in ssl.c.o
_wolfSSL_EVP_PKEY_CTX_add1_hkdf_info in ssl.c.o
_ECC_populate_EVP_PKEY in ssl.c.o
_wolfssl_asn1_bit_string_grow in ssl.c.o
_wolfSSL_BIO_set_conn_hostname in ssl.c.o
_wolfSSL_BUF_MEM_resize in ssl.c.o
_wolfSSL_X509_set_ext in ssl.c.o
...
ld: symbol(s) not found for architecture arm64
cc: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [_deps/wolfssl-build/libwolfssl.43.0.0.dylib] Error 1
make[1]: *** [_deps/wolfssl-build/CMakeFiles/wolfssl.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
I'm willing to create a merge request for either of the fixes, but I lack the larger context of why this comment was made (and don't know who else is depending on its current behavior).
@embhorn, the project that raised this issue is an attempt at a lightweight equivalent of stunnel and is mostly just some tinkering to get a feel for integrating wolfSSL into a project. My longer-term side project is to poke at using it with ngtcp2 for QUIC support to get more hands-on with QUIC and test out some other ideas.
Contact Details
[email protected]
Version
5.7.6-stable
Description
Using
WOLFSSL_LEAN_TLS
causes a transient compilations issue whenWOLFSSL_MEMORY=OFF
is not provided. The compilation will initially fail with the error given in the logs section, but touching any file that would trigger recompilation of WolfSSL will cause subsequent compilations to succeed. At first glance,CMakeLists.txt:1133
appears to be a bad assumption as the only difference between runs is thatWOLFSSL_MEMORY=OFF
is in the cache. Both removing the conditional as well as adding thelist
command in place of this line fix the issue.Reproduction steps
CMakeLists.txt
and save C code below as "repro.c" - cannot upload due to GitHub restrictions...)cmake -B build -DWOLFSSL_LEAN_TLS=ON .
cmake --build build
CMakeLists.txt
Relevant log output
The text was updated successfully, but these errors were encountered: