Bug 1079830 - [glibc2.27] libxshmfence fails to build
[glibc2.27] libxshmfence fails to build
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: X.Org
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Michal Srb
E-mail List
Depends on:
Blocks: 1079753
  Show dependency treegraph
Reported: 2018-02-07 13:31 UTC by Dominique Leuenberger
Modified: 2018-02-07 14:43 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Leuenberger 2018-02-07 13:31:56 UTC
openSUSE Factory is in progress of merging GLIBC 2.27 - libxshmfence is amongst the packages failing to build

From the build log:

[   47s] xshmfence_alloc.c: In function 'xshmfence_alloc_shm':
[   47s] xshmfence_alloc.c:73:7: error: implicit declaration of function 'memfd_create'; did you mean 'SYS_memfd_create'? [-Werror=implicit-function-declaration]
[   47s]   fd = memfd_create("xshmfence", MFD_CLOEXEC|MFD_ALLOW_SEALING);
[   47s]        ^~~~~~~~~~~~
[   47s]        SYS_memfd_create
[   47s] xshmfence_alloc.c:73:7: warning: nested extern declaration of 'memfd_create' [-Wnested-externs]

Complete build log at https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:C/libxshmfence/standard/x86_64
Comment 1 Michal Srb 2018-02-07 14:31:12 UTC
Looks like we need:

commit 0b550a4e7acf02d3478602848f6afbfcbfb0d4b2
Author: Ross Burton <ross.burton@intel.com>
Date:   Mon Jan 29 16:24:36 2018 +0000

    configure.ac: call AC_USE_SYSTEM_EXTENSIONS
    With glibc 2.27 memfd_create() is inside a _GNU_SOURCE guard, so call
    AC_USE_SYSTEM_EXTENSIONS to get this defined.
Comment 2 Michal Srb 2018-02-07 14:43:17 UTC
Submitted: https://build.opensuse.org/request/show/573735