Skip to content

configure: detect an incorrectly-built Hyper #8001

Closed

Description

@jsha

I did this

In Hyper directory:

cargo build

In curl directory:

./configure --with-hyper=$HOME/rust/hyper/

I expected the following

Success!

I got the following

configure: error: --with-hyper but hyper was not found. See docs/HYPER.md.

The problem is that I didn't build Hyper with the appropriate feature flags. The message is confusing because Hyper did exist and was in the right place, but didn't have the correct symbols. We should add a check to configure that the file (libhyper.a) exists in the given directory. If the file exists but the build fails, we can specifically say "hyper was found but it was built with the wrong flags. See docs/HYPER.md"

/cc @kevinburke

Activity

  1. added a commit that references this issue on Nov 13, 2021
    321146d
  2. self-assigned this
    on Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions