FS#70173 - [julia] julia 1.6 cannot find libmbedcrypto.so.5

Attached to Project: Community Packages
Opened by bob (getzze) - Friday, 26 March 2021, 10:17 GMT
Last edited by Antonio Rojas (arojas) - Friday, 26 March 2021, 12:23 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
`mbedtls` package on Arch ships `libmbedcrypto.so.6` whereas julia 1.6 needs `libmbedcrypto.so.5` for `MbedTLS_jll` package in stdlib.

It is defined in this file: `/usr/share/julia/stdlib/v1.6/MbedTLS_jll/src/MbedTLS_jll.jl`:40

Solution: I changed s/libmbedcrypto.so.5/libmbedcrypto.so.6/ in the former file and it is compiling.
There may be compatibility issues, although it runs ok with my code.


Additional info:
julia 2:1.6.0-3
mbedtls 2.25.0-1

Steps to reproduce:

```julia
julia> using JuMP
[ Info: Precompiling JuMP [4076af6c-e467-56ae-b986-b466b2749572]
ERROR: LoadError: LoadError: LoadError: InitError: could not load library "libmbedcrypto.so.5"
libmbedcrypto.so.5: cannot open shared object file: No such file or directory
Stacktrace:
[1] __init__()
@ MbedTLS_jll /usr/share/julia/stdlib/v1.6/MbedTLS_jll/src/MbedTLS_jll.jl:40
```


After changing `/usr/share/julia/stdlib/v1.6/MbedTLS_jll/src/MbedTLS_jll.jl`:
```
julia> using JuMP
[ Info: Precompiling JuMP [4076af6c-e467-56ae-b986-b466b2749572]

```
This task depends upon

Closed by  Antonio Rojas (arojas)
Friday, 26 March 2021, 12:23 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#70164 
Comment by Antonio Rojas (arojas) - Friday, 26 March 2021, 10:50 GMT
Are you sure that you are using 2:1.6.0-3 ?
Comment by bob (getzze) - Friday, 26 March 2021, 12:14 GMT
Indeed I was using 2:1.6.0-2 and it is solved with 2:1.6.0-3.
Sorry for misreporting.

Loading...