Bug 1539142
| Summary: | build fails if libtiprc is present but IPv6 is not enabled | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Csaba Henk <csaba> |
| Component: | build | Assignee: | Csaba Henk <csaba> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | mainline | CC: | bugs |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-4.1.3 (or later) | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-08-29 03:37:30 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
As for the suggestion at the end of the description: "Beyond the mere fix, it could be considered to default to --with-libtirpc=no (unless -with-ipv6-default is used)." -- I see now that defaulting to picking up libtirpc if present is intentional, see https://review.gluster.org/19235. REVIEW: https://review.gluster.org/19346 (rpc: use native libtirpc macro to enable libtirpc compat construct) posted (#1) for review on master by Csaba Henk This update is done in bulk based on the state of the patch and the time since last activity. If the issue is still seen, please reopen the bug. I always fail on this on CentOS 7 - the user experience is bad. Why not have those as defaults in EL7? (meaning '--with-libtirpc=no') |
Description of problem: Build fails if libtiprc (and libtirpc-devel) are installed on the system, but --with-ipv6-default is not set. Making all in rpc-lib Making all in src CC auth-unix.lo CC rpcsvc-auth.lo CC rpcsvc.lo [...] rpcsvc.c: In function 'rpcsvc_callback_build_record': rpcsvc.c:1002:9: error: implicit declaration of function 'xdr_sizeof' [-Werror=implicit-function-declaration] xdr_size = xdr_sizeof ((xdrproc_t)xdr_callmsg, &request); ^ cc1: some warnings being treated as errors make[4]: *** [rpcsvc.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Version-Release number of selected component (if applicable): See "Additional info" for the commits causing this. Additional info: This error message appeared with https://review.gluster.org/18834, but https://review.gluster.org/18970 mitigated it for the case when --with-ipv6-default is used. However, a libtirpc-but-no-IPv6 build is still not covered. Note that libtirpc is picked up if present, so no --with-libtirpc option is required to trigger this, only presence of libtirpc{,-devel}. Workaround: building with "--with-libtirpc=no". Beyond the mere fix, it could be considered to default to --with-libtirpc=no (unless -with-ipv6-default is used).