RTEMS | Undefined reference to Stack Checker Reporter (#5497)

SHIVAM DEOLANKAR (@D3athSkulll) gitlab at rtems.org
Thu Feb 26 21:00:24 UTC 2026




SHIVAM DEOLANKAR commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5497#note_143588


check.c references Stack_checker_Reporter unconditionally, but the symbol is only defined in confdefs/extensions.h when CONFIGURE_STACK_CHECKER_ENABLED is set.

This causes undefined references when stack checker is not enabled, since librtemscpu always includes check.c.

I modified confdefs/extensions.h so that Stack_checker_Reporter is always defined. When stack checker is enabled, the behavior is unchanged. When it is disabled, the reporter defaults to rtems_stack_checker_reporter_quiet.

I also made the inclusion of <rtems/stackchk.h> unconditional so the type is always visible.

This keeps configuration policy inside confdefs, avoids weak symbols or spec-level changes, and preserves existing behavior.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5497#note_143588
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260226/5e47c00d/attachment.htm>


More information about the bugs mailing list