Mohamed Hassan commented on a discussion on 
testsuites/libtests/stackchk/init.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/86#note_109819

 >  #endif
 >  
 >  #define CONFIGURE_INIT
 > +#include "../stackchk03/system.h"
 > +
 >  #include "system.h"
 >  
 >  #include <rtems/bspIo.h>
 >  
 >  const char rtems_test_name[] = "STACKCHK";
 >  
 > +void stackchk03_blown_stack_reporter(

The latest updated version compiles successfully after including `#include 
"../stackchk/system.h"` at 
[stackchk03/system.h](https://gitlab.rtems.org/rtems/rtos/rtems/-/blob/63978cb88ab3f2ee25d3f5923261a7edd5ad99df/testsuites/libtests/stackchk03/system.h).
 However, as ```#define CONFIGURE_STACK_CHECKER_REPORTER  
stackchk03_blown_stack_reporter
``` comes after the `confdefs`. therefore, it always goes to the default 
detailed reporter. And whenever I try:
- Configure the macro before the `#include "../stackchk/system.h"` it doesn't 
recognize `stackchk03_blown_stack_reporter`
- Then, if I place the prototype at the top, it gives me linker error 
`undefined reference to `stackchk03_blown_stack_reporter'`.

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


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to