Topic: [SOLVED] Getting compilation errors for wolfssl-3.12.0 with TLS 1.3

Observed below compilation errors with the following commands,
./configure --enable-tls13
make

src/.libs/libwolfssl.so: undefined reference to `wc_ecc_free'
collect2: error: ld returned 1 exit status
make[1]: *** [examples/client/client] Error 1
make[1]: *** Waiting for unfinished jobs....
src/.libs/libwolfssl.so: undefined reference to `wc_ecc_free'
collect2: error: ld returned 1 exit status
make[1]: *** [wolfcrypt/benchmark/benchmark] Error 1
src/.libs/libwolfssl.so: undefined reference to `wc_ecc_free'
collect2: error: ld returned 1 exit status
make[1]: *** [examples/echoserver/echoserver] Error 1
src/.libs/libwolfssl.so: undefined reference to `wc_ecc_free'
collect2: error: ld returned 1 exit status
make[1]: *** [examples/echoclient/echoclient] Error 1
src/.libs/libwolfssl.so: undefined reference to `wc_ecc_free'
collect2: error: ld returned 1 exit status
make[1]: *** [wolfcrypt/test/testwolfcrypt] Error 1
make: *** [all] Error 2

Share

Re: [SOLVED] Getting compilation errors for wolfssl-3.12.0 with TLS 1.3

Hi Ravi,

The ECC algorithm is only on by default wit the `x86_64` platform. Please try using `./configure --enable-ecc --enable-tls13`. If that doesn't work can you provide the wolfSSL version (or Git commit #) along with which platform you are building on?

Thanks,
David Garske, wolfSS

Share

Re: [SOLVED] Getting compilation errors for wolfssl-3.12.0 with TLS 1.3

David Garske,

Thank you for your quick response. Now it is compiling with your suggestion.

Regards,
Ravi.

Share

Re: [SOLVED] Getting compilation errors for wolfssl-3.12.0 with TLS 1.3

Hi Ravi,

Thanks for the report. I was able to reproduce a build error with `./configure --disable-ecc -enable-tls13 && make`, so I've issued a PR for it here:
https://github.com/wolfSSL/wolfssl/pull/1187
https://github.com/wolfSSL/wolfssl/pull … 639fbL5059

Marking this forum case as solved.

Thanks,
David Garske, wolfSSL

Share

Re: [SOLVED] Getting compilation errors for wolfssl-3.12.0 with TLS 1.3

hello, after this i have a problem with  make test and fail with tls1.3

Share

Re: [SOLVED] Getting compilation errors for wolfssl-3.12.0 with TLS 1.3

Hi swessidorsaf,

Have you downloaded the latest v3.12.2 release we just posted?
https://github.com/wolfSSL/wolfssl/rele … 2.2-stable

If you are getting a "make check" error can you provide the ./configure string you are using the the platform/OS?

Thanks,
David Garske, wolfSSL

Share

Re: [SOLVED] Getting compilation errors for wolfssl-3.12.0 with TLS 1.3

hello, yes i downloaded the letest version and i have the same problem with v3.12.2 and v3.12.0
this is the ./configure that i provide : ./configure --enable-ecc --enable-tls13


and this is the  output when i make test
sudo make test
make -j2  check-am
make[1]: Entering directory '/home/dorra/Downloads/wolfssl-3.12.2'
make -j2   testsuite/testsuite.test tests/unit.test   scripts/resume.test scripts/tls-cert-fail.test        scripts/tls13.test scripts/external.test scripts/google.test scripts/openssl.test
make[2]: Entering directory '/home/dorra/Downloads/wolfssl-3.12.2'
make[2]: warning: -jN forced in submake: disabling jobserver mode.
make[2]: Nothing to be done for 'scripts/resume.test'.
make[2]: Nothing to be done for 'scripts/tls-cert-fail.test'.
make[2]: Nothing to be done for 'scripts/tls13.test'.
make[2]: Nothing to be done for 'scripts/external.test'.
make[2]: Nothing to be done for 'scripts/google.test'.
make[2]: Nothing to be done for 'scripts/openssl.test'.
make[2]: 'tests/unit.test' is up to date.
make[2]: Leaving directory '/home/dorra/Downloads/wolfssl-3.12.2'
make -j2  check-TESTS
make[2]: Entering directory '/home/dorra/Downloads/wolfssl-3.12.2'
make[2]: warning: -jN forced in submake: disabling jobserver mode.
make[3]: Entering directory '/home/dorra/Downloads/wolfssl-3.12.2'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
PASS: scripts/tls-cert-fail.test
FAIL: scripts/tls13.test
PASS: scripts/resume.test
PASS: scripts/external.test
PASS: scripts/openssl.test
PASS: scripts/google.test
FAIL: testsuite/testsuite.test
FAIL: tests/unit.test
============================================================================
Testsuite summary for wolfssl 3.12.2
============================================================================
# TOTAL: 8
# PASS:  5
# SKIP:  0
# XFAIL: 0
# FAIL:  3
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to https://github.com/wolfssl/wolfssl/issues
============================================================================
Makefile:4006: recipe for target 'test-suite.log' failed
make[3]: *** [test-suite.log] Error 1
make[3]: Leaving directory '/home/dorra/Downloads/wolfssl-3.12.2'
Makefile:4112: recipe for target 'check-TESTS' failed
make[2]: *** [check-TESTS] Error 2
make[2]: Leaving directory '/home/dorra/Downloads/wolfssl-3.12.2'
Makefile:4325: recipe for target 'check-am' failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory '/home/dorra/Downloads/wolfssl-3.12.2'
Makefile:4328: recipe for target 'check' failed
make: *** [check] Error 2

Share