pijul_org / pijul

#325 build fails with openssl 0.9.24

Opened by srpeliss, on November 6, 2018
srpeliss commented on November 6, 2018

Hi all.

I never successfully installed pijul on archlinux (manjaro). I also don't find similar issues as mine on the www. I tried with different rustup build chains, even reinstalled it entirely last night, to no avail.

Thanks for any assistance. Sylvain

The error:

error: failed to run custom build command for `openssl v0.9.24`                 
process didn't exit successfully: `/tmp/cargo-install3cgKRn/release/build/openssl-98a35942ec95a172/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /home/kili/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.9.24/build.rs:16:14
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: failed to compile `pijul v0.10.1`, intermediate artifacts can be found at `/tmp/cargo-install3cgKRn`

Caused by:
  build failed
pmeunier commented on November 6, 2018

This looks a lot like an error with the OpenSSL crate, not with Pijul. Do you have pkg-config and openssl installed?

srpeliss commented on November 8, 2018

Hi Pierre-Etienne, could there be a conflict between openssl versions 0.9 and 0.10? See below some info.

$ pacman -Q | grep openssl
openssl 1.1.1-1
openssl-1.0 1.0.2.p-1

$ pacman -Q | grep pkg-config

$ pacman -Q | grep pkgconf
pkgconf 1.5.3-1

$ ls ~/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.10.15
build.rs  Cargo.toml  Cargo.toml.orig  examples  LICENSE  README.md  src  test

$ ls ~/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.9.24
build.rs  Cargo.toml  Cargo.toml.orig  examples  LICENSE  README.md  src  test

$ ls ~/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.39
build  Cargo.toml  Cargo.toml.orig  LICENSE-MIT  README.md  src
dxkpf commented on November 9, 2018

Heyo, I have the same issue. I googled a bit and the openssl 0.9.24 crate (required by reqwest 0.8) does not build with the newest version of openssl (1.1) installed. I sadly do not have a deeper understanding of the cargo build system and don't really know how to fix this. It would probably be a good idea to update the reqwest dependency to the newest version, but that would (probably, maybe not, idk) require some changes to the codebase?

Maybe installing openssl 0.9 on my system and building the openssl crate with that would work, but I don't know how to do that and I don't think that's the right way to go.

srpeliss commented on November 14, 2018

No solution found, but had a look at the dependencies. There could be several but I found the native-tls in use (0.1.5) depends on openssl 0.9.23, while the latest native-tls (0.2.2) uses openssl 0.10, the current supported release.

srpeliss commented on November 23, 2018

Reporting problem as FIXED. No specific action taken was taken on my side except another attempt at installing pijul! I suppose some fix was released but I don't know which. Happy to finally evaluate pijul.

pmeunier commented on November 23, 2018

Great to hear! I'm closing.