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

[Bug] 1.0.0-pre.10 zenohc::session: Error opening session: Unsupported protocol: unixsock-stream. #738

Open
mangodan2003 opened this issue Oct 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mangodan2003
Copy link

mangodan2003 commented Oct 4, 2024

Describe the bug

zenoh 1.0.0-beta.4 understands the unixsock-stream prefix but the zenoh-c 1.0.0-pre.10 release built against it does not:

~/workspace/zenoh/zenoh-c/build $ ../target/release/examples/z_pub
Opening session...
2024-10-04T09:42:08.950349Z ERROR ThreadId(03) zenohc::session: Error opening session: Unsupported protocol: unixsock-stream. at /path/to/.cargo/git/checkouts/zenoh-cc237f2570fab813/8aaed41/io/zenoh-link/src/lib.rs:169.
Unable to open session!

The z_pub example has been modified to use zc_config_from_file which when pointed at the same config file which worked previously (and works for the the pure rust z_pub example) fails.

To reproduce

modify z_pub.c in the 1.0.0-pre.10 / release/1.0.0.10 branch to parse a config file which specifies an endpoint with unixsock-stream prefix.

System info

  • Platform: Gentoo
  • CPU: 12th Gen Intel(R) Core(TM) i9-12900
  • Zenoh Version: Your branch is up to date with 'origin/release/1.0.0.10'
@mangodan2003 mangodan2003 added the bug Something isn't working label Oct 4, 2024
@mangodan2003
Copy link
Author

mangodan2003 commented Oct 4, 2024

Having dug a bit the default features has changed from using what zenoh used to a new set defined in this project which excludes unix-sockstream

@DenisBiryukov91
Copy link
Contributor

DenisBiryukov91 commented Oct 4, 2024

yes, you can enable it by passing -DZENOHC_CARGO_FLAGS="--features=transport_unixsock-stream" to cmake.

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

2 participants