-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cannot build due to libssl.so.1.1 link error #473
Comments
The last commit that I can build from is 1bdc3e9. |
More info
|
@mikeplus64 This doesn't look like an issue with SQLx but with the Line 1526 in 7270061
|
Using
Builds fine. |
Can you try with nightly and enabling the new feature resolution from Cargo? https://doc.rust-lang.org/cargo/reference/unstable.html#features
If that doesn't work can you share your exact system name ( |
Sadly no effect.
System info:
Installed cargo and nix from mozilla's nixpkgs overlay, as in # nixpkgs.nix
let
inherit (import <nixpkgs> {}) fetchFromGitHub;
bootstrap = fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs-channels";
rev = "b27a19d5bf799f581a8afc2b554f178e58c1f524";
sha256 = "0xl67j7ns9kzk1arr64r4lfiq74nw0awqbv6hnh8njx07rspqhdb";
};
moz_overlay = import (fetchFromGitHub {
owner = "mozilla";
repo = "nixpkgs-mozilla";
rev = "e912ed483e980dfb4666ae0ed17845c4220e5e7c";
sha256 = "08fvzb8w80bkkabc1iyhzd15f4sm7ra10jn32kfch5klgl0gj3j3";
});
in
import bootstrap {
overlays = [ moz_overlay ];
config = {
packageOverrides = super: {
rust = (super.pkgs.rustChannelOf {
date = "2020-06-19";
channel = "nightly";
}).rust;
};
};
} $ nix-env -f ./nixpkgs.nix iA rust
|
I'm hitting an error that feels related... trying to build against the |
Try vendoring OpenSSL. Add this to your Cargo.toml : [dependencies.openssl]
version = "0.10.29"
features = [
"vendored"
] |
ooh nice, that did fix it for me - thanks! |
Nice, seems to have fixed it for me as well. |
As this works with |
Forgive for necropost, but for future reference: the issue is because procedural macro executed in slightly different environment. That means when you run inside your nix shell, it doesn't know where So technically this is |
Writing an issue because I'm baffled.
Building master with
cargo build --no-default-features --features 'runtime-tokio macros postgres'
fails, but is ok with only one ofpostgres
ormacros
-- it's the combination that is the immediate/superficial cause of the build fail.Build output:
My system definitely has
libssl.so.1.1
;Any ideas?
The text was updated successfully, but these errors were encountered: