[PATCH] util-linux: Suppress RPC error for recent uclibc

Denys Vlasenko vda.linux at googlemail.com
Mon Jul 10 12:47:13 UTC 2017


On Wed, Jul 5, 2017 at 10:46 AM, Jean-Loup 'clippix' Bogalho
<clippix at lse.epita.fr> wrote:
> Since version 1.0.23, uclibc-ng no longer includes a RPC implementation, the
> error directive is not relevant for this and above versions.
>
> In buildroot the libtirpc package should be used instead.
>
> Signed-off-by: Jean-Loup 'clippix' Bogalho <clippix at lse.epita.fr>
> ---
> util-linux/mount.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/util-linux/mount.c b/util-linux/mount.c
> index 6bb1852..f73caa5 100644
> --- a/util-linux/mount.c
> +++ b/util-linux/mount.c
> @@ -244,8 +244,9 @@
> #undef FALSE
> #if ENABLE_FEATURE_MOUNT_NFS
> /* This is just a warning of a common mistake.  Possibly this should be a
> - * uclibc faq entry rather than in busybox... */
> -# if defined(__UCLIBC__) && ! defined(__UCLIBC_HAS_RPC__)
> + * uclibc faq entry rather than in busybox...
> + * uclibc no longer include a RPC implementation since version 1.0.23 */
> +# if defined(__UCLIBC__) && UCLIBC_VERSION < KERNEL_VERSION(1, 0, 23) && !
> defined(__UCLIBC_HAS_RPC__)
> #  error "You need to build uClibc with UCLIBC_HAS_RPC for NFS support"
> # endif
> # include <rpc/rpc.h>


I converted it to #warning


More information about the busybox mailing list