Skip to content

Add libssl to RPATH #191

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

Open
nyabinary opened this issue Jan 26, 2025 · 5 comments
Open

Add libssl to RPATH #191

nyabinary opened this issue Jan 26, 2025 · 5 comments

Comments

@nyabinary
Copy link

Prevents situations like this :P
https://discourse.nixos.org/t/github-action-fails-to-find-glibc-while-running-nix-provisioned-rsync/56831/16

@wathiede
Copy link

It seems like this isn't limited to libssl. I'm having a problem where libpq.so.5 can't be found when a binary dynamically linked to it is built w/ fenix.

Is there no workaround from this?

My builds and binaries were working with oxalica's rust-overlay, but I was trying to switch away from that, to fenix, because (ironically) it was including too many dependencies in the derivation.

@Hogeyama
Copy link

Hogeyama commented Mar 23, 2025

I've run into the same issue recently, and I believe the behavior changed starting from Rust nightly 2024-05-18. That version includes a change where rust-lld becomes the default linker for the x86_64-unknown-linux-gnu target.

In my case, updating fenix caused binaries that previously worked to fail at runtime due to missing dynamic libraries like libssl.so.

As a workaround, I was able to disable the implicit use of rust-lld by setting:

export RUSTFLAGS="-Zlinker-features=-lld"

This is described in the linker_features - The Rust Unstable Book.
Hope this helps!

@nyabinary
Copy link
Author

It seems like figsoda is a bit inactive so maybe someone can reach out to nix-community and say they want to co-maintain this?

@nyabinary
Copy link
Author

cc: @Mic92

@Mic92
Copy link
Member

Mic92 commented Apr 10, 2025

#195

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

4 participants