D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/flatpak-0.10.3-1.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.mrkny0 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf flatpak-0.10.3 + /usr/bin/xz -dc /home/pterjan/rpmbuild/SOURCES/flatpak-0.10.3.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd flatpak-0.10.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.aLzdh6 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd flatpak-0.10.3 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + test -x configure + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export FFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + CONFIGURE_TOP=. + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool Modifying ltmain.sh underlinking for plugins (cf http://wiki.mandriva.com/en/Underlinking) + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking Fixing libtool's ltmain.sh to prevent overlinking (cf http://wiki.mandriva.com/en/Overlinking) + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . Fixing libtool inside configure to pass -Wl,xxx options before libraries + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + '[' -f ./configure.in -o -f ./configure.ac ']' + CONFIGURE_XPATH='--x-includes=/usr/include --x-libraries=/usr/lib64' + ./configure --build=x86_64-mageia-linux-gnu --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --x-includes=/usr/include --x-libraries=/usr/lib64 --with-priv-mode=none --with-system-bubblewrap --enable-docbook-docs checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-mageia-linux-gnu file names to x86_64-mageia-linux-gnu format... func_convert_file_noop checking how to convert x86_64-mageia-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... gawk checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking whether make supports nested variables... yes checking whether UID '1001' is supported by ustar format... yes checking whether GID '1001' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... (cached) /usr/bin/sed checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for ld used by gcc... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking for shared library run path origin... done checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking whether make supports nested variables... (cached) yes checking whether to enable maintainer-specific portions of Makefiles... yes checking if gcc supports flag -pipe in envvar CFLAGS... yes checking if gcc supports flag -Wall in envvar CFLAGS... yes checking if gcc supports flag -Werror=empty-body in envvar CFLAGS... yes checking if gcc supports flag -Werror=strict-prototypes in envvar CFLAGS... yes checking if gcc supports flag -Werror=missing-prototypes in envvar CFLAGS... yes checking if gcc supports flag -Werror=implicit-function-declaration in envvar CFLAGS... yes checking if gcc supports flag -Werror=format=2 -Werror=format-security -Werror=format-nonliteral in envvar CFLAGS... yes checking if gcc supports flag -Werror=pointer-arith in envvar CFLAGS... yes checking if gcc supports flag -Werror=init-self in envvar CFLAGS... yes checking if gcc supports flag -Werror=missing-declarations in envvar CFLAGS... yes checking if gcc supports flag -Werror=return-type in envvar CFLAGS... yes checking if gcc supports flag -Werror=overflow in envvar CFLAGS... yes checking if gcc supports flag -Werror=int-conversion in envvar CFLAGS... yes checking if gcc supports flag -Werror=parenthesis in envvar CFLAGS... no checking if gcc supports flag -Werror=incompatible-pointer-types in envvar CFLAGS... yes checking if gcc supports flag -Werror=misleading-indentation in envvar CFLAGS... yes checking if gcc supports flag -Werror=missing-include-dirs in envvar CFLAGS... yes checking whether to enable Valgrind on the unit tests... checking for valgrind... no yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.24... yes checking for fdwalk... no checking whether renameat2 is declared... no checking whether memfd_create is declared... no checking sys/xattr.h usability... yes checking sys/xattr.h presence... yes checking for sys/xattr.h... yes checking sys/capability.h usability... yes checking sys/capability.h presence... yes checking for sys/capability.h... yes checking for BASE... yes checking for SOUP... yes checking for archive_read_support_filter_all... yes checking for gpgme-config... /usr/bin/gpgme-config checking for DEP_GPGME... no checking for GPGME pthread - version >= 1.1.8... yes checking for POLKIT... yes checking for XAUTH... yes checking for OSTREE... yes checking for FUSE... yes checking for JSON... yes checking for APPSTREAM_GLIB... yes checking for LIBSECCOMP... yes checking for xsltproc... /usr/bin/xsltproc checking for XML catalog (/etc/xml/catalog)... found checking for xmlcatalog... /usr/bin/xmlcatalog checking for DocBook XML DTD V4.1.2 in XML catalog... found checking for DocBook XSL Stylesheets in XML catalog... found checking for gobject-introspection... yes checking for gtk-doc... yes checking for gtkdoc-check... gtkdoc-check.test checking for gtkdoc-check... /usr/bin/gtkdoc-check checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase checking for gtkdoc-mkpdf... no checking whether to build gtk-doc documentation... no checking for GTKDOC_DEPS... yes checking for xmlto... /usr/bin/xmlto checking whether to build DocBook documentation... yes checking for -fvisibility=hidden compiler flag... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating doc/reference/Makefile config.status: creating flatpak.pc config.status: creating lib/flatpak-version-macros.h config.status: creating doc/reference/version.xml config.status: creating doc/flatpak-docs.xml config.status: creating po/Makefile.in config.status: creating config.h config.status: executing libtool commands config.status: executing depfiles commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile Flatpak 0.10.3 ============= Build system helper: yes Build bubblewrap: no Use sandboxed triggers: yes Use seccomp: yes Privileged group: wheel Privilege mode: none Peer to peer support: no + /usr/bin/make -O -j8 V=1 mkdir -p ./common gdbus-codegen \ --interface-prefix org.freedesktop.systemd1. \ --c-namespace Systemd \ --generate-c-code ./common/flatpak-systemd-dbus \ ./data/org.freedesktop.systemd1.xml \ mkdir -p ./document-portal gdbus-codegen \ --interface-prefix org.freedesktop.portal. \ --c-namespace XdpDbus \ --generate-c-code ./document-portal/xdp-dbus \ --annotate "org.freedesktop.portal.Documents.Add()" org.gtk.GDBus.C.UnixFD "yes" \ --annotate "org.freedesktop.portal.Documents.AddFull()" org.gtk.GDBus.C.UnixFD "yes" \ ./data/org.freedesktop.portal.Documents.xml \ mkdir -p ./common gdbus-codegen \ --interface-prefix org.freedesktop.Flatpak. \ --c-namespace Flatpak \ --generate-c-code ./common/flatpak-dbus \ ./data/org.freedesktop.Flatpak.xml \ mkdir -p ./permission-store gdbus-codegen \ --interface-prefix org.freedesktop.impl.portal. \ --c-namespace Xdg \ --generate-c-code ./permission-store/permission-store-dbus \ ./data/org.freedesktop.impl.portal.PermissionStore.xml \ glib-mkenums --template lib/flatpak-enum-types.h.template lib/flatpak.h lib/flatpak-ref.h lib/flatpak-error.h lib/flatpak-installed-ref.h lib/flatpak-remote-ref.h lib/flatpak-related-ref.h lib/flatpak-bundle-ref.h lib/flatpak-installation.h lib/flatpak-remote.h lib/flatpak-version-macros.h > \ lib/flatpak-enum-types.h.tmp && mv lib/flatpak-enum-types.h.tmp lib/flatpak-enum-types.h glib-mkenums --template lib/flatpak-enum-types.c.template lib/flatpak.h lib/flatpak-ref.h lib/flatpak-error.h lib/flatpak-installed-ref.h lib/flatpak-remote-ref.h lib/flatpak-related-ref.h lib/flatpak-bundle-ref.h lib/flatpak-installation.h lib/flatpak-remote.h lib/flatpak-version-macros.h > \ lib/flatpak-enum-types.c.tmp && mv lib/flatpak-enum-types.c.tmp lib/flatpak-enum-types.c /usr/bin/make all-recursive Making all in . make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include "config.h" -DHELPER=\"bwrap\" -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/polkit-1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT lib/flatpak_system_helper-flatpak-error.o -MD -MP -MF lib/.deps/flatpak_system_helper-flatpak-error.Tpo -c -o lib/flatpak_system_helper-flatpak-error.o `test -f 'lib/flatpak-error.c' || echo './'`lib/flatpak-error.c mv -f lib/.deps/flatpak_system_helper-flatpak-error.Tpo lib/.deps/flatpak_system_helper-flatpak-error.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include "config.h" -DHELPER=\"bwrap\" -pipe -Wall -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -I./document-portal -I./document-portal -I./permission-store -I./permission-store -DFLATPAK_COMPILATION -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT document-portal/xdg_document_portal-xdp-main.o -MD -MP -MF document-portal/.deps/xdg_document_portal-xdp-main.Tpo -c -o document-portal/xdg_document_portal-xdp-main.o `test -f 'document-portal/xdp-main.c' || echo './'`document-portal/xdp-main.c In file included from ./libglnx/glnx-missing.h:95:0, from ./libglnx/libglnx.h:28, from ./common/flatpak-db.h:27, from document-portal/xdp-util.h:5, from document-portal/xdp-main.c:16: ./libglnx/glnx-missing-syscall.h:142:23: error: static declaration of 'copy_file_range' follows non-static declaration static inline ssize_t copy_file_range(int fd_in, loff_t *off_in, ^~~~~~~~~~~~~~~ In file included from document-portal/xdp-main.c:9:0: /usr/include/unistd.h:1110:9: note: previous declaration of 'copy_file_range' was here ssize_t copy_file_range (int __infd, __off64_t *__pinoff, ^~~~~~~~~~~~~~~ make[2]: *** [Makefile:3621: document-portal/xdg_document_portal-xdp-main.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include "config.h" -DHELPER=\"bwrap\" -pipe -Wall -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -I./document-portal -I./document-portal -I./permission-store -I./permission-store -DFLATPAK_COMPILATION -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT document-portal/xdg_document_portal-xdp-util.o -MD -MP -MF document-portal/.deps/xdg_document_portal-xdp-util.Tpo -c -o document-portal/xdg_document_portal-xdp-util.o `test -f 'document-portal/xdp-util.c' || echo './'`document-portal/xdp-util.c In file included from ./libglnx/glnx-missing.h:95:0, from ./libglnx/libglnx.h:28, from ./common/flatpak-db.h:27, from document-portal/xdp-util.h:5, from document-portal/xdp-util.c:6: ./libglnx/glnx-missing-syscall.h:142:23: error: static declaration of 'copy_file_range' follows non-static declaration static inline ssize_t copy_file_range(int fd_in, loff_t *off_in, ^~~~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/gio/gcredentials.h:32:0, from /usr/include/glib-2.0/gio/gio.h:46, from document-portal/xdp-util.c:4: /usr/include/unistd.h:1110:9: note: previous declaration of 'copy_file_range' was here ssize_t copy_file_range (int __infd, __off64_t *__pinoff, ^~~~~~~~~~~~~~~ make[2]: *** [Makefile:3635: document-portal/xdg_document_portal-xdp-util.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include "config.h" -DHELPER=\"bwrap\" -pipe -Wall -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -fvisibility=hidden -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libassuan2 -I./dbus-proxy -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT common/libflatpak_common_la-flatpak-json.lo -MD -MP -MF common/.deps/libflatpak_common_la-flatpak-json.Tpo -c -o common/libflatpak_common_la-flatpak-json.lo `test -f 'common/flatpak-json.c' || echo './'`common/flatpak-json.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include config.h -DHELPER=\"bwrap\" -pipe -Wall -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -fvisibility=hidden -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libassuan2 -I./dbus-proxy -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT common/libflatpak_common_la-flatpak-json.lo -MD -MP -MF common/.deps/libflatpak_common_la-flatpak-json.Tpo -c common/flatpak-json.c -fPIC -DPIC -o common/.libs/libflatpak_common_la-flatpak-json.o In file included from ./libglnx/glnx-missing.h:95:0, from ./libglnx/libglnx.h:28, from common/flatpak-utils.h:26, from common/flatpak-json.c:25: ./libglnx/glnx-missing-syscall.h:142:23: error: static declaration of 'copy_file_range' follows non-static declaration static inline ssize_t copy_file_range(int fd_in, loff_t *off_in, ^~~~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/gio/gcredentials.h:32:0, from /usr/include/glib-2.0/gio/gio.h:46, from /usr/include/json-glib-1.0/json-glib/json-generator.h:32, from /usr/include/json-glib-1.0/json-glib/json-glib.h:32, from common/flatpak-json.h:24, from common/flatpak-json.c:24: /usr/include/unistd.h:1110:9: note: previous declaration of 'copy_file_range' was here ssize_t copy_file_range (int __infd, __off64_t *__pinoff, ^~~~~~~~~~~~~~~ make[2]: *** [Makefile:2718: common/libflatpak_common_la-flatpak-json.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include "config.h" -DHELPER=\"bwrap\" -pipe -Wall -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -fvisibility=hidden -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libassuan2 -I./dbus-proxy -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT common/libflatpak_common_la-flatpak-json-oci.lo -MD -MP -MF common/.deps/libflatpak_common_la-flatpak-json-oci.Tpo -c -o common/libflatpak_common_la-flatpak-json-oci.lo `test -f 'common/flatpak-json-oci.c' || echo './'`common/flatpak-json-oci.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include config.h -DHELPER=\"bwrap\" -pipe -Wall -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -fvisibility=hidden -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libassuan2 -I./dbus-proxy -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT common/libflatpak_common_la-flatpak-json-oci.lo -MD -MP -MF common/.deps/libflatpak_common_la-flatpak-json-oci.Tpo -c common/flatpak-json-oci.c -fPIC -DPIC -o common/.libs/libflatpak_common_la-flatpak-json-oci.o In file included from ./libglnx/glnx-missing.h:95:0, from ./libglnx/libglnx.h:28, from common/flatpak-utils.h:26, from common/flatpak-json-oci.c:25: ./libglnx/glnx-missing-syscall.h:142:23: error: static declaration of 'copy_file_range' follows non-static declaration static inline ssize_t copy_file_range(int fd_in, loff_t *off_in, ^~~~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/gio/gcredentials.h:32:0, from /usr/include/glib-2.0/gio/gio.h:46, from /usr/include/json-glib-1.0/json-glib/json-generator.h:32, from /usr/include/json-glib-1.0/json-glib/json-glib.h:32, from common/flatpak-json.h:24, from common/flatpak-json-oci.h:24, from common/flatpak-json-oci.c:24: /usr/include/unistd.h:1110:9: note: previous declaration of 'copy_file_range' was here ssize_t copy_file_range (int __infd, __off64_t *__pinoff, ^~~~~~~~~~~~~~~ make[2]: *** [Makefile:2725: common/libflatpak_common_la-flatpak-json-oci.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include "config.h" -DHELPER=\"bwrap\" -pipe -Wall -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -fvisibility=hidden -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libassuan2 -I./dbus-proxy -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT common/libflatpak_common_la-flatpak-systemd-dbus.lo -MD -MP -MF common/.deps/libflatpak_common_la-flatpak-systemd-dbus.Tpo -c -o common/libflatpak_common_la-flatpak-systemd-dbus.lo `test -f 'common/flatpak-systemd-dbus.c' || echo './'`common/flatpak-systemd-dbus.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include config.h -DHELPER=\"bwrap\" -pipe -Wall -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -fvisibility=hidden -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libassuan2 -I./dbus-proxy -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT common/libflatpak_common_la-flatpak-systemd-dbus.lo -MD -MP -MF common/.deps/libflatpak_common_la-flatpak-systemd-dbus.Tpo -c common/flatpak-systemd-dbus.c -fPIC -DPIC -o common/.libs/libflatpak_common_la-flatpak-systemd-dbus.o mv -f common/.deps/libflatpak_common_la-flatpak-systemd-dbus.Tpo common/.deps/libflatpak_common_la-flatpak-systemd-dbus.Plo make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include "config.h" -DHELPER=\"bwrap\" -pipe -Wall -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -fvisibility=hidden -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libassuan2 -I./dbus-proxy -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT common/libflatpak_common_la-flatpak-oci-registry.lo -MD -MP -MF common/.deps/libflatpak_common_la-flatpak-oci-registry.Tpo -c -o common/libflatpak_common_la-flatpak-oci-registry.lo `test -f 'common/flatpak-oci-registry.c' || echo './'`common/flatpak-oci-registry.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include config.h -DHELPER=\"bwrap\" -pipe -Wall -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -fvisibility=hidden -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libassuan2 -I./dbus-proxy -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT common/libflatpak_common_la-flatpak-oci-registry.lo -MD -MP -MF common/.deps/libflatpak_common_la-flatpak-oci-registry.Tpo -c common/flatpak-oci-registry.c -fPIC -DPIC -o common/.libs/libflatpak_common_la-flatpak-oci-registry.o In file included from ./libglnx/glnx-missing.h:95:0, from ./libglnx/libglnx.h:28, from common/flatpak-oci-registry.c:27: ./libglnx/glnx-missing-syscall.h:142:23: error: static declaration of 'copy_file_range' follows non-static declaration static inline ssize_t copy_file_range(int fd_in, loff_t *off_in, ^~~~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/gio/gcredentials.h:32:0, from /usr/include/glib-2.0/gio/gio.h:46, from /usr/include/gio-unix-2.0/gio/gunixoutputstream.h:24, from common/flatpak-oci-registry.c:24: /usr/include/unistd.h:1110:9: note: previous declaration of 'copy_file_range' was here ssize_t copy_file_range (int __infd, __off64_t *__pinoff, ^~~~~~~~~~~~~~~ make[2]: *** [Makefile:2732: common/libflatpak_common_la-flatpak-oci-registry.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include "config.h" -DHELPER=\"bwrap\" -pipe -Wall -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -fvisibility=hidden -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libassuan2 -I./dbus-proxy -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT common/libflatpak_common_la-flatpak-db.lo -MD -MP -MF common/.deps/libflatpak_common_la-flatpak-db.Tpo -c -o common/libflatpak_common_la-flatpak-db.lo `test -f 'common/flatpak-db.c' || echo './'`common/flatpak-db.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include config.h -DHELPER=\"bwrap\" -pipe -Wall -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -fvisibility=hidden -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libassuan2 -I./dbus-proxy -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT common/libflatpak_common_la-flatpak-db.lo -MD -MP -MF common/.deps/libflatpak_common_la-flatpak-db.Tpo -c common/flatpak-db.c -fPIC -DPIC -o common/.libs/libflatpak_common_la-flatpak-db.o In file included from ./libglnx/glnx-missing.h:95:0, from ./libglnx/libglnx.h:28, from common/flatpak-db.h:27, from common/flatpak-db.c:30: ./libglnx/glnx-missing-syscall.h:142:23: error: static declaration of 'copy_file_range' follows non-static declaration static inline ssize_t copy_file_range(int fd_in, loff_t *off_in, ^~~~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/gio/gcredentials.h:32:0, from /usr/include/glib-2.0/gio/gio.h:46, from ./libglnx/libglnx.h:23, from common/flatpak-db.h:27, from common/flatpak-db.c:30: /usr/include/unistd.h:1110:9: note: previous declaration of 'copy_file_range' was here ssize_t copy_file_range (int __infd, __off64_t *__pinoff, ^~~~~~~~~~~~~~~ make[2]: *** [Makefile:2711: common/libflatpak_common_la-flatpak-db.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include "config.h" -DHELPER=\"bwrap\" -pipe -Wall -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -fvisibility=hidden -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libassuan2 -I./dbus-proxy -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT common/libflatpak_common_la-flatpak-dbus.lo -MD -MP -MF common/.deps/libflatpak_common_la-flatpak-dbus.Tpo -c -o common/libflatpak_common_la-flatpak-dbus.lo `test -f 'common/flatpak-dbus.c' || echo './'`common/flatpak-dbus.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DFLATPAK_BINDIR=\"/usr/bin\" -DFLATPAK_SYSTEMDIR=\"/var/lib/flatpak\" -DFLATPAK_CONFIGDIR=\"/etc/flatpak\" -DFLATPAK_BASEDIR=\"/usr/share/flatpak\" -DFLATPAK_TRIGGERDIR=\"/usr/share/flatpak/triggers\" -DSYSTEM_FONTS_DIR=\"/usr/share/fonts\" -DSYSTEM_FONT_CACHE_DIRS=\"/var/cache/fontconfig:/usr/lib/fontconfig/cache\" -DDBUSPROXY=\"/usr/libexec/flatpak-dbus-proxy\" -DG_LOG_DOMAIN=\"flatpak\" -I./libglnx -I./common -I./common -I./lib -I./lib -include config.h -DHELPER=\"bwrap\" -pipe -Wall -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libxml2 -fvisibility=hidden -I/usr/include/ostree-1 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libassuan2 -I./dbus-proxy -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -MT common/libflatpak_common_la-flatpak-dbus.lo -MD -MP -MF common/.deps/libflatpak_common_la-flatpak-dbus.Tpo -c common/flatpak-dbus.c -fPIC -DPIC -o common/.libs/libflatpak_common_la-flatpak-dbus.o mv -f common/.deps/libflatpak_common_la-flatpak-dbus.Tpo common/.deps/libflatpak_common_la-flatpak-dbus.Plo make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/flatpak-0.10.3' make[1]: *** [Makefile:4239: all-recursive] Error 1 make: *** [Makefile:1679: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.aLzdh6 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.aLzdh6 (%build) I: [iurt_root_command] ERROR: chroot