While compiling natively on the BBW: Basic definitions missing

Hi,

while trying to compile packages natively on my Beaglebone White for the Gentoo Linux
I am using there errors related to missing definitions.
These definitions are like:
PATH_MAX
MB_LEN_MAX
N_GROUPS_MAX
LINE_MAX
SSIZE_MAX
__BYTE_ORDER
LOGIN_NAME_MAX

Some of them break even the native compilition of the kernel, which does not need any library
and their header files.

The recompilation of the gcc also fails.

Is there any specific thing which may cause all this trouble -- a missing link :wink: or such (kernel header files are installed
via a Gentoo package of the correct version, the kernel sources are installed, but not compiled due to the above problems.)

Where can I dig for the root of this problems?

Thank you very much in advance for any help!
Have a nice weekend!
Best regards,
mcc