Giter Site home page Giter Site logo

Comments (7)

sanderjo avatar sanderjo commented on May 16, 2024

Update: In bin/Makefile I changed

    LIBS = -ldl -lrt -lpthread

to

    LIBS = -ldl -lrt -lpthread -lcrypto

and then the make goes well ... up until the tests:

make[2]: Entering directory `/git/s2n/tests/unit'
Running s2n_3des_test.c                                    ... PASSED      27245 tests

Running s2n_aead_aes_test.c                                ... PASSED   49579370 tests
Running s2n_aes_test.c                                     ... PASSED      54184 tests
Running s2n_cbc_verify_test.c                              ... PASSED    8641804 tests
Running s2n_cipher_suite_match_test.c                      ... PASSED          4 tests
Running s2n_client_disabled_test.c                         ... PASSED          4 tests
Running s2n_client_extensions_test.c                       ... FAILED test 170
!((client_conn = s2n_connection_new(S2N_CLIENT)) == (((void *)0))) is not true  (s2n_client_extensions_test.c line 470)
Error Message: 'error calling mlock'
make[2]: *** [s2n_client_extensions_test] Error 1
make[2]: Leaving directory `/git/s2n/tests/unit'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/git/s2n/tests'
make: *** [all] Error 2

from s2n-tls.

mehlis avatar mehlis commented on May 16, 2024

can reproduce this problem on my Fedora, your fix is working for me, too.

Test is aborts with:

make[2]: Entering directory '/home/c/git/public/s2n/tests/unit'
Running s2n_record_test.c                                  ... PASSED     179816 tests
Running s2n_stuffer_hex_test.c                             ... PASSED        317 tests
Running s2n_aes_test.c                                     ... PASSED      54184 tests
Running s2n_stuffer_base64_test.c                          ... PASSED        465 tests
Running s2n_handshake_test.c                               ... FAILED test 43
!((server_conn = s2n_connection_new(S2N_SERVER)) == (((void *)0))) is not true  (s2n_handshake_test.c line 136)
Error Message: 'error calling mlock'

from s2n-tls.

colmmacc avatar colmmacc commented on May 16, 2024

This failure is likely because the ulimits on the amount of memory that may be locked are too low for the tests to pass.

from s2n-tls.

sanderjo avatar sanderjo commented on May 16, 2024

@colmmacc I re-ran on a 4GB system (instead of on a 1 - 2GB RAM docker container), and with the Makefile patch ... all tests pass! So your memory statement seems correct.

from s2n-tls.

sanderjo avatar sanderjo commented on May 16, 2024

Pull request sent for bin/Makefile

from s2n-tls.

anatol avatar anatol commented on May 16, 2024

I have the same compilation issue at Linux Arch. This bug is closed but I do not see that the proposed fix is submitted to trunk.

Any plans to submit the actual fix?

from s2n-tls.

colmmacc avatar colmmacc commented on May 16, 2024

Reading the first report in this thread it looks like an attempt to build against the system version of OpenSSL rather than a bundled static libcrypto.a. The problem is that libs2n.so hasn't included libcrypto.a , which is pretty important.

Is there a good recipe to ensure that libs2n is linked against the system libcrypto.a if that's what you'd like to do?

from s2n-tls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.