Summary: | sys-power/suspend-1.0_p20200924 fails to compile: swsusp.h:61:9: error: unknown type name loff_t | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arkamar, mlspamcb, parona |
Priority: | Normal | Keywords: | PATCH, PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/bircoph/suspend/issues/1 https://github.com/gentoo/gentoo/pull/39367 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
Missing #define _GNU_SOURCE |
Description
Agostino Sarubbo
![]() Created attachment 764682 [details]
build.log
build log and emerge --info
Still broken on musl Created attachment 872607 [details, diff]
Missing #define _GNU_SOURCE
Fix for sys-power/suspend on musl hardened.
I wrote a long post but it got deleted.
Now briefly, three files missing a #define:
#define _GNU_SOURCE
The files are:
swsusp.h
suspend.c
load.c
My initial tests where with a GCC option like this:
CFLAGS="${COMMON_FLAGS}-D_GNU_SOURCE" emerge sys-power/suspend
The patch provided works with all USE flags turned on.
It's a gentoo diff that works as a drop in solution in:
/etc/portage/patches
Thanks.
This is caused by com autoreconf mixup .... somewhere. in the make file ONLY -llibgcrypt is seed... Where the following is returned: $ libgcrypt-config --libs -lgcrypt -lgpg-error Not sure where that fails though. For some reasoin -lgpg-error is AWOL. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42e5f21bc0357e5a11ec584cc3f0a3d2324d62cb commit 42e5f21bc0357e5a11ec584cc3f0a3d2324d62cb Author: Christopher Byrne <salah.coronya@gmail.com> AuthorDate: 2024-11-19 01:31:24 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-23 18:29:26 +0000 sys-power/suspend: Fix compile on musl and newer libgcrypt Closes: https://bugs.gentoo.org/939507 Closes: https://bugs.gentoo.org/936933 Closes: https://bugs.gentoo.org/832981 Signed-off-by: Christopher Byrne <salah.coronya@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/39367 Signed-off-by: Sam James <sam@gentoo.org> ...d-1.0_p20200924-Use-pkgconf-for-libgcrypt.patch | 18 ++++++++++++++++ ...suspend-1.0_p20200924-fix-loff_t-for-musl.patch | 24 ++++++++++++++++++++++ sys-power/suspend/suspend-1.0_p20200924.ebuild | 8 ++++++-- 3 files changed, 48 insertions(+), 2 deletions(-) |