I think I found something. It seems that someone added a bunch of
#if USE_P4_API ...some code... #endif
inside all the functions. The problem is USE_P4_API doesn’t seems to be defined anywhere. Meaning, when you compile it, all you have are just empty functions.