Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777600 - net-misc/dhcpcd-9.3.4[privsep] - privsep-linux.c:261:35: error: invalid application of 'sizeof' to incomplete type 'struct termios'
Summary: net-misc/dhcpcd-9.3.4[privsep] - privsep-linux.c:261:35: error: invalid appli...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 774942
  Show dependency tree
 
Reported: 2021-03-21 21:46 UTC by ernsteiswuerfel
Modified: 2021-03-31 19:59 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (dhcpcd-9.3.4:20210321-214007.log,15.42 KB, text/plain)
2021-03-21 21:46 UTC, ernsteiswuerfel
Details
emerge --info (file_777600.txt,5.91 KB, text/plain)
2021-03-21 21:47 UTC, ernsteiswuerfel
Details
include_termios.patch (include_termios.patch,329 bytes, patch)
2021-03-31 19:38 UTC, ernsteiswuerfel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2021-03-21 21:46:45 UTC
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
Comment 1 ernsteiswuerfel archtester 2021-03-21 21:47:08 UTC
Created attachment 692829 [details]
emerge --info
Comment 3 ernsteiswuerfel archtester 2021-03-31 19:37:59 UTC
(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.
Comment 4 ernsteiswuerfel archtester 2021-03-31 19:38:51 UTC
Created attachment 696549 [details, diff]
include_termios.patch
Comment 5 Larry the Git Cow gentoo-dev 2021-03-31 19:59:25 UTC
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(+)