zenoh
zenoh copied to clipboard
Compilation failure on FreeBSD
Describe the bug
I'm observing the following compilation failure on FreeBSD when compiling zenoh-c 1.3.2:
error[E0425]: cannot find function `set_bind_to_device_tcp_socket` in module `zenoh_util::net`
--> /opt/x86_64-linux-musl/git/checkouts/zenoh-cc237f2570fab813/94e9179/io/zenoh-link-commons/src/tcp.rs:89:30
|
89 | zenoh_util::net::set_bind_to_device_tcp_socket(&socket, iface)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `zenoh_util::net`
|
note: found an item that was configured out
--> /opt/x86_64-linux-musl/git/checkouts/zenoh-cc237f2570fab813/94e9179/commons/zenoh-util/src/net/mod.rs:439:8
|
439 | pub fn set_bind_to_device_tcp_socket(socket: &TcpSocket, iface: &str) -> ZResult<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: the item is gated here
--> /opt/x86_64-linux-musl/git/checkouts/zenoh-cc237f2570fab813/94e9179/commons/zenoh-util/src/net/mod.rs:438:1
|
438 | #[cfg(any(target_os = "linux", target_os = "android"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: found an item that was configured out
--> /opt/x86_64-linux-musl/git/checkouts/zenoh-cc237f2570fab813/94e9179/commons/zenoh-util/src/net/mod.rs:451:8
|
451 | pub fn set_bind_to_device_tcp_socket(socket: &TcpSocket, iface: &str) -> ZResult<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: the item is gated here
--> /opt/x86_64-linux-musl/git/checkouts/zenoh-cc237f2570fab813/94e9179/commons/zenoh-util/src/net/mod.rs:450:1
|
450 | #[cfg(any(target_os = "macos", target_os = "windows"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0425`.
error: could not compile `zenoh-link-commons` (lib) due to 1 previous error
Related to https://github.com/eclipse-zenoh/zenoh/issues/849 (presumably should have been fixed by https://github.com/eclipse-zenoh/zenoh/pull/850).
To reproduce
Check out zenoh-c, call cmake, etc.
System info
- zenoh-c c87e3128229fae6df497650c97767dd3c4dac1db (1.3.2 tag)
- cross-compiling from
x86_64-unknown-linux-muslforx86_64-unknown-freebsd13.4 - rust toolchain 1.83.0
Hello @maleadt, thanks for the report! Could you please let us know if the error is reproducible on the latest version?