Open
Description
Yesterday I got the automatic update to 1.2.2. Before that compiling worked just fine, with the update I get this:
_main.o: In Funktion »->«:
/snap/crystal/963/share/crystal/src/openssl/bio.cr:68: Warnung: undefinierter Verweis auf »BIO_set_shutdown«
/snap/crystal/963/share/crystal/src/openssl/bio.cr:68: Warnung: undefinierter Verweis auf »BIO_set_init«
O-penS-S-L-5858B-I-O-.o: In Funktion »get_data«:
/snap/crystal/963/share/crystal/src/openssl/bio.cr:6: Warnung: undefinierter Verweis auf »BIO_get_data«
O-penS-S-L-5858B-I-O-.o: In Funktion »set_data«:
/snap/crystal/963/share/crystal/src/openssl/bio.cr:14: Warnung: undefinierter Verweis auf »BIO_set_data«
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o /home/[...]/sth -rdynamic -L/snap/crystal/963/bin/../lib/crystal -lz `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'` -lsqlite3 -lpcre -lm -lgc -lpthread -levent -lrt -ldl`
Reinstalling didn't help.
Also on crystal snap the old versions are not available, so I couldn't rollback.
I then installed crystal via apt
(https://crystal-lang.org/install/on_ubuntu/ and https://software.opensuse.org/download.html?project=devel%3Alanguages%3Acrystal&package=crystal) and now it's working again for me.
I use Ubuntu 18.04.
As an aside, both versions still use the old LLVM 10.0.0 (see #11342).