Created attachment 692826 [details] build.log [...] powerpc64-unknown-linux-gnu-gcc -O2 -mcpu=970 -pipe -std=c99 -DHAVE_CONFIG_H -DNDEBUG -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -DPLUGIN_DEV -I.. -I../src -I./crypt -c privsep-bpf.c -o privsep-bpf.o powerpc64-unknown-linux-gnu-gcc -O2 -mcpu=970 -pipe -std=c99 -DHAVE_CONFIG_H -DNDEBUG -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -DPLUGIN_DEV -I.. -I../src -I./crypt -c privsep-linux.c -o privsep-linux.o In file included from privsep-linux.c:34: privsep-linux.c:261:35: error: invalid application of 'sizeof' to incomplete type 'struct termios' 261 | SECCOMP_ALLOW_ARG(__NR_ioctl, 1, TCGETS), | ^~~~~~ privsep-linux.c:261:2: note: in expansion of macro 'SECCOMP_ALLOW_ARG' 261 | SECCOMP_ALLOW_ARG(__NR_ioctl, 1, TCGETS), | ^~~~~~~~~~~~~~~~~ privsep-linux.c:261:35: error: invalid application of 'sizeof' to incomplete type 'struct termios' 261 | SECCOMP_ALLOW_ARG(__NR_ioctl, 1, TCGETS), | ^~~~~~ privsep-linux.c:261:2: note: in expansion of macro 'SECCOMP_ALLOW_ARG' 261 | SECCOMP_ALLOW_ARG(__NR_ioctl, 1, TCGETS), | ^~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:55: privsep-linux.o] Error 1
Created attachment 692829 [details] emerge --info
Already fixed in dhcpcd-9.4.0, but here is the upstream fix: https://github.com/NetworkConfiguration/dhcpcd/commit/7c08f3777a69c69e87a149bb35681ce2ed2f0490#diff-1f5262cbb9b394dcf53a639f429815fa27c689921cfda1f6dfa45494df7f7ff8
(In reply to Roy Marples from comment #2) > Already fixed in dhcpcd-9.4.0, but here is the upstream fix: > https://github.com/NetworkConfiguration/dhcpcd/commit/ > 7c08f3777a69c69e87a149bb35681ce2ed2f0490#diff- > 1f5262cbb9b394dcf53a639f429815fa27c689921cfda1f6dfa45494df7f7ff8 Thanks! This upstream patch solves the issue. I'll include it here for convenience.
Created attachment 696549 [details, diff] include_termios.patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=175d8dc6b2f3d1c8911e59b28187a93b45f4b887 commit 175d8dc6b2f3d1c8911e59b28187a93b45f4b887 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2021-03-31 19:58:46 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2021-03-31 19:59:17 +0000 net-misc/dhcpcd: Fixed build with USE="privsep" Closes: https://bugs.gentoo.org/777600 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> net-misc/dhcpcd/dhcpcd-9.3.4.ebuild | 1 + .../files/dhcpcd-9.3.4-include_termios.patch | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+)