Skip to content
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

Can't build Hyper-Util, on Haiku #3817

Open
vmlemon opened this issue Dec 21, 2024 · 1 comment
Open

Can't build Hyper-Util, on Haiku #3817

vmlemon opened this issue Dec 21, 2024 · 1 comment
Labels
C-bug Category: bug. Something is wrong. This is bad! E-easy Effort: easy. A task that would be a great starting point for a new contributor. K-hyper-util Crate: hyper-util

Comments

@vmlemon
Copy link

vmlemon commented Dec 21, 2024

Version
List the version(s) of hyper, and any relevant hyper dependency (such as h2 if this is related to HTTP/2).

hyper-util v0.1.10
   Compiling num-iter v0.1.45
   Compiling num-bigint v0.4.6

Platform

~/rustic> uname -a
Haiku shredder 1 hrev58440 Dec 20 2024 07:16:01 x86_64 x86_64 Haiku

Description
As part of trying to build the Rustic-RS project, on Haiku, I encountered the following error, involving the prerequisite "hyper-util" Cargo package:

~/rustic> ./build.sh 
   Compiling hyper-util v0.1.10
   Compiling num-iter v0.1.45
   Compiling num-bigint v0.4.6
error[E0599]: no method named `with_interval` found for struct `TcpKeepalive` in the current scope
   --> /boot/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-util-0.1.10/src/client/legacy/connect/http.rs:122:12
    |
122 |         ka.with_interval(interval)
    |            ^^^^^^^^^^^^^ method not found in `TcpKeepalive`

error[E0599]: no method named `with_retries` found for struct `TcpKeepalive` in the current scope
   --> /boot/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-util-0.1.10/src/client/legacy/connect/http.rs:144:12
    |
144 |         ka.with_retries(retries)
    |            ^^^^^^^^^^^^
    |
help: there is a method `with_time` with a similar name
    |
144 |         ka.with_time(retries)
    |            ~~~~~~~~~

For more information about this error, try `rustc --explain E0599`.
error: could not compile `hyper-util` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...

Unfortunately, as I am unfamiliar with the Hyper-Utils codebase, and am not massively familiar with the Rust ecosystem/language, I'm unsure of the best place to deal with this, although I've also posted a sibling issue, to track this, at haikuports/haikuports#11501.

@vmlemon vmlemon added the C-bug Category: bug. Something is wrong. This is bad! label Dec 21, 2024
@seanmonstar seanmonstar added E-easy Effort: easy. A task that would be a great starting point for a new contributor. K-hyper-util Crate: hyper-util labels Dec 23, 2024
@linyihai
Copy link
Contributor

It's seems copy the target_os array from the upstream socket2 crate can fix this problem.

I'll submit a PR later. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug. Something is wrong. This is bad! E-easy Effort: easy. A task that would be a great starting point for a new contributor. K-hyper-util Crate: hyper-util
Projects
None yet
Development

No branches or pull requests

3 participants