D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/xsane-0.999-18.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.bBuJpy sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Akecou + umask 022 + cd /home/pterjan/rpmbuild/BUILD/xsane-0.999-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/xsane-0.999-build + rm -rf xsane-0.999 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/xsane-0.999.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd xsane-0.999 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (xsane-0.995-xdg-open.patch):' Patch #0 (xsane-0.995-xdg-open.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .xdg-open --fuzz=0 patching file src/xsane.h + echo 'Patch #1 (xsane-0.995-close-fds.patch):' Patch #1 (xsane-0.995-close-fds.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .close-fds --fuzz=0 patching file src/xsane.c + echo 'Patch #3 (xsane-0.997-off-root-build.patch):' Patch #3 (xsane-0.997-off-root-build.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .off-root-build --fuzz=0 patching file configure.in patching file doc/Makefile.in patching file lib/Makefile.in patching file src/Makefile.in + echo 'Patch #4 (xsane-0.999-no-file-selected.patch):' Patch #4 (xsane-0.999-no-file-selected.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .no-file-selected --fuzz=0 patching file src/xsane-back-gtk.c patching file src/xsane-front-gtk.c + echo 'Patch #5 (xsane-0.997-ipv6.patch):' Patch #5 (xsane-0.997-ipv6.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .ipv6 --fuzz=0 patching file src/xsane-save.c + echo 'Patch #6 (xsane-0.998-preview-selection.patch):' Patch #6 (xsane-0.998-preview-selection.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .preview-selection.patch --fuzz=0 patching file src/xsane-preview.c + echo 'Patch #7 (xsane-0.998-libpng.patch):' Patch #7 (xsane-0.998-libpng.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .libpng --fuzz=0 patching file src/xsane-save.c + echo 'Patch #8 (xsane-0.998-wmclass.patch):' Patch #8 (xsane-0.998-wmclass.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .wmclass --fuzz=0 patching file src/xsane.c Hunk #1 succeeded at 6212 (offset 4 lines). + echo 'Patch #9 (xsane-desktop.patch):' Patch #9 (xsane-desktop.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .desktop-file --fuzz=0 patching file src/xsane.desktop + echo 'Patch #10 (xsane-0.999-man-page.patch):' Patch #10 (xsane-0.999-man-page.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .man-page --fuzz=0 patching file doc/xsane.man + echo 'Patch #11 (xsane-0.999-pdf-no-high-bpp.patch):' Patch #11 (xsane-0.999-pdf-no-high-bpp.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .pdf-no-high-bpp --fuzz=0 patching file src/xsane-save.c + echo 'Patch #12 (xsane-0.999-lcms2.patch):' Patch #12 (xsane-0.999-lcms2.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .lcms2 --fuzz=0 patching file configure.in patching file include/config.h.in patching file src/xsane-preview.c patching file src/xsane-save.c patching file src/xsane-viewer.c patching file src/xsane.h + echo 'Patch #13 (xsane-0.999-coverity.patch):' Patch #13 (xsane-0.999-coverity.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .coverity --fuzz=0 patching file src/xsane-back-gtk.c patching file src/xsane-batch-scan.c patching file src/xsane-email-project.c patching file src/xsane-fax-project.c patching file src/xsane-front-gtk.c patching file src/xsane-multipage-project.c patching file src/xsane-preview.c patching file src/xsane-save.c patching file src/xsane-scan.c patching file src/xsane-setup.c patching file src/xsane-text.h Hunk #1 succeeded at 801 (offset -2 lines). patching file src/xsane-viewer.c patching file src/xsane.c Hunk #1 succeeded at 580 (offset -5 lines). Hunk #2 succeeded at 596 (offset -5 lines). Hunk #3 succeeded at 1160 (offset -5 lines). Hunk #4 succeeded at 1397 (offset -5 lines). Hunk #5 succeeded at 1431 (offset -5 lines). Hunk #6 succeeded at 1579 (offset -5 lines). Hunk #7 succeeded at 2589 (offset -108 lines). Hunk #8 succeeded at 2624 (offset -108 lines). Hunk #9 succeeded at 2663 (offset -108 lines). Hunk #10 succeeded at 2671 (offset -108 lines). Hunk #11 succeeded at 2706 (offset -108 lines). Hunk #12 succeeded at 2787 (offset -108 lines). Hunk #13 succeeded at 2843 (offset -108 lines). Hunk #14 succeeded at 2914 (offset -108 lines). Hunk #15 succeeded at 3097 (offset -108 lines). Hunk #16 succeeded at 3123 (offset -108 lines). Hunk #17 succeeded at 3281 (offset -108 lines). Hunk #18 succeeded at 3696 (offset -111 lines). Hunk #19 succeeded at 4043 (offset -111 lines). Hunk #20 succeeded at 4053 (offset -111 lines). Hunk #21 succeeded at 4063 (offset -111 lines). Hunk #22 succeeded at 5605 (offset -111 lines). + echo 'Patch #14 (xsane-0.999-snprintf-update.patch):' Patch #14 (xsane-0.999-snprintf-update.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .snprintf-update --fuzz=0 patching file lib/snprintf.c + echo 'Patch #15 (xsane-0.999-signal-handling.patch):' Patch #15 (xsane-0.999-signal-handling.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .signal-handling --fuzz=0 patching file src/xsane.c Hunk #5 succeeded at 6138 (offset 4 lines). Hunk #6 succeeded at 6183 (offset 4 lines). + echo 'Patch #16 (xsane-configure-implicit-function-declaration.patch):' Patch #16 (xsane-configure-implicit-function-declaration.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .implicit-function-declaration --fuzz=0 patching file configure patching file m4/sane.m4 + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.owubIz + umask 022 + cd /home/pterjan/rpmbuild/BUILD/xsane-0.999-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd xsane-0.999 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + /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 + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --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 configure: WARNING: unrecognized options: --disable-dependency-tracking ************************************************************************** checking whether GTK+-2.0 is requested... yes checking whether GIMP plugin is requested... yes checking whether GIMP-2.0 is requested... yes checking whether JPEG support is requested... yes checking whether PNG support is requested... yes checking whether TIFF support is requested... yes checking whether LCMS (color management) support is requested... yes ************************************************************************** checking for x86_64-mageia-linux-gnu-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 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 library containing strerror... none required checking for x86_64-mageia-linux-gnu-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 for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... gcc -E checking whether gcc needs -traditional... no checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking for ANSI C header files... (cached) yes checking for windows.h... (cached) no checking os2.h usability... no checking os2.h presence... no checking for os2.h... no checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for unistd.h... (cached) yes checking libc.h usability... no checking libc.h presence... no checking for libc.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking return type of signal handlers... void checking for size_t... yes checking for pid_t... yes checking for ssize_t... yes checking for u_char... yes checking for u_int... yes checking for u_long... yes checking for sqrt in -lm... yes checking for deflateInit_ in -lz... yes checking for jpeg_start_decompress in -ljpeg... yes checking for TIFFOpen in -ltiff... yes checking for cmsOpenProfileFromFile in -llcms... no checking for working alloca.h... yes checking for alloca... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for getpagesize... yes checking for working mmap... yes checking for atexit... yes checking for mkdir... yes checking for sigprocmask... yes checking for strdup... yes checking for strndup... yes checking for strftime... yes checking for strstr... yes checking for strsep... yes checking for strtod... yes checking for snprintf... yes checking for usleep... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for lstat... yes checking for x86_64-mageia-linux-gnu-ranlib... no checking for ranlib... ranlib checking for off_t... yes checking argz.h usability... yes checking argz.h presence... yes checking for argz.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking nl_types.h usability... yes checking nl_types.h presence... yes checking for nl_types.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking values.h usability... yes checking values.h presence... yes checking for values.h... yes checking for sys/param.h... (cached) yes checking for getcwd... yes checking for munmap... yes checking for putenv... yes checking for setenv... yes checking for setlocale... yes checking for strchr... yes checking for strcasecmp... (cached) yes checking for __argz_count... yes checking for __argz_stringify... yes checking for __argz_next... yes checking for stpcpy... yes checking for LC_MESSAGES... yes checking whether NLS is requested... yes checking whether included gettext is requested... no checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking for gettext in libc... yes checking for msgfmt... /usr/bin/msgfmt checking for dcgettext... yes checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for catalogs to be installed... ca cs da de es fi fr hu it ja nl pa pl pt pt_BR ro ru sk sl sr sv vi tr zh zh_CN checking for sane-config... /usr/bin/sane-config checking for SANE - version >= 1.0.0... yes checking for pkg-config... /usr/bin/pkg-config checking for GIMP - version >= 1.3.23... *** Could not run GIMP test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means GIMP is incorrectly installed. *** When gimp-2.0 is not installed but gimp-1.x is installed then you can *** ignore this error message. checking for pkg-config... (cached) /usr/bin/pkg-config checking for GTK+ - version >= 2.0.0... yes (version 2.24.33) checking for gimp-config... no checking for gimptool... no checking libgimp/gimp.h usability... no checking libgimp/gimp.h presence... no checking for libgimp/gimp.h... no checking libgimp/gimpfeatures.h usability... no checking libgimp/gimpfeatures.h presence... no checking for libgimp/gimpfeatures.h... no no *** Could not run GIMP test program, checking why... checking png.h usability... yes checking png.h presence... yes checking for png.h... yes checking for png_create_info_struct in -lpng... yes configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: creating intl/Makefile config.status: WARNING: 'intl/Makefile.in' seems to ignore the --datarootdir setting config.status: creating po/Makefile config.status: creating lib/Makefile config.status: WARNING: 'lib/Makefile.in' seems to ignore the --datarootdir setting config.status: creating src/Makefile config.status: WARNING: 'src/Makefile.in' seems to ignore the --datarootdir setting config.status: creating include/Makefile config.status: creating doc/Makefile config.status: WARNING: 'doc/Makefile.in' seems to ignore the --datarootdir setting config.status: creating xsane.spec config.status: creating include/config.h configure: WARNING: unrecognized options: --disable-dependency-tracking **************************************************************** * * * XSANE configure status: * * ----------------------- * * - NLS activated (external) * * - GIMP plugin deactivated * * - JPEG support activated * * - TIFF support activated * * - PNG support activated * * - LCMS (color management) support deactivated * * * **************************************************************** * * * To compile XSANE: * * ----------------- * * make * * make install * * * * ------------------------------------------------------------ * * ... PLEASE READ SANE DOCUMENTATION BEFORE STARTING XSANE ... * * ------------------------------------------------------------ * **************************************************************** NEWS: Due to changes in the configuration file routines you have to enter some data in preferences->setup. In general there is nothing special you have to care about to get xsane to work. Read xsane.CHANGES if you are interested in details of what has changed. If you experience any problems after you upgraded xsane it may help to remove the setup and preferences files of xsane: rm -rf ~/.sane/xsane + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + /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 + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --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 --disable-gimp configure: WARNING: unrecognized options: --disable-dependency-tracking ************************************************************************** checking whether GTK+-2.0 is requested... yes checking whether GIMP plugin is requested... no checking whether JPEG support is requested... yes checking whether PNG support is requested... yes checking whether TIFF support is requested... yes checking whether LCMS (color management) support is requested... yes ************************************************************************** checking for x86_64-mageia-linux-gnu-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 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 library containing strerror... none required checking for x86_64-mageia-linux-gnu-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 for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... gcc -E checking whether gcc needs -traditional... no checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking for ANSI C header files... (cached) yes checking for windows.h... (cached) no checking os2.h usability... no checking os2.h presence... no checking for os2.h... no checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for unistd.h... (cached) yes checking libc.h usability... no checking libc.h presence... no checking for libc.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking return type of signal handlers... void checking for size_t... yes checking for pid_t... yes checking for ssize_t... yes checking for u_char... yes checking for u_int... yes checking for u_long... yes checking for sqrt in -lm... yes checking for deflateInit_ in -lz... yes checking for jpeg_start_decompress in -ljpeg... yes checking for TIFFOpen in -ltiff... yes checking for cmsOpenProfileFromFile in -llcms... no checking for working alloca.h... yes checking for alloca... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for getpagesize... yes checking for working mmap... yes checking for atexit... yes checking for mkdir... yes checking for sigprocmask... yes checking for strdup... yes checking for strndup... yes checking for strftime... yes checking for strstr... yes checking for strsep... yes checking for strtod... yes checking for snprintf... yes checking for usleep... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for lstat... yes checking for x86_64-mageia-linux-gnu-ranlib... no checking for ranlib... ranlib checking for off_t... yes checking argz.h usability... yes checking argz.h presence... yes checking for argz.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking nl_types.h usability... yes checking nl_types.h presence... yes checking for nl_types.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking values.h usability... yes checking values.h presence... yes checking for values.h... yes checking for sys/param.h... (cached) yes checking for getcwd... yes checking for munmap... yes checking for putenv... yes checking for setenv... yes checking for setlocale... yes checking for strchr... yes checking for strcasecmp... (cached) yes checking for __argz_count... yes checking for __argz_stringify... yes checking for __argz_next... yes checking for stpcpy... yes checking for LC_MESSAGES... yes checking whether NLS is requested... yes checking whether included gettext is requested... no checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking for gettext in libc... yes checking for msgfmt... /usr/bin/msgfmt checking for dcgettext... yes checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for catalogs to be installed... ca cs da de es fi fr hu it ja nl pa pl pt pt_BR ro ru sk sl sr sv vi tr zh zh_CN checking for sane-config... /usr/bin/sane-config checking for SANE - version >= 1.0.0... yes checking for pkg-config... /usr/bin/pkg-config checking for GTK+ - version >= 2.0.0... yes (version 2.24.33) checking png.h usability... yes checking png.h presence... yes checking for png.h... yes checking for png_create_info_struct in -lpng... yes configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: creating intl/Makefile config.status: WARNING: 'intl/Makefile.in' seems to ignore the --datarootdir setting config.status: creating po/Makefile config.status: creating lib/Makefile config.status: WARNING: 'lib/Makefile.in' seems to ignore the --datarootdir setting config.status: creating src/Makefile config.status: WARNING: 'src/Makefile.in' seems to ignore the --datarootdir setting config.status: creating include/Makefile config.status: creating doc/Makefile config.status: WARNING: 'doc/Makefile.in' seems to ignore the --datarootdir setting config.status: creating xsane.spec config.status: creating include/config.h config.status: include/config.h is unchanged configure: WARNING: unrecognized options: --disable-dependency-tracking **************************************************************** * * * XSANE configure status: * * ----------------------- * * - NLS activated (external) * * - GIMP plugin deactivated * * - JPEG support activated * * - TIFF support activated * * - PNG support activated * * - LCMS (color management) support deactivated * * * **************************************************************** * * * To compile XSANE: * * ----------------- * * make * * make install * * * * ------------------------------------------------------------ * * ... PLEASE READ SANE DOCUMENTATION BEFORE STARTING XSANE ... * * ------------------------------------------------------------ * **************************************************************** NEWS: Due to changes in the configuration file routines you have to enter some data in preferences->setup. In general there is nothing special you have to care about to get xsane to work. Read xsane.CHANGES if you are interested in details of what has changed. If you experience any problems after you upgraded xsane it may help to remove the setup and preferences files of xsane: rm -rf ~/.sane/xsane + /usr/bin/make -O -j48 V=1 VERBOSE=1 for subdir in lib src po doc; do \ target=`echo all-recursive | sed s/-recursive//`; \ echo making $target in $subdir; \ (cd $subdir && /usr/bin/make $target) \ || case "-j48 -Otarget --jobserver-auth=fifo:/tmp/GMfifo1843455 --sync-mutex=fnm:/tmp/GmGm4hEu" in *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$fail" making all in lib make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall alloca.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall strndup.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall usleep.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall snprintf.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall strsep.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall getopt.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall getopt1.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall strdup.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall md5.c md5.c: In function 'md5_init_ctx': md5.c:63:1: warning: old-style function definition [-Wold-style-definition] 63 | md5_init_ctx (ctx) | ^~~~~~~~~~~~ md5.c: In function 'md5_read_ctx': md5.c:81:1: warning: old-style function definition [-Wold-style-definition] 81 | md5_read_ctx (ctx, resbuf) | ^~~~~~~~~~~~ md5.c: In function 'md5_finish_ctx': md5.c:99:1: warning: old-style function definition [-Wold-style-definition] 99 | md5_finish_ctx (ctx, resbuf) | ^~~~~~~~~~~~~~ md5.c: In function 'md5_stream': md5.c:130:1: warning: old-style function definition [-Wold-style-definition] 130 | md5_stream (stream, resblock) | ^~~~~~~~~~ md5.c: In function 'md5_buffer': md5.c:187:1: warning: old-style function definition [-Wold-style-definition] 187 | md5_buffer (buffer, len, resblock) | ^~~~~~~~~~ md5.c: In function 'md5_process_bytes': md5.c:206:1: warning: old-style function definition [-Wold-style-definition] 206 | md5_process_bytes (buffer, len, ctx) | ^~~~~~~~~~~~~~~~~ md5.c: In function 'md5_process_block': md5.c:264:1: warning: old-style function definition [-Wold-style-definition] 264 | md5_process_block (buffer, len, ctx) | ^~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' ar r liblib.a alloca.o getopt.o getopt1.o strndup.o strdup.o strsep.o snprintf.o usleep.o md5.o ar: creating liblib.a ranlib liblib.a make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/lib' making all in src make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-icons.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-gamma.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-gamma.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ xsane-gamma.c: In function 'xsane_slider_hold_event': xsane-gamma.c:581:70: error: passing argument 2 of 'gtk_timeout_add' from incompatible pointer type [-Wincompatible-pointer-types] 581 | xsane.slider_timer = gtk_timeout_add(XSANE_CONTINUOUS_HOLD_TIME, xsane_slider_hold_event, 0); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | gint (*)(void) {aka int (*)(void)} In file included from /usr/include/gtk-2.0/gtk/gtk.h:121: /usr/include/gtk-2.0/gtk/gtkmain.h:175:56: note: expected 'GtkFunction' {aka 'int (*)(void *)'} but argument is of type 'gint (*)(void)' {aka 'int (*)(void)'} 175 | GtkFunction function, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ xsane-gamma.c:570:13: note: 'xsane_slider_hold_event' declared here 570 | static gint xsane_slider_hold_event() | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-2.0/gtk/gtktypeutils.h:51:20: note: 'GtkFunction' declared here 51 | typedef gboolean (*GtkFunction) (gpointer data); | ^~~~~~~~~~~ xsane-gamma.c: In function 'xsane_slider_callback': xsane-gamma.c:679:74: error: passing argument 2 of 'gtk_timeout_add' from incompatible pointer type [-Wincompatible-pointer-types] 679 | xsane.slider_timer = gtk_timeout_add(XSANE_CONTINUOUS_HOLD_TIME, xsane_slider_hold_event, 0); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | gint (*)(void) {aka int (*)(void)} /usr/include/gtk-2.0/gtk/gtkmain.h:175:56: note: expected 'GtkFunction' {aka 'int (*)(void *)'} but argument is of type 'gint (*)(void)' {aka 'int (*)(void)'} 175 | GtkFunction function, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ xsane-gamma.c:570:13: note: 'xsane_slider_hold_event' declared here 570 | static gint xsane_slider_hold_event() | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-2.0/gtk/gtktypeutils.h:51:20: note: 'GtkFunction' declared here 51 | typedef gboolean (*GtkFunction) (gpointer data); | ^~~~~~~~~~~ xsane-gamma.c:693:61: error: passing argument 2 of 'gtk_timeout_add' from incompatible pointer type [-Wincompatible-pointer-types] 693 | xsane.slider_timer = gtk_timeout_add(XSANE_HOLD_TIME, xsane_slider_hold_event, 0); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | gint (*)(void) {aka int (*)(void)} /usr/include/gtk-2.0/gtk/gtkmain.h:175:56: note: expected 'GtkFunction' {aka 'int (*)(void *)'} but argument is of type 'gint (*)(void)' {aka 'int (*)(void)'} 175 | GtkFunction function, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ xsane-gamma.c:570:13: note: 'xsane_slider_hold_event' declared here 570 | static gint xsane_slider_hold_event() | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-2.0/gtk/gtktypeutils.h:51:20: note: 'GtkFunction' declared here 51 | typedef gboolean (*GtkFunction) (gpointer data); | ^~~~~~~~~~~ xsane-gamma.c:593:18: warning: variable 'motion_event' set but not used [-Wunused-but-set-variable] 593 | GdkEventMotion *motion_event; | ^~~~~~~~~~~~ xsane-gamma.c: In function 'xsane_enhancement_by_gamma': xsane-gamma.c:1966:82: error: passing argument 2 of 'gtk_timeout_add' from incompatible pointer type [-Wincompatible-pointer-types] 1966 | xsane.batch_scan_gamma_timer = gtk_timeout_add(XSANE_CONTINUOUS_HOLD_TIME * 4, xsane_batch_scan_gamma_event, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | gint (*)(void) {aka int (*)(void)} /usr/include/gtk-2.0/gtk/gtkmain.h:175:56: note: expected 'GtkFunction' {aka 'int (*)(void *)'} but argument is of type 'gint (*)(void)' {aka 'int (*)(void)'} 175 | GtkFunction function, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ xsane-gamma.c:556:13: note: 'xsane_batch_scan_gamma_event' declared here 556 | static gint xsane_batch_scan_gamma_event() | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-2.0/gtk/gtktypeutils.h:51:20: note: 'GtkFunction' declared here 51 | typedef gboolean (*GtkFunction) (gpointer data); | ^~~~~~~~~~~ make[1]: *** [Makefile:63: xsane-gamma.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-scan.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-scan.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ xsane-scan.c: In function 'xsane_read_image_data': xsane-scan.c:144:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 144 | size_t bytes_read; | ^~~~~~~~~~ xsane-scan.c: In function 'xsane_sigpipe_handler': xsane-scan.c:912:3: error: too many arguments to function 'xsane_cancel_save'; expected 0, have 1 912 | xsane_cancel_save(&xsane.cancel_save); | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ In file included from xsane-scan.c:31: xsane-save.h:53:13: note: declared here 53 | extern void xsane_cancel_save(); | ^~~~~~~~~~~~~~~~~ xsane-scan.c: In function 'xsane_scan_done': xsane-scan.c:1337:12: warning: variable 'printer_resolution' set but not used [-Wunused-but-set-variable] 1337 | int printer_resolution; | ^~~~~~~~~~~~~~~~~~ xsane-scan.c:1293:11: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 1293 | getcwd(pathname, sizeof(pathname)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:63: xsane-scan.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-save.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-save.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ xsane-save.c:159:6: error: conflicting types for 'xsane_cancel_save'; have 'void(int *)' 159 | void xsane_cancel_save(int *cancel_save) | ^~~~~~~~~~~~~~~~~ In file included from xsane-save.c:28: xsane-save.h:53:13: note: previous declaration of 'xsane_cancel_save' with type 'void(void)' 53 | extern void xsane_cancel_save(); | ^~~~~~~~~~~~~~~~~ xsane-save.c: In function 'xsane_read_pnm_header': xsane-save.c:435:6: warning: variable 'items_done' set but not used [-Wunused-but-set-variable] 435 | int items_done; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_scaled_image': xsane-save.c:1056:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 1056 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_despeckle_image': xsane-save.c:1356:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 1356 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_blur_image': xsane-save.c:1557:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 1557 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_write_flatedecode': xsane-save.c:2510:14: warning: variable 'count' set but not used [-Wunused-but-set-variable] 2510 | static int count = 0; | ^~~~~ xsane-save.c: In function 'xsane_write_compressed_a85': xsane-save.c:2786:14: warning: variable 'linelen' set but not used [-Wunused-but-set-variable] 2786 | static int linelen = 0; | ^~~~~~~ xsane-save.c:2785:14: warning: variable 'cbuflen' set but not used [-Wunused-but-set-variable] 2785 | static int cbuflen = 0; | ^~~~~~~ xsane-save.c: In function 'xsane_save_ps_pdf_gray': xsane-save.c:3103:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 3103 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_ps_pdf_color': xsane-save.c:3354:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 3354 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_jpeg': xsane-save.c:4444:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 4444 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_tiff_page': xsane-save.c:4695:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 4695 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_png': xsane-save.c:4964:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 4964 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_png_16': xsane-save.c:5154:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5154 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_pnm_16_ascii_gray': xsane-save.c:5335:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5335 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_pnm_16_ascii_color': xsane-save.c:5443:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5443 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_pnm_16_binary_gray': xsane-save.c:5552:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5552 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_pnm_16_binary_color': xsane-save.c:5650:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5650 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_pnm_8_gray': xsane-save.c:5752:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5752 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_pnm_8_color': xsane-save.c:5848:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5848 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'write_3chars_as_base64': xsane-save.c:7302:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7302 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_string_base64': xsane-save.c:7333:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7333 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_base64': xsane-save.c:7368:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7368 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_email_header': xsane-save.c:7420:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7420 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_email_footer': xsane-save.c:7457:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7457 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_email_mime_ascii': xsane-save.c:7468:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7468 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_email_mime_html': xsane-save.c:7488:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7488 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_email_attach_image': xsane-save.c:7514:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7514 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_email_attach_file': xsane-save.c:7548:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7548 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'pop3_login': xsane-save.c:7664:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7664 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'asmtp_authentication': xsane-save.c:7720:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7720 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_smtp_header': xsane-save.c:7820:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7820 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_smtp_footer': xsane-save.c:7976:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7976 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'xsane_read_pnm_header': xsane-save.c:437:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 437 | fgets(buf, sizeof(buf)-1, file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-save.c:451:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 451 | fgets(buf, sizeof(buf)-1, file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-save.c: In function 'xsane_save_image_as_text': xsane-save.c:6118:5: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 6118 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ xsane-save.c:6164:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 6164 | fgets(buf, sizeof(buf), ocr_progress); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:63: xsane-save.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-preferences.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-preferences.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-device-preferences.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-device-preferences.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-batch-scan.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-batch-scan.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ xsane-batch-scan.c: In function 'xsane_batch_scan_add': xsane-batch-scan.c:719:13: warning: variable 'list_item' set but not used [-Wunused-but-set-variable] 719 | GtkWidget *list_item; | ^~~~~~~~~ xsane-batch-scan.c: In function 'xsane_batch_scan_update_label': xsane-batch-scan.c:660:30: warning: '%s' directive output may be truncated writing up to 99 bytes into a region of size between 55 and 253 [-Wformat-truncation=] 660 | snprintf(buf, sizeof(buf), "%s\n" /* name */ | ^~~~~~ ...... 668 | geometry_tl_str, | ~~~~~~~~~~~~~~~ xsane-batch-scan.c:662:31: note: format string is defined here 662 | "%s\n" /* geometry_tl */ | ^~ In file included from /usr/include/stdio.h:970, from xsane.h:47: In function 'snprintf', inlined from 'xsane_batch_scan_update_label' at xsane-batch-scan.c:660:3: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 6 and 600 bytes into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-batch-scan.c: In function 'xsane_batch_scan_save_list': xsane-batch-scan.c:434:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] 434 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, filename, strerror(errno)); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'xsane_batch_scan_save_list' at xsane-batch-scan.c:434:7: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-batch-scan.c: In function 'xsane_batch_scan_load_list': xsane-batch-scan.c:354:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] 354 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, filename, strerror(errno)); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'xsane_batch_scan_load_list' at xsane-batch-scan.c:354:7: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-rc-io.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-rc-io.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-multipage-project.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-multipage-project.c:27: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ xsane-multipage-project.c: In function 'xsane_multipage_project_save': xsane-multipage-project.c:530:58: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] 530 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.multipage_status); /* fill 32 characters status line */ | ^ In file included from /usr/include/stdio.h:970, from xsane-multipage-project.c:26: In function 'snprintf', inlined from 'xsane_multipage_project_save' at xsane-multipage-project.c:530:5: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-multipage-project.c: In function 'xsane_multipage_project_save': xsane-multipage-project.c:514:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] 514 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, filename); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'xsane_multipage_project_save' at xsane-multipage-project.c:514:5: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-multipage-project.c: In function 'xsane_multipage_save_file': xsane-multipage-project.c:989:41: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] 989 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_OPEN_FAILED, multipage_filename); | ^~ ~~~~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'xsane_multipage_save_file' at xsane-multipage-project.c:989:7: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-multipage-project.c: In function 'xsane_multipage_save_file': xsane-multipage-project.c:958:41: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] 958 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, multipage_filename); | ^~ ~~~~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'xsane_multipage_save_file' at xsane-multipage-project.c:958:7: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-multipage-project.c: In function 'xsane_multipage_save_file': xsane-multipage-project.c:1073:41: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] 1073 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, source_filename, strerror(errno)); | ^~ ~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'xsane_multipage_save_file' at xsane-multipage-project.c:1073:9: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-multipage-project.c: In function 'xsane_multipage_save_file': xsane-multipage-project.c:943:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] 943 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, multipage_filename); | ^~ ~~~~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'xsane_multipage_save_file' at xsane-multipage-project.c:943:5: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-fax-project.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-fax-project.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ xsane-fax-project.c: In function 'xsane_fax_send': xsane-fax-project.c:1301:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 1301 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ xsane-fax-project.c: In function 'xsane_fax_show_callback': xsane-fax-project.c:1075:9: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 1075 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ xsane-fax-project.c: In function 'xsane_fax_entry_insert_callback': xsane-fax-project.c:909:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 909 | fgets(buf, sizeof(buf), sourcefile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-fax-project.c:950:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 950 | fgets(buf, sizeof(buf), sourcefile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-fax-project.c: In function 'xsane_fax_project_update_project_status': xsane-fax-project.c:461:56: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] 461 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.fax_status); /* fill 32 characters status line */ | ^ In file included from /usr/include/stdio.h:970, from xsane.h:47: In function 'snprintf', inlined from 'xsane_fax_project_update_project_status' at xsane-fax-project.c:461:3: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-fax-project.c: In function 'xsane_fax_send': xsane-fax-project.c:1113:36: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 252 [-Wformat-truncation=] 1113 | snprintf(buf, sizeof(buf), "%s - %s", PROGRESS_CONVERTING_DATA, source_filename); | ^~ ...... 1272 | xsane_fax_convert_pnm_to_ps(source_filename, fax_filename); | ~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'xsane_fax_convert_pnm_to_ps' at xsane-fax-project.c:1113:3, inlined from 'xsane_fax_send' at xsane-fax-project.c:1272:9: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-fax-project.c: In function 'xsane_fax_send': xsane-fax-project.c:1177:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] 1177 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, source_filename, strerror(errno)); | ^~ ...... 1272 | xsane_fax_convert_pnm_to_ps(source_filename, fax_filename); | ~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'xsane_fax_convert_pnm_to_ps' at xsane-fax-project.c:1177:5, inlined from 'xsane_fax_send' at xsane-fax-project.c:1272:9: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-fax-project.c: In function 'xsane_fax_send': xsane-fax-project.c:1165:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] 1165 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, fax_filename, strerror(errno)); | ^~ ...... 1272 | xsane_fax_convert_pnm_to_ps(source_filename, fax_filename); | ~~~~~~~~~~~~ In function 'snprintf', inlined from 'xsane_fax_convert_pnm_to_ps' at xsane-fax-project.c:1165:7, inlined from 'xsane_fax_send' at xsane-fax-project.c:1272:9: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-fax-project.c: In function 'xsane_fax_send': xsane-fax-project.c:1264:43: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] 1264 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, fax_filename); | ^~ ~~~~~~~~~~~~ In function 'snprintf', inlined from 'xsane_fax_send' at xsane-fax-project.c:1264:9: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-fax-project.c: In function 'xsane_fax_project_save': xsane-fax-project.c:507:58: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] 507 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.fax_status); /* fill 32 characters status line */ | ^ In function 'snprintf', inlined from 'xsane_fax_project_save' at xsane-fax-project.c:507:5: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-fax-project.c: In function 'xsane_fax_project_save': xsane-fax-project.c:490:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] 490 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, filename); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'xsane_fax_project_save' at xsane-fax-project.c:490:5: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-fax-project.c: In function 'xsane_fax_entry_insert_callback': xsane-fax-project.c:937:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 1022 [-Wformat-truncation=] 937 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, destpath); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'xsane_fax_entry_insert_callback' at xsane-fax-project.c:937:11: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 1024 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-email-project.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-email-project.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ xsane-email-project.c: In function 'xsane_email_project_display_status': xsane-email-project.c:496:6: warning: variable 'items_done' set but not used [-Wunused-but-set-variable] 496 | int items_done; | ^~~~~~~~~~ xsane-email-project.c: In function 'xsane_create_email': xsane-email-project.c:1528:9: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 1528 | size_t bytes_written; | ^~~~~~~~~~~~~ xsane-email-project.c: In function 'xsane_email_send': xsane-email-project.c:1940:10: warning: variable 'ipc_file' set but not used [-Wunused-but-set-variable] 1940 | FILE *ipc_file = NULL; | ^~~~~~~~ xsane-email-project.c:1950:5: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 1950 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ xsane-email-project.c: In function 'xsane_email_project_display_status': xsane-email-project.c:904:56: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] 904 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.email_status); /* fill 32 characters status line */ | ^ In file included from /usr/include/stdio.h:970, from xsane.h:47: In function 'snprintf', inlined from 'xsane_email_project_update_project_status' at xsane-email-project.c:904:3, inlined from 'xsane_email_project_display_status' at xsane-email-project.c:559:9: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-email-project.c: In function 'xsane_email_project_save': xsane-email-project.c:949:58: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] 949 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.email_status); /* fill 32 characters status line */ | ^ In function 'snprintf', inlined from 'xsane_email_project_save' at xsane-email-project.c:949:5: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-email-project.c: In function 'xsane_email_project_save': xsane-email-project.c:933:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] 933 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, filename); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'xsane_email_project_save' at xsane-email-project.c:933:5: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-email-project.c: In function 'xsane_email_send': xsane-email-project.c:1701:55: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 238 [-Wformat-truncation=] 1701 | snprintf(buf, sizeof(buf), "

\r\n", content_id); | ^~ ~~~~~~~~~~ In function 'snprintf', inlined from 'xsane_create_email' at xsane-email-project.c:1701:9, inlined from 'xsane_email_send_process' at xsane-email-project.c:1846:3, inlined from 'xsane_email_send' at xsane-email-project.c:1953:5: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 22 and 276 bytes into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane-email-project.c: In function 'xsane_email_send': xsane-email-project.c:1672:59: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 238 [-Wformat-truncation=] 1672 | snprintf(buf, sizeof(buf), "

\r\n", content_id); | ^~ ~~~~~~~~~~ In function 'snprintf', inlined from 'xsane_create_email' at xsane-email-project.c:1672:13, inlined from 'xsane_email_send_process' at xsane-email-project.c:1846:3, inlined from 'xsane_email_send' at xsane-email-project.c:1953:5: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 22 and 276 bytes into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-viewer.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-viewer.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ xsane-viewer.c: In function 'xsane_viewer_scale_set_size_x_value_and_adjustments': xsane-viewer.c:532:19: warning: variable 'image_height' set but not used [-Wunused-but-set-variable] 532 | int image_width, image_height; | ^~~~~~~~~~~~ xsane-viewer.c: In function 'xsane_viewer_scale_set_size_y_value_and_adjustments': xsane-viewer.c:556:6: warning: variable 'image_width' set but not used [-Wunused-but-set-variable] 556 | int image_width, image_height; | ^~~~~~~~~~~ xsane-viewer.c: In function 'xsane_viewer_read_image_header': xsane-viewer.c:2157:6: warning: variable 'pos0' set but not used [-Wunused-but-set-variable] 2157 | int pos0; | ^~~~ xsane-viewer.c: In function 'xsane_viewer_read_image': xsane-viewer.c:2212:6: warning: variable 'nread' set but not used [-Wunused-but-set-variable] 2212 | int nread; | ^~~~~ xsane-viewer.c:2209:17: warning: unused variable 'cms_row' [-Wunused-variable] 2209 | unsigned char *cms_row, *row = NULL, *src_row = NULL; | ^~~~~~~ xsane-viewer.c: In function 'xsane_viewer_save_callback': xsane-viewer.c:379:7: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 379 | getcwd(pathname, sizeof(pathname)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:283:5: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] 283 | strncpy(outputfilename, preferences.filename, sizeof(outputfilename)); | ^ xsane-viewer.c:279:5: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] 279 | strncpy(outputfilename, v->output_filename, sizeof(outputfilename)); | ^ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-front-gtk.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-front-gtk.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ xsane-front-gtk.c: In function 'xsane_set_all_resolutions': xsane-front-gtk.c:351:6: warning: variable 'printer_resolution' set but not used [-Wunused-but-set-variable] 351 | int printer_resolution; | ^~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-back-gtk.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-back-gtk.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ xsane-back-gtk.c: In function 'xsane_back_gtk_button_update': xsane-back-gtk.c:1904:32: warning: variable 'opt' set but not used [-Wunused-but-set-variable] 1904 | const SANE_Option_Descriptor *opt; | ^~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-setup.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-setup.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ xsane-setup.c: In function 'xsane_enhance_notebook': xsane-setup.c:3364:22: warning: variable 'status' set but not used [-Wunused-but-set-variable] 3364 | SANE_Status status; | ^~~~~~ xsane-setup.c: In function 'xsane_setup_browse_tmp_path_callback': xsane-setup.c:1531:3: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 1531 | strncpy(tmp_path, old_tmp_path, sizeof(tmp_path)); | ^ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ xsane.c: In function 'xsane_scanmode_menu_callback': xsane.c:1120:32: warning: variable 'opt' set but not used [-Wunused-but-set-variable] 1120 | const SANE_Option_Descriptor *opt; | ^~~ xsane.c: In function 'xsane_update_xsane_callback': xsane.c:1500:22: warning: variable 'status' set but not used [-Wunused-but-set-variable] 1500 | SANE_Status status; | ^~~~~~ xsane.c:1540:23: warning: variable 'status' set but not used [-Wunused-but-set-variable] 1540 | SANE_Status status; | ^~~~~~ xsane.c: In function 'xsane_info_dialog': xsane.c:3265:43: warning: variable 'label' set but not used [-Wunused-but-set-variable] 3265 | GtkWidget *info_dialog, *vbox, *button, *label, *frame, *framebox, *hbox, *table; | ^~~~~ xsane.c: In function 'xsane_select_device_by_key_callback': xsane.c:5547:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 5547 | xsane.selected_dev = (int) data; | ^ xsane.c: In function 'xsane_select_device_by_mouse_callback': xsane.c:5556:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 5556 | xsane.selected_dev = (int) data; | ^ xsane.c: In function 'xsane_pref_restore': xsane.c:2009:5: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 2009 | chdir(preferences.working_directory); /* set working directory */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane.c: In function 'xsane_show_doc': xsane.c:4062:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 4062 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ xsane.c: In function 'xsane_show_doc_via_nsr': xsane.c:3895:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 3895 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ xsane.c:3939:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 3939 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ xsane.c: At top level: xsane.c:1166:13: warning: 'xsane_cms_function_menu_callback' defined but not used [-Wunused-function] 1166 | static void xsane_cms_function_menu_callback(GtkWidget *widget, gpointer data) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane.c: In function 'xsane_show_doc': xsane.c:3872:42: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 246 [-Wformat-truncation=] 3872 | snprintf(buf, sizeof(buf), "openFile(%s, new-window)", name); | ^~ ...... 4038 | xsane_show_doc_via_nsr(widget, (void *) path); | ~~~~ In file included from /usr/include/stdio.h:970, from xsane.h:47: In function 'snprintf', inlined from 'xsane_show_doc_via_nsr' at xsane.c:3872:5, inlined from 'xsane_show_doc' at xsane.c:4038:5: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 23 and 4118 bytes into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane.c: In function 'xsane_init': xsane.c:2024:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4094 [-Wformat-truncation=] 2024 | snprintf(buf, sizeof(buf)-2, "%s%c%s", filename, SLASH, OUT_FILENAME); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'xsane_pref_restore' at xsane.c:2024:7, inlined from 'xsane_init' at xsane.c:5977:7: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 9 and 4104 bytes into a destination of size 4094 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane.c: In function 'xsane_init': xsane.c:2055:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4094 [-Wformat-truncation=] 2055 | snprintf(buf, sizeof(buf)-2, "%s%c%s", filename, SLASH, FAXPROJECT); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'xsane_pref_restore' at xsane.c:2055:7, inlined from 'xsane_init' at xsane.c:5977:7: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 12 and 4107 bytes into a destination of size 4094 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane.c: In function 'xsane_init': xsane.c:2137:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4094 [-Wformat-truncation=] 2137 | snprintf(buf, sizeof(buf)-2, "%s%c%s", filename, SLASH, EMAILPROJECT); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'xsane_pref_restore' at xsane.c:2137:7, inlined from 'xsane_init' at xsane.c:5977:7: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 14 and 4109 bytes into a destination of size 4094 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xsane.c: In function 'xsane_init': xsane.c:2164:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4094 [-Wformat-truncation=] 2164 | snprintf(buf, sizeof(buf)-2, "%s%c%s", filename, SLASH, MULTIPAGEPROJECT); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'xsane_pref_restore' at xsane.c:2164:7, inlined from 'xsane_init' at xsane.c:5977:7: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 18 and 4113 bytes into a destination of size 4094 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-preview.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, from xsane-preview.c:75: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69: /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ xsane-preview.c: In function 'preview_create_batch_icon_from_file': xsane-preview.c:2102:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 2102 | size_t bytes_read; | ^~~~~~~~~~ xsane-preview.c:2096:6: warning: variable 'c' set but not used [-Wunused-but-set-variable] 2096 | int c; | ^ xsane-preview.c: In function 'preview_restore_image_from_file': xsane-preview.c:2455:9: warning: variable 'nread' set but not used [-Wunused-but-set-variable] 2455 | size_t nread; | ^~~~~ xsane-preview.c: In function 'preview_create_batch_icon_from_file': xsane-preview.c:2126:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 2126 | fgets(buf, sizeof(buf), in); /* skip newline character. this made a lot of problems in the past, so I skip it this way */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-preview.c: In function 'preview_restore_image_from_file': xsane-preview.c:2482:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 2482 | fgets(buf, sizeof(buf), in); /* skip newline character. this made a lot of problems in the past, so I skip it this way */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xsane-0.999-build/xsane-0.999/src' make: *** [Makefile:63: all-recursive] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.owubIz (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.owubIz (%build) I: [iurt_root_command] ERROR: chroot