Bug 10356 - nfs-utils missing header
Summary: nfs-utils missing header
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-02 15:06 UTC by Matt Weber
Modified: 2017-10-31 20:58 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
proposed fix. this has not been sent upstream yet. (806 bytes, patch)
2017-10-02 15:06 UTC, Matt Weber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Weber 2017-10-02 15:06:10 UTC
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
Comment 1 Matt Weber 2017-10-02 15:13:53 UTC
Looks like similar issue with stdint for strongswan.
https://wiki.strongswan.org/issues/2425
Comment 2 Matt Weber 2017-10-02 15:39:06 UTC
Found upstream and sent a proposed fix.
https://patchwork.ozlabs.org/patch/820578/