Add methods to TCP and UDP sockets to modify hop limit (refresh of #94678) by Mallets · Pull Request #138744 · rust-lang/rust (original) (raw)
You can reproduce the failure with x.py check library/std --target=wasm32-wasip2. "bors try" does not cover the full cross-compilation matrix.
Checking stage1 library artifacts{std} (stage1:x86_64-unknown-linux-gnu -> stage1:wasm32-wasip2)
Checking std v0.0.0
warning: dropping unsupported crate type dylib for target wasm32-wasip2
error[E0425]: cannot find value IPV6_MULTICAST_HOPS in crate c
--> library/std/src/sys/net/connection/socket/mod.rs:831:53
|
831 | setsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_MULTICAST_HOPS, limit as c_int)
| ^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: IPV6_MULTICAST_LOOP
|
::: /home/david/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.175/src/wasi/p2.rs:117:1
|
117 | pub const IPV6_MULTICAST_LOOP: c_int = 19;
| ------------------------------------ similarly named constant IPV6_MULTICAST_LOOP defined here
error[E0425]: cannot find value IPV6_MULTICAST_HOPS in crate c
--> library/std/src/sys/net/connection/socket/mod.rs:835:70
|
835 | let raw: c_int = getsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_MULTICAST_HOPS)?;
| ^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: IPV6_MULTICAST_LOOP
|
::: /home/david/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.175/src/wasi/p2.rs:117:1
|
117 | pub const IPV6_MULTICAST_LOOP: c_int = 19;
| ------------------------------------ similarly named constant IPV6_MULTICAST_LOOP defined here