Comments (7)
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.
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.
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.
@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.
Pull request sent for bin/Makefile
from s2n-tls.
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.
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)
- Integ test bloat
- Make S2N_CERT_AUTH_OPTIONAL the default for clients
- Support loading DER-encoded certificates and private keys
- consider adding a default negotiate timeout
- enforce result checking for s2n_stuffer methods
- Unpin dependencies after bumping MSRV beyond 1.70
- add visible debugging information for CI runs
- old libfuzzer used in CI
- old cppcheck used in CI
- Add schannel to integration tests HOT 1
- docs: Rust bindings need an explanation for Send/Sync impls HOT 1
- Add rustls to integration tests HOT 3
- test: SSLv2 integ test
- s2n_tls13_cert_verify_test doesn't run all cases HOT 1
- certificate_signature_preferences field contains unnecessary information HOT 2
- UBSAN triggers on `is_available` getting passed an incorrect function type HOT 5
- version 1.4.5: s2n_shutdown_test fail HOT 2
- clang format all .c and .h files
- make it easier to evaluate the impacts of changing security policies
- Clarify return values of IO APIs in the API documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s2n-tls.