Skip to content

Compilation failure on FreeBSD #1897

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

Open
maleadt opened this issue Apr 10, 2025 · 0 comments
Open

Compilation failure on FreeBSD #1897

maleadt opened this issue Apr 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@maleadt
Copy link

maleadt commented Apr 10, 2025

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 #849 (presumably should have been fixed by #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-musl for x86_64-unknown-freebsd13.4
  • rust toolchain 1.83.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant