[RFC PATCH] modutils: fix build with uClibc
Rahul Bedarkar
Rahul.Bedarkar at imgtec.com
Thu Dec 22 07:41:04 UTC 2016
Hi Waldemar,
On Wednesday 21 December 2016 02:37 PM, Waldemar Brodkorb wrote:
> Hi Rahul,
> Rahul Bedarkar wrote,
>
> init_module / delete_module is just a wrapper for the syscalls.
> Wouldn't it be just better to remove the wrappers in uClibc-ng and
> just use syscall(..) like for all others?
>
> Can you try something like this?
>
I was also thinking to use syscall directly in all cases. But thought
that it might be some reason, which I am missing, for uClibc to use
wrapper instead of syscall.
Earlier, I thought that this build failure is affecting uClibc for all
architectures but it is only failing for MIPS + uClibc. I did build
busybox-1.26.0 for all available external toolchains from Buildroot and
it is only failing for MIPS + uClibc. After taking closer look,
syscall.h is getting included from dirent.h for MIPS only and dirent.h
is included from libbb.h.
MIPS specific dirent.h (./libc/sysdeps/linux/mips/bits/dirent.h)
includes syscall.h for checking __NR_getdents64. Can we workout that
without syscall.h like other libc and depending on *_OFFSET64 ?
Otherwise, I can try to use syscall directly in modutils.c unless I am
missing anything.
Thanks,
Rahul
More information about the busybox
mailing list