Yeah, looks like all those missing macros are causing the ambiguities.
They are probably undefined because they used to be included indirectly in 4.14 and prior, but as TX.AlphaMale pointed out, that is no longer the case.
I would try to start by searching for the undefined macros (find in all files), and if you can find the header files where they are defined, include those headers manually.