Skip to content

Compilation error: Unable to detect OpenSSL version #987

@sbstp

Description

@sbstp

Running into an error while trying to compile a project that uses reqwest, my ~/.cargo/config only contains my crates.io access token, nothing else.

$ cargo build --release
   Compiling openssl v0.9.24                                                                                                                                                                                       
   Compiling openssl-sys v0.9.35
error: failed to run custom build command for `openssl v0.9.24`
process didn't exit successfully: `/home/simon/projects/tinyhttp/compare-tests/cat-reqwest/target/release/build/openssl-10d568e63f64a017/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /home/simon/.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: build failed

I have another library using native-tls 0.2.1 and it compiles just fine.

I'm using Debian sid, the libssl-dev package is

Package: libssl-dev
Source: openssl
Version: 1.1.1~~pre9-1
Installed-Size: 7883
Maintainer: Debian OpenSSL Team <pkg-openssl-devel@lists.alioth.debian.org>
Architecture: amd64
Depends: libssl1.1 (= 1.1.1~~pre9-1)
Suggests: libssl-doc
Conflicts: libssl1.0-dev
Description-en: Secure Sockets Layer toolkit - development files
 This package is part of the OpenSSL project's implementation of the SSL
 and TLS cryptographic protocols for secure communication over the
 Internet.
 .
 It contains development libraries, header files, and manpages for libssl
 and libcrypto.
Description-md5: 27044468897c45b271f879c7c6e135fe
Multi-Arch: same
Homepage: https://www.openssl.org/
Tag: devel::lang:c, devel::library, implemented-in::TODO, implemented-in::c,
 protocol::ssl, role::devel-lib, security::cryptography
Section: libdevel
Priority: optional
Filename: pool/main/o/openssl/libssl-dev_1.1.1~~pre9-1_amd64.deb
Size: 1783684
MD5sum: 82d9d2664f30fc97b8a5de64f0e0cfe1
SHA256: 66195648825d33db19f8c0e225d638f13d14230de6adbbf2489d6be072e4c45a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions