Summary: | sys-apps/file-5.39[seccomp][ppc64]: error: invalid application of 'sizeof' to incomplete type 'struct termios' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Georgy Yakovlev <gyakovlev> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.astron.com/view.php?id=168 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | file-5.39-add-missing-termios.patch |
Description
Georgy Yakovlev
![]() ![]() On PPC64, TCGETS is defined in terms of struct termios, so it must include termios.h adding #ifdef __powerpc64__ #include <termios.h> #endif to src/seccomp.c fixes the build. Created attachment 644934 [details, diff]
file-5.39-add-missing-termios.patch
after speaking to some folks we figured it's ok to include unconditionally.
on ppc, TCGETS relies on struct termios being complete, on other
architectures it does not.
so termios.h should be included before ioctl.h
patch attached.
it may need autoconf file changes to check for header probably.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d32972fa6671b911726d7a2abd4128afd35a36b commit 3d32972fa6671b911726d7a2abd4128afd35a36b Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2020-06-28 02:07:30 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2020-06-28 02:08:13 +0000 sys-apps/file: revbump 5.39, add include termios.h patch Closes: https://bugs.gentoo.org/728416 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Acked-by: Lars Wendler <polynomial-c@gentoo.org> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> sys-apps/file/file-5.39-r2.ebuild | 141 +++++++++++++++++++++ .../file/files/file-5.39-add-missing-termios.patch | 27 ++++ 2 files changed, 168 insertions(+) |