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

Issues compiling examples with zenoh-0.10.0-rc #79

Closed
maxikrie opened this issue Oct 31, 2023 · 1 comment
Closed

Issues compiling examples with zenoh-0.10.0-rc #79

maxikrie opened this issue Oct 31, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@maxikrie
Copy link

Describe the bug

There is a pedantic warning issue when compiling the examples:

In file included from zenoh-cpp/include/zenohpico.hxx:30,
from zenoh-cpp/examples/simple/zenohpico/zp_simple.cxx:19:
enoh-cpp/include/zenohcxx/impl.hxx:329:2: error: extra ‘;’ [-Werror=pedantic]
329 | };
| ^
zenoh-cpp/include/zenohcxx/impl.hxx:577:2: error: extra ‘;’ [-Werror=pedantic]
577 | };
| ^

Also, on my system there is an undefined reference issue on my system:

/usr/bin/ld: CMakeFiles/z_ping_zenohc.dir/universal/z_ping.cxx.o: undefined reference to symbol 'pthread_cond_clockwait@@GLIBC_2.30'
/usr/bin/ld: /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line

The latter can be resolved by including target_link_libraries(${target} PRIVATE Threads::Threads) in the CMakeLists.txt (not sure how this should be done properly, so I am not creating a pull request).

To reproduce

Follow the instructions for compiling the examples.

System info

  • Debian 11
  • zenoh-0.10.0-rc
@maxikrie maxikrie added the bug Something isn't working label Oct 31, 2023
@Mallets
Copy link
Member

Mallets commented Nov 7, 2023

Fixed by eclipse-zenoh/zenoh-pico#274

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

3 participants