glibc-2.27-r1 defines the function memfd_create; therefore it mustn't be redefined in pulseaudio Insert the following lines into the src-prepare function # glibc-2.27 defines memfd_create sed -i -e'/static inline int memfd_create/,+2 d' src/pulsecore/memfd-wrappers.h
Please provide a patch as unified diff. You might want to submit this issue upstream as well.
Created attachment 519088 [details, diff] patch that allow pulseaudio to be built with glibc-2.27 It seems that upstream is already aware of the issue.
(In reply to Cănărău Constantin from comment #2) > It seems that upstream is already aware of the issue. Is there a link to upstream bug report? (or even patch applied)
> Is there a link to upstream bug report? (or even patch applied) Ah, found it: https://bugs.freedesktop.org/show_bug.cgi?id=104733 https://github.com/pulseaudio/pulseaudio/commit/dfb0460fb4743aec047cdf755a660a9ac2d0f3fb
Appearently also Debian-unstable applied this patch on 2018-04-05, ChangeLog: --- Backport upstream patch to use memfd_create wrapper provided by glibc if available. (Closes: #894104) ---
*** Bug 650858 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80fdc7def4a6fefb711f282435ebc14f10078422 commit 80fdc7def4a6fefb711f282435ebc14f10078422 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2018-05-28 22:16:41 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2018-06-02 17:06:37 +0000 media-sound/pulseaudio: Fix build with glibc-2.27 Closes: https://bugs.gentoo.org/646566 Package-Manager: Portage-2.3.40, Repoman-2.3.9 .../files/pulseaudio-11.1-glibc-2.27.patch | 59 ++++++++++++++++++++++ media-sound/pulseaudio/pulseaudio-11.1-r1.ebuild | 5 +- 2 files changed, 63 insertions(+), 1 deletion(-)