Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cant build on linux with boring-tls or rquest #489

Open
MacAlistair-r opened this issue Jan 18, 2025 · 1 comment
Open

I cant build on linux with boring-tls or rquest #489

MacAlistair-r opened this issue Jan 18, 2025 · 1 comment

Comments

@MacAlistair-r
Copy link

Hello.

I have been add my current toml file.

I can use socketio-rs but it is outdated and has huge bugs. I need to switch to rust-socketio but when I import it, it works on mac but, I always get TLS error on linux.

There is a conflict, I need to disable somehow this rust-socketio's TLS library's.

Or I dont know if there is another solution.

tokio = { version = "1", features = ["full"] }
socketio-rs = "0.1.8"
serde = { version = "1.0", features = ["derive"] }
rquest = { version = "0.27", features = ["boring-tls", "cookies"] }
hyper2 = "=0.14.62"
boring = { package = "boring2", version = "=4.12.0", default-features = false }
boring-sys2 = "=4.12.0"
http = "0.2"
chrono = "0.4"
engineio-rs = "0.1.5"
rand = "0.8"
flate2 = "1.0"
percent-encoding = "2.1.0"
brotli = "3.3.4"
futures = "0.3.31"
rust-crypto = { version = "0.2.36", default-features = false }
hex = "0.4.3"
scopeguard = "1.1"

@MacAlistair-r
Copy link
Author

error: linking with cc failed: exit status: 1
#14 106.7 |
#14 106.7 = note: LC_ALL="C" PATH="/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcal90mA/symbols.o"

arget/release/deps/libopenssl_sys-f4afbd0dbc527e3f.rlib(openssl_sys-f4afbd0dbc527e3f.openssl_sys.4d9d357f231a28a-cgu.0.rcgu.o): in function openssl_sys::openssl::ssl::SSL_CTX_set_max_proto_version': #14 106.7 openssl_sys.4d9d357f231a28a-cgu.0:(.text._ZN11openssl_sys7openssl3ssl29SSL_CTX_set_max_proto_version17hc1a8c98ec06e77beE+0xc): undefined reference to SSL_CTX_ctrl'
#14 106.7 collect2: error: ld returned 1 exit status
#14 106.7
#14 106.7 = note: some extern functions couldn't be found; some native libraries may need to be installed or have their path specified
#14 106.7 = note: use the -l flag to specify native libraries to link
#14 106.7 = note: use the cargo:rustc-link-lib directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant