Skip to contentSkip to conversation

Dunfell busybox NFS mount fails to build

DISCUSSION MikeB 2 participants 3 messages Jun 13, 2020 – Jun 15, 2020

lore
Share & tools
lore

MikeB

author
#0 lore raw

I'm trying to build busybox on Dunfell with NFS mount configured (CONFIG_FEATURE_MOUNT_NFS).  The build fails with the following.

| util-linux/mount.c:253:11: fatal error: rpc/rpc.h: No such file or directory |   253 | # include <rpc/rpc.h>

Reading online, later versions of glibc no longer install rpc headers.  Once suggested solution is to configure glibc with --enable-obsolete-rpc.  I tried that, but then the build fails as follows.

ERROR: tcp-wrappers-7.6-r10 do_prepare_recipe_sysroot: The file /usr/include/rpcsvc/yppasswd.x is installed by both glibc and libnsl2, aborting

I also tried adding libtirpc as a dependency to busybox; no luck there either.

Can someone give me a workaround for this problem?

Thanks.

#1 lore raw
Quoted 10 lines · PDT MikeB

I'm trying to build busybox on Dunfell with NFS mount configured (CONFIG_FEATURE_MOUNT_NFS). The build fails with the following.

| util-linux/mount.c:253:11: fatal error: rpc/rpc.h: No such file or
| directory|
|   253 | # include <rpc/rpc.h>

Reading online, later versions of glibc no longer install rpc headers. Once suggested solution is to configure glibc with --enable-obsolete-rpc. I tried that, but then the build fails as follows.

Quoted 9 lines

ERROR: tcp-wrappers-7.6-r10 do_prepare_recipe_sysroot: The file /usr/include/rpcsvc/yppasswd.x is installed by both glibc and libnsl2, aborting

I also tried adding libtirpc as a dependency to busybox; no luck there either.

Can someone give me a workaround for this problem?

Obsolete rpc is really not supported as you can see but if you are using it also ensure libnsl2 is not used either.
remove libnsl2 from tcp-wrappers dependencies

Quoted 1 line

Thanks.

author
#2 lore raw

Removing the libnsl2 dependency worked for tcp-wrappers, but a similar situation arose with python3. In the case of python3, removing libnsl2 dependency caused other failures in the build.

However, reading some comments in util-linux/mount.c, the CONFIG_FEATURE_MOUNT_NFS
seems to only apply to kernels < 2.6.23. So, I'm going to leave it undefined until I can do further testing.

Regards, Mike

Quoted 33 lines · Khem Raj
Quoted 7 lines · PDT MikeB

I'm trying to build busybox on Dunfell with NFS mount configured (CONFIG_FEATURE_MOUNT_NFS). The build fails with the following.

| util-linux/mount.c:253:11: fatal error: rpc/rpc.h: No such file or
| directory|
|   253 | # include <rpc/rpc.h>

Reading online, later versions of glibc no longer install rpc headers.

Once

Quoted 12 lines

suggested solution is to configure glibc with --enable-obsolete-rpc. I tried that, but then the build fails as follows.

ERROR: tcp-wrappers-7.6-r10 do_prepare_recipe_sysroot: The file /usr/include/rpcsvc/yppasswd.x is installed by both glibc and libnsl2, aborting

I also tried adding libtirpc as a dependency to busybox; no luck there either.

Can someone give me a workaround for this problem?

Obsolete rpc is really not supported as you can see but if you are using it
also ensure libnsl2 is not used either.
remove libnsl2 from tcp-wrappers dependencies

Quoted 1 line

Thanks.