Comments (1)
I modified the BinDeps dependencies.jl
file to see where the error comes from. Line 520, in _find_library
function, I replaced h = Libdl.dlopen_e(l, Libdl.RTLD_LAZY)
by h = Libdl.dlopen(l, Libdl.RTLD_LAZY)
. According to the libdl.jl documentation, dlopen_e
mutes errors.
Then, I built
ulia> Pkg.build("MbedTLS")
INFO: Building MbedTLS
INFO: Recompiling stale cache file /home/imb/gmarqu100p/.julia/lib/v0.4/BinDeps.ji for module BinDeps.
===============================[ ERROR: MbedTLS ]===============================
LoadError: could not load library "/home/imb/gmarqu100p/.julia/v0.4/MbedTLS/deps/src/mbedtls-2.1.1/library/libmbedtls"
/home/imb/gmarqu100p/.julia/v0.4/MbedTLS/deps/src/mbedtls-2.1.1/library/libmbedtls: cannot open shared object file no such file or directory
while loading /home/imb/gmarqu100p/.julia/v0.4/MbedTLS/deps/build.jl, in expression starting on line 74
================================================================================
==============================================================================================[ BUILD ERRORS ]===============================================================================================
WARNING: MbedTLS had build errors.
- packages with build errors remain installed in /home/imb/gmarqu100p/.julia/v0.4
- build the package(s) and all dependencies with `Pkg.build("MbedTLS")`
- build a single package by running its `deps/build.jl` script
=============================================================================================================================================================================================================
So, I modified libraries dependency declaration in build.jl
. I added the so extension despite of what it says on BinDeps documentation.
mbed = library_dependency("libmbedtls.so", aliases=["libmbedtls.so", "libmbedtls.so.2.1.1"])
mbed_crypto = library_dependency("libmbedcrypto.so", aliases=["libmbedcrypto.so", "libmbedcrypto.so.2.1.1"], validate=validate_mbed)
mbed_x509 = library_dependency("libmbedx509.so", aliases=["libmbedx509.so", "libmbedx509.so.2.1.1"])
And built again
julia> Pkg.build("MbedTLS")
INFO: Building MbedTLS
INFO: Recompiling stale cache file /home/imb/gmarqu100p/.julia/lib/v0.4/BinDeps.ji for module BinDeps.
===============================[ ERROR: MbedTLS ]===============================
LoadError: could not load library "/home/imb/gmarqu100p/.julia/v0.4/MbedTLS/deps/src/mbedtls-2.1.1/library/libmbedtls.so"
/home/imb/gmarqu100p/.julia/v0.4/MbedTLS/deps/src/mbedtls-2.1.1/library/libmbedtls.so: mauvaise classe ELF : ELFCLASS64
while loading /home/imb/gmarqu100p/.julia/v0.4/MbedTLS/deps/build.jl, in expression starting on line 74
================================================================================
==============================================================================================[ BUILD ERRORS ]===============================================================================================
WARNING: MbedTLS had build errors.
- packages with build errors remain installed in /home/imb/gmarqu100p/.julia/v0.4
- build the package(s) and all dependencies with `Pkg.build("MbedTLS")`
- build a single package by running its `deps/build.jl` script
=============================================================================================================================================================================================================
The library is found but it looks like I have a 32 bits app trying to load a 64bits library. Indeed, I installed Julia in 32bits. (Note that It works even without the .so).
from mbedtls.jl.
Related Issues (20)
- MbedTLS_jll started failing to load HOT 10
- Cannot create SSLConfig from a single pfx file HOT 1
- Base.lock and Base.unlock not implemented for SSLContext HOT 5
- LoadError: InitError: could not load library "libmbedcrypto.so.5" HOT 1
- Delay after initial write
- No example or function to create an SSLConfig where you need a cert as a client
- TagBot trigger issue HOT 17
- Failure in multi-threaded application with GoogleCloud.jl and HTTP.jl HOT 8
- Init error when running relocatable app HOT 1
- MbedTLS 1.1.1 breaks S3.put_object() HOT 17
- MbedTLS 1.1.1 causing issues for authentication on Azure HOT 14
- Cannot find cert.pem in compiled applications HOT 4
- possible performance issue: tiny packets? HOT 3
- possible performance issue: mbedtls_gcm_update CPU utilization HOT 2
- MbedException or IOError? HOT 1
- `encrypt` method mentioned in the documentation does not actually work
- CPU use skyrockets and program bricks when connection closed by server
- MethodError on findfirst instead of "Certificate verification failed" HOT 2
- MbedTLS changed ABI HOT 1
- Feature Request: add support for TLS PSK (pre-shared key)
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 mbedtls.jl.