wsta icon indicating copy to clipboard operation
wsta copied to clipboard

Support libressl

Open fentas opened this issue 8 years ago • 7 comments

I try to use wsta within docker alpine. For that I installed libssl1.0 as it is required. But if I try to use it I get

wsta: /usr/lib/libssl.so.1.0.0: no version information available (required by wsta)
wsta: /usr/lib/libcrypto.so.1.0.0: no version information available (required by wsta)
wsta: Relink `/lib/libz.so.1' with `/usr/glibc-compat/lib/libc.so.6' for IFUNC symbol `memset'

Do you know any solution to this? Thanks.

fentas avatar Apr 18 '17 14:04 fentas

Doesn't alpine use libressl? Tried to make that work before, but to no avail, so it only supports openssl for now

eliihen avatar Apr 18 '17 14:04 eliihen

The libressl not working thing is mostly because rust-openssl didnt support it. It does now, but that was only introduced at version 0.9.4, and wsta currently uses 0.7.14.

Updating dependencies should therefore make it work for libressl. A lot of things have happened in the dependency world since then, however, and it will probably require a bit of work to make it happen.

eliihen avatar Apr 18 '17 15:04 eliihen

I wouldn't know how to help you. I need a cli websocket utility which works with alpine. :/

Thanks for your effort.

fentas avatar Apr 18 '17 15:04 fentas

Try wscat. It should work if you have node installed. I guess you also could run wsta from a container

eliihen avatar Apr 18 '17 18:04 eliihen

I compared a lot and there is no real contender for wsta right now. I switched to debian:jessie for now an wait in hope that wsta will work within alpine someday. :+1:

fentas avatar Apr 19 '17 06:04 fentas

I had a look around again. Currently, I do something like this:

# Redirect stdout ( > ) into a named pipe ( >() )
exec > >(wsta -H "authorization: $(cat /run/secrets/authorization)" "${WSS}")

I can not do this with any other library.

fentas avatar Jul 01 '17 13:07 fentas

I'll get back to this eventually, right now I'm mostly focused on the RESTED project. I would merge a PR if anyone else would like to fix this in the mean time

eliihen avatar Jul 01 '17 15:07 eliihen