Hi all!
On 17-12-14 22:35:52, Stefan Nilsson wrote:
> Hey Laurent,
<snip>
>
> So what to do,... I found:
> https://skarnet.org/cgi-bin/archive.cgi?1:mss:1099:201711
> and decided to update to this version in my buildroot system instead, but
> then I got a build error:
>
> make[1]: Entering directory '/home/stefan/buildroot/output/build/s6-2.6.2.0'
> exec /home/stefan/buildroot/output/host/bin/i586-buildroot-linux-gnu-gcc
> -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -iquote src/include-local
> -Isrc/include -Werror=implicit-function-declaration -Werror=implicit-int
> -Werror=pointer-sign -Werror=pointer-arith -I/home/stefan/buildroot/output/host/i586-buildroot-linux-gnu/sysroot/usr/include
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Wall
> -std=c99 -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
> -Wa,--noexecstack -ffunction-sections -fdata-sections -O2
> -fomit-frame-pointer -fno-stack-protector -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -c -o
> src/daemontools-extras/s6-applyuidgid.o
> src/daemontools-extras/s6-applyuidgid.c
> src/daemontools-extras/s6-applyuidgid.c: In function 'main':
> src/daemontools-extras/s6-applyuidgid.c:57:29: error: implicit declaration
> of function 'setgroups_and_gid' [-Werror=implicit-function-declaration]
> if (gidn != (size_t)-1 && setgroups_and_gid(gid ? gid : getegid(), gidn,
> gids) < 0)
> ^~~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
Being the submitter of the s6 patches to Buildroot, maybe I can help.
IIUC, setgroups_and_gid() gets compiled only if SKALIBS_HASSETGROUPS is
set in the file sysdeps.h generated by ./configure script. So maybe this
file has been incorrectly generated for your platform.
Could you share your Buildroot defconfig (or at least the toolchain
specification) so I can test it on my side?
Regards,
--
ELB
Received on Thu Dec 14 2017 - 22:44:33 UTC