Missing stdbool.h import is breaking downstream C clients

Open
#424 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
api

Research direction

Start with rmw/time.h and the C reproducer shown in the issue; inspect the declarations and included headers involved in rmw_time_equal and bool. Build the minimal Jazzy colcon workspace to reproduce the downstream failure, then confirm that the C translation unit including rmw/time.h builds successfully.

Written by the indexing model from the issue text.

Description

bug
Generated by Generative AI

Diagnosed by Claude Opus 4.6

Operating System:

ubuntu 22.04

ROS version or commit hash:

jazzy

RMW implementation (if applicable):

No response

RMW Configuration (if applicable):

No response

Client library (if applicable):

No response

'ros2 doctor --report' output

No response

Steps to reproduce issue
  /* C translation unit that includes rmw/time.h */
  #include "rmw/time.h"

  void test_func(void) {
      rmw_time_t a = {0, 0};
      rmw_time_t b = {0, 0};
      bool result = rmw_time_equal(a, b);
      (void)result;
  }
  • Create a minimal colcon workspace with rcutils:jazzy and rmw:jazzy (unfixed) and the above C file in a test C package
  • colcon build in the workspace reproduced the above error
  • Changing the rmw package to include the fix in this MR allowed the build to succeed.
Expected behavior

Able to build rmw.

Actual behavior

Unable to build rmw

Additional information

I put up a PR with #423 but I'm guessing it's not getting visibility because of a missing bug report? Hoping that this is the missing link. I'm hoping the patch makes it in before a new apt package is released to downstream consumers.

Dominant language
C
Stars
121
Forks
89
Avg merge
17h 40m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ros2/rmw

All issues in ros2/rmw

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.