Created attachment 492140 [details] sys-libs~gpm:log+emege--info.tar.lz prog/gpm-root.o: In function `main': gpm-root.c:(.text.startup+0x215): undefined reference to `__sigemptyset' collect2: error: ld returned 1 exit status Steps to reproduce: 1. update your system to sys-libs/glibc-2.26 and sys-devel/gcc-7.2.0 2. change your gcc to compile with gcc 7.2.0 (3. emerge -e world) 4. emerge -v =sys-libs/gpm-1.20.7-r2 tested on amdfam10, k8 and silvermont. emerge --info and logfiles are attached.
I get the same error message when using clang/llvm-6 so I think this bug is because of glib-2.26 only.
(In reply to cyrillic from comment #1) > I get the same error message when using clang/llvm-6 so I think this bug is > because of glib-2.26 only. I meant glibc-2.26
Created attachment 493180 [details, diff] sigemptyset.patch Try this patch. It seems to work for me. ... as a side note, epatch_user seems to be missing from the sys-libs/gpm-1.20.7-r2.ebuild
The patch looks good! Can you submit it upstream as well? https://github.com/telmich/gpm
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1618968c56caf7f8c08823908d88dc49bb8f7649 commit 1618968c56caf7f8c08823908d88dc49bb8f7649 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2017-09-19 21:34:32 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2017-09-19 21:34:42 +0000 sys-libs/gpm: tweak for glibc-2.26, bug #629774 Reported-by: Philipp Psurek Fix-by: cyrillic Closes: https://bugs.gentoo.org/629774 Package-Manager: Portage-2.3.8, Repoman-2.3.3 sys-libs/gpm/files/gpm-1.20.7-glibc-2.26.patch | 12 ++++++++++++ sys-libs/gpm/gpm-1.20.7-r2.ebuild | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-)