On 3/8/18 4:39 PM, [email protected] wrote:
Compiling |libxshmfence-1.2.tar.bz2 fails during make.
make all-recursive
make[1]: Entering directory '/sources/libxshmfence-1.2'
Making all in src
make[2]: Entering directory '/sources/libxshmfence-1.2/src'
CC xshmfence_alloc.lo
xshmfence_alloc.c: In function 'xshmfence_alloc_shm':
xshmfence_alloc.c:73:7: error: implicit declaration of function
'memfd_create'; did you mean 'SYS_memfd_create'?
[-Werror=implicit-function-declaration]
fd = memfd_create("xshmfence", MFD_CLOEXEC|MFD_ALLOW_SEALING);
^~~~~~~~~~~~
SYS_memfd_create
xshmfence_alloc.c:73:7: warning: nested extern declaration of
'memfd_create' [-Wnested-externs]
cc1: some warnings being treated as errors
make[2]: *** [Makefile:458: xshmfence_alloc.lo] Error 1
make[2]: Leaving directory '/sources/libxshmfence-1.2/src'
make[1]: *** [Makefile:486: all-recursive] Error 1
make[1]: Leaving directory '/sources/libxshmfence-1.2'
make: *** [Makefile:394: all] Error 2
-----------------------------------------------------------------------------------------
This is new to me. I have /usr/include/linux/memfd.h on both my working
8.1 partition and my work-in-progress 8.2 attempt. What might I have
done wrong?
See the case statement in the command block where all the libs are
installed. It adds this to the configure command for libxshmfence:
CFLAGS="$CFLAGS -D_GNU_SOURCE"
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page