aiken-lang / aiken

A modern smart contract platform for Cardano
https://aiken-lang.org
Apache License 2.0
396 stars 82 forks source link

libssl issues post 1.0.26-xxx (can't upgrade to 1.0.28/1.0.29) #958

Closed ross-spencer closed 1 month ago

ross-spencer commented 1 month ago

What Git revision are you using?

2.34.1

What operating system are you using, and which version?

Describe what the problem is?

aikup doesn't result in a working Aiken upgrade:

$ aikup

 ░█▀▀▄░▀█▀░▒█░▄▀░▒█▀▀▀░▒█▄░▒█             Modern and modular toolkit
 ▒█▄▄█░▒█░░▒█▀▄░░▒█▀▀▀░▒█▒█▒█       for Cardano Smart Contract development.
 ▒█░▒█░▄█▄░▒█░▒█░▒█▄▄▄░▒█░░▀█                  Written in Rust.

 repo: https://github.com/aiken-lang/aiken
 docs: https://aiken-lang.org
 chat: https://discord.gg/Vc3x8N9nz2
 contribute: https://github.com/aiken-lang/aiken/blob/main/CONTRIBUTING.md

aikup: no version specified; installing latest
aikup: downloading v1.0.29-alpha
aikup: installed v1.0.29-alpha
aikup: switched v1.0.29-alpha
ross-spencer@exponential-decay:~/git/orcfax/orcfax-types-aiken$ aiken check
aiken: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

What should be the expected behavior?

Aikup results in a working aiken:

ross-spencer@exponential-decay:~/git/orcfax/orcfax-types-aiken$ aikup clean
aikup: removing versions
ross-spencer@exponential-decay:~/git/orcfax/orcfax-types-aiken$ aikup list
aikup: available versions

v1.0.29-alpha
v1.0.28-alpha
v1.0.26-alpha
v1.0.25-alpha
v1.0.24-alpha
v1.0.23-alpha
v1.0.21-alpha
v1.0.20-alpha
v1.0.19-alpha
v1.0.18-alpha
v1.0.17-alpha
v1.0.16-alpha
v1.0.15-alpha
v1.0.14-alpha
v1.0.13-alpha
v1.0.12-alpha
v1.0.11-alpha
v1.0.10-alpha
v1.0.8-alpha
v1.0.7-alpha
v1.0.6-alpha
v1.0.5-alpha
v1.0.4-alpha
v1.0.3-alpha
v1.0.2-alpha
v1.0.1-alpha
v1.0.0-alpha
ross-spencer@exponential-decay:~/git/orcfax/orcfax-types-aiken$ aikup install v1.0.26-alpha
aikup: installing v1.0.26-alpha
aikup: downloading v1.0.26-alpha
aikup: installed v1.0.26-alpha
aikup: switched v1.0.26-alpha
ross-spencer@exponential-decay:~/git/orcfax/orcfax-types-aiken$ aiken version
error: unrecognized subcommand 'version'

Usage: aiken <COMMAND>

For more information, try '--help'.

Additional

Is anyone else seeing this? (or have they seen this?)

ross-spencer commented 1 month ago

OpenSSL 1.1.1 can be configured next to OpenSSL 3.0.x in Ubuntu: https://stackoverflow.com/a/73603200 this seems to resolve the issue.

rvcas commented 1 month ago

https://stackoverflow.com/questions/72133316/libssl-so-1-1-cannot-open-shared-object-file-no-such-file-or-directory

AndrewWestberg commented 1 month ago

The github workflow should be updated to build a version on top of Ubuntu 22.04 which will build against libssl3. Then, aikup should choose the correct binary based on the user's operating system level.