There are many places in the file fsm.c that have this compile condition check
#if defined FSM_DEBUG
blabla
#endif
that is wrong. The compiler will ignore it. There 2 way to do that
1 - #ifdef FSM_DEBUG
or
2 - #if defined(FSM_DEBUG)
Please fix it.