Created attachment 7251 [details] proposed fix. this has not been sent upstream yet. Glibc bump to 2.26 exposed this missing header when building with the following combination using a internal toolchain. Arch: i686 gcc5.4.0 glibc2.26 bin2.28.1 linux4.1.43 Logfile snippet: 2017-10-02T00:08:11 ^ 2017-10-02T00:08:12 rpc.c: In function ‘nsm_recv_getport’: 2017-10-02T00:08:12 rpc.c:469:13: error: ‘UINT16_MAX’ undeclared (first use in this function) 2017-10-02T00:08:12 if (port > UINT16_MAX) { 2017-10-02T00:08:12 ^ 2017-10-02T00:08:12 rpc.c:469:13: note: each undeclared identifier is reported only once for each function it appears in 2017-10-02T00:08:12 rpc.c: In function ‘nsm_recv_getaddr’: 2017-10-02T00:08:12 rpc.c:506:25: error: ‘UINT16_MAX’ undeclared (first use in this function) 2017-10-02T00:08:12 if (port < 0 || port > UINT16_MAX) { 2017-10-02T00:08:12 ^ 2017-10-02T00:08:12 Makefile:452: recipe for target 'rpc.o' failed 2017-10-02T00:08:12 make[5]: *** [rpc.o] Error 1 2017-10-02T00:08:12 make[5]: *** Waiting for unfinished jobs.... 2017-10-02T00:08:12 Makefile:393: recipe for target 'all' failed 2017-10-02T00:08:12 make[4]: *** [all] Error 2 2017-10-02T00:08:12 Makefile:426: recipe for target 'all-recursive' failed 2017-10-02T00:08:12 make[3]: *** [all-recursive] Error 1 2017-10-02T00:08:12 Makefile:468: recipe for target 'all-recursive' failed 2017-10-02T00:08:12 make[2]: *** [all-recursive] Error 1 2017-10-02T00:08:12 package/pkg-generic.mk:234: recipe for target '/home/gitlab-runner/builds/9d7dc3b9/2/rclinux/rc-bsp/target_build/build/nfs-utils-1.3.3/.stamp_built' failed
Looks like similar issue with stdint for strongswan. https://wiki.strongswan.org/issues/2425
Found upstream and sent a proposed fix. https://patchwork.ozlabs.org/patch/820578/
Fixed by https://git.buildroot.org/buildroot/commit/package/nfs-utils?id=854d61f7aabac5f9f2f9612bd88266d5f44c4a5a.