Bugzilla – Bug 1079830
[glibc2.27] libxshmfence fails to build
Last modified: 2018-02-07 14:43:17 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
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.
Submitted: https://build.opensuse.org/request/show/573735