Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/libiscsi.spec'], chrootPath='/var/lib/mock/dist-an8.6-build-136642-50373/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/libiscsi.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/libiscsi-1.9.0-7.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/libiscsi.spec'], chrootPath='/var/lib/mock/dist-an8.6-build-136642-50373/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/libiscsi.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ib7vSw + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libiscsi-1.9.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/libiscsi-1.9.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libiscsi-1.9.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-do-not-reconnect-if-reconnect-is-already-defered.patch):' Patch #1 (0001-do-not-reconnect-if-reconnect-is-already-defered.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/connect.c Patch #2 (0002-fix-leak-of-iscsi_context-in-iscsi_reconnect.patch): + echo 'Patch #2 (0002-fix-leak-of-iscsi_context-in-iscsi_reconnect.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/connect.c + echo 'Patch #3 (0003-Add-ASCQ-codes-related-to-thin-provisioning.patch):' Patch #3 (0003-Add-ASCQ-codes-related-to-thin-provisioning.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file include/scsi-lowlevel.h patching file lib/scsi-lowlevel.c Patch #4 (0004-Create-safe-16-32-64-bit-accessors-for-reading-from-.patch): + echo 'Patch #4 (0004-Create-safe-16-32-64-bit-accessors-for-reading-from-.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/scsi-lowlevel.c Hunk #1 succeeded at 218 (offset -14 lines). Hunk #2 succeeded at 347 (offset -14 lines). Hunk #3 succeeded at 366 (offset -14 lines). Hunk #4 succeeded at 380 (offset -14 lines). Hunk #5 succeeded at 470 (offset -14 lines). Hunk #6 succeeded at 493 (offset -14 lines). Hunk #7 succeeded at 503 (offset -14 lines). Hunk #8 succeeded at 638 (offset -14 lines). Hunk #9 succeeded at 674 (offset -14 lines). Hunk #10 succeeded at 704 (offset -14 lines). Hunk #11 succeeded at 724 (offset -14 lines). Hunk #12 succeeded at 751 (offset -14 lines). Hunk #13 succeeded at 767 (offset -14 lines). Hunk #14 succeeded at 804 (offset -14 lines). Hunk #15 succeeded at 827 (offset -14 lines). Hunk #16 succeeded at 928 (offset -14 lines). Hunk #17 succeeded at 1000 (offset -14 lines). Hunk #18 succeeded at 1100 (offset -21 lines). Hunk #19 succeeded at 1169 (offset -21 lines). Hunk #20 succeeded at 1197 (offset -21 lines). Hunk #21 succeeded at 2062 (offset -21 lines). Hunk #22 succeeded at 2073 (offset -21 lines). Hunk #23 succeeded at 2081 (offset -21 lines). Hunk #24 succeeded at 2103 (offset -21 lines). Hunk #25 succeeded at 2151 (offset -21 lines). Patch #5 (0005-fix-bug-in-md5-code.patch): + echo 'Patch #5 (0005-fix-bug-in-md5-code.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/md5.c Hunk #1 succeeded at 127 (offset -7 lines). + echo 'Patch #6 (0006-use-libgcrypt-for-MD5.patch):' Patch #6 (0006-use-libgcrypt-for-MD5.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.am Hunk #1 succeeded at 29 (offset -5 lines). patching file configure.ac patching file lib/login.c Hunk #1 succeeded at 25 (offset -10 lines). Hunk #2 succeeded at 623 (offset -10 lines). Hunk #3 succeeded at 665 (offset -10 lines). Hunk #4 succeeded at 673 (offset -10 lines). + echo 'Patch #7 (0007-URL-encoded-Targetnames.patch):' Patch #7 (0007-URL-encoded-Targetnames.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file include/iscsi.h Hunk #1 succeeded at 118 (offset -7 lines). patching file lib/init.c patching file lib/login.c Hunk #1 succeeded at 613 (offset -9 lines). + echo 'Patch #8 (0008-SCSI-add-a-safe-function-to-read-a-byte-from-the-dat.patch):' Patch #8 (0008-SCSI-add-a-safe-function-to-read-a-byte-from-the-dat.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/scsi-lowlevel.c Hunk #1 succeeded at 260 (offset -14 lines). Hunk #2 succeeded at 497 (offset -14 lines). Hunk #3 succeeded at 576 (offset -14 lines). Hunk #4 succeeded at 651 (offset -14 lines). Hunk #5 succeeded at 690 (offset -14 lines). Hunk #6 succeeded at 767 (offset -14 lines). Hunk #7 succeeded at 778 (offset -14 lines). Hunk #8 succeeded at 999 (offset -14 lines). Hunk #9 succeeded at 1024 (offset -16 lines). Hunk #10 succeeded at 1054 (offset -16 lines). Hunk #11 succeeded at 1069 (offset -20 lines). Hunk #12 succeeded at 1091 (offset -20 lines). Hunk #13 succeeded at 1109 (offset -20 lines). Hunk #14 succeeded at 1173 (offset -20 lines). Hunk #15 succeeded at 1186 (offset -20 lines). Hunk #16 succeeded at 1203 (offset -20 lines). Hunk #17 succeeded at 1219 (offset -20 lines). Hunk #18 succeeded at 2052 (offset -20 lines). Hunk #19 succeeded at 2060 (offset -20 lines). Hunk #20 succeeded at 2150 (offset -20 lines). Hunk #21 succeeded at 2168 (offset -20 lines). Patch #9 (0009-scsi-lowlevel-do-not-use-unsafe-pointer-casts.patch): + echo 'Patch #9 (0009-scsi-lowlevel-do-not-use-unsafe-pointer-casts.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/scsi-lowlevel.c Hunk #1 succeeded at 198 (offset -14 lines). Hunk #2 succeeded at 209 (offset -14 lines). Hunk #3 succeeded at 231 (offset -14 lines). Hunk #4 succeeded at 244 (offset -14 lines). Hunk #5 succeeded at 256 (offset -14 lines). Hunk #6 succeeded at 288 (offset -14 lines). + echo 'Patch #10 (0010-Add-a-cast-to-ssize_t.patch):' Patch #10 (0010-Add-a-cast-to-ssize_t.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/socket.c Hunk #1 succeeded at 489 (offset -28 lines). Patch #11 (0011-do-not-build-test-tool.patch): + echo 'Patch #11 (0011-do-not-build-test-tool.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.am Hunk #1 succeeded at 61 (offset 2 lines). Patch #12 (0012-bump-soname.patch): + echo 'Patch #12 (0012-bump-soname.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.am Patch #13 (0013-disable-ld_iscsi.patch): + echo 'Patch #13 (0013-disable-ld_iscsi.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.am Patch #14 (0014-fix-another-aliasing-problem.patch): + echo 'Patch #14 (0014-fix-another-aliasing-problem.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/scsi-lowlevel.c Hunk #1 succeeded at 278 (offset -22 lines). Patch #15 (0015-fix-arm-aliasing-problem.patch): + echo 'Patch #15 (0015-fix-arm-aliasing-problem.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file include/scsi-lowlevel.h Hunk #1 succeeded at 698 (offset -41 lines). patching file lib/scsi-lowlevel.c Hunk #1 succeeded at 798 (offset -8 lines). Hunk #2 succeeded at 827 (offset -8 lines). Hunk #3 succeeded at 836 (offset -8 lines). + echo 'Patch #16 (0016-avoid-casting-struct-sockaddr.patch):' Patch #16 (0016-avoid-casting-struct-sockaddr.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/socket.c Hunk #1 succeeded at 145 (offset -26 lines). Hunk #2 succeeded at 159 (offset -26 lines). Hunk #3 succeeded at 216 (offset -29 lines). Hunk #4 succeeded at 298 (offset -28 lines). Patch #18 (0018-cleanup-rename-pdu-written.patch): + echo 'Patch #18 (0018-cleanup-rename-pdu-written.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file include/iscsi-private.h Hunk #1 succeeded at 214 (offset -7 lines). patching file lib/connect.c Hunk #1 succeeded at 330 (offset -13 lines). patching file lib/socket.c Hunk #1 succeeded at 575 (offset -21 lines). Hunk #2 succeeded at 593 (offset -21 lines). Hunk #3 succeeded at 609 (offset -21 lines). Patch #19 (0019-fix-iovec-short-reads.patch): + echo 'Patch #19 (0019-fix-iovec-short-reads.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file include/iscsi-private.h Hunk #1 succeeded at 258 (offset -3 lines). patching file lib/pdu.c Hunk #1 succeeded at 207 (offset -10 lines). patching file lib/socket.c Hunk #1 succeeded at 461 (offset -18 lines). Hunk #2 succeeded at 498 (offset -18 lines). Hunk #3 succeeded at 573 (offset -18 lines). Hunk #4 succeeded at 648 (offset -22 lines). Patch #20 (0020-iscsi_reconnect-Fix-a-use-after-free.patch): + echo 'Patch #20 (0020-iscsi_reconnect-Fix-a-use-after-free.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/connect.c Patch #21 (0021-Dont-reference-pdu-after-it-has-been-freed.patch): + echo 'Patch #21 (0021-Dont-reference-pdu-after-it-has-been-freed.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/iscsi-command.c Patch #22 (0022-lib-Make-scsi_free_scsi_task-accept-a-NULL-task-pointer.patch): + echo 'Patch #22 (0022-lib-Make-scsi_free_scsi_task-accept-a-NULL-task-pointer.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/scsi-lowlevel.c Patch #23 (0023-lib-Fix-a-memory-leak-in-scsi_cdb_persistent_reserve_out.patch): + echo 'Patch #23 (0023-lib-Fix-a-memory-leak-in-scsi_cdb_persistent_reserve_out.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/scsi-lowlevel.c Patch #24 (0024-reconnect-do-not-initialize-iscsi-to-old_iscsi-use-old_iscsi-if-appropriate.patch): + echo 'Patch #24 (0024-reconnect-do-not-initialize-iscsi-to-old_iscsi-use-old_iscsi-if-appropriate.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/connect.c Patch #25 (0025-log-failures-typically-malloc-of-iscsi_create_context-during-reconnect.patch): + echo 'Patch #25 (0025-log-failures-typically-malloc-of-iscsi_create_context-during-reconnect.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/connect.c + echo 'Patch #26 (0026-exit-after-malloc-failure-when-allocating-sense-data-blob.patch):' Patch #26 (0026-exit-after-malloc-failure-when-allocating-sense-data-blob.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/iscsi-command.c + echo 'Patch #27 (0027-do-not-test-arrays-against-NULL.patch):' Patch #27 (0027-do-not-test-arrays-against-NULL.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/login.c patching file src/iscsi-inq.c patching file src/iscsi-ls.c patching file src/iscsi-readcapacity16.c + echo 'Patch #28 (0028-handle-bad-iscsi--fd-in-iscsi_service.patch):' Patch #28 (0028-handle-bad-iscsi--fd-in-iscsi_service.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/socket.c Patch #29 (0029-rework-login-and-discovery-code-to-avoid-strlen-beyond-end-of-data.patch): + echo 'Patch #29 (0029-rework-login-and-discovery-code-to-avoid-strlen-beyond-end-of-data.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/discovery.c patching file lib/login.c + echo 'Patch #30 (0030-check-for-a-target-being-there-before-processing-TargetAddress.patch):' Patch #30 (0030-check-for-a-target-being-there-before-processing-TargetAddress.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/discovery.c Patch #31 (0031-fix-CHAP-authentication.patch): + echo 'Patch #31 (0031-fix-CHAP-authentication.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/discovery.c Hunk #1 succeeded at 112 (offset -6 lines). Hunk #2 succeeded at 191 (offset -6 lines). patching file lib/login.c Hunk #1 succeeded at 1000 (offset 18 lines). Hunk #2 succeeded at 1097 (offset 18 lines). Patch #32 (libiscsi-Discovery-return-multiple-portals-for-the-same-disco.patch): + echo 'Patch #32 (libiscsi-Discovery-return-multiple-portals-for-the-same-disco.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/discovery.c Patch #33 (libiscsi-iscsi-ls-skip-link-local-IPv6-addresses.patch): + echo 'Patch #33 (libiscsi-iscsi-ls-skip-link-local-IPv6-addresses.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/iscsi-ls.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8NzHpD + umask 022 + cd /builddir/build/BUILD + cd libiscsi-1.9.0 + sh autogen.sh autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:8: installing './compile' configure.ac:8: installing './config.guess' configure.ac:8: installing './config.sub' configure.ac:6: installing './install-sh' configure.ac:6: installing './missing' Makefile.am: installing './depcomp' autoreconf: Leaving directory `.' Now run ./configure and then make. + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh + ./configure --build=x86_64-Anolis-linux --host=x86_64-Anolis-linux --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 --libdir=/usr/lib64/iscsi checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking build system type... x86_64-Anolis-linux-gnu checking host system type... x86_64-Anolis-linux-gnu checking how to print strings... printf checking whether make supports the include directive... yes (GNU style) checking for x86_64-Anolis-linux-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-Anolis-linux-gnu file names to x86_64-Anolis-linux-gnu format... func_convert_file_noop checking how to convert x86_64-Anolis-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-Anolis-linux-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-Anolis-linux-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-Anolis-linux-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-Anolis-linux-strip... no checking for strip... strip checking for x86_64-Anolis-linux-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-Anolis-linux-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for gcry_control in -lgcrypt... yes checking for sin_len in sock... no checking for sys filio.h... no checking whether libpopt is available... yes checking whether libcunit is available... no configure: You need libcunit to build the test suite. configure: The scsi/iscsi test suite will not be built. checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating libiscsi.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands + make -j64 make all-am make[1]: Entering directory '/builddir/build/BUILD/libiscsi-1.9.0' gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o src/iscsi-inq.o src/iscsi-inq.c /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o lib/connect.lo lib/connect.c /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o lib/crc32c.lo lib/crc32c.c /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o lib/discovery.lo lib/discovery.c /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o lib/init.lo lib/init.c /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o lib/login.lo lib/login.c /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o lib/nop.lo lib/nop.c /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o lib/pdu.lo lib/pdu.c /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o lib/iscsi-command.lo lib/iscsi-command.c /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o lib/scsi-lowlevel.lo lib/scsi-lowlevel.c /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o lib/socket.lo lib/socket.c /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o lib/sync.lo lib/sync.c /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o lib/task_mgmt.lo lib/task_mgmt.c /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o lib/logging.lo lib/logging.c gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o src/iscsi-ls.o src/iscsi-ls.c gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o src/iscsi-readcapacity16.o src/iscsi-readcapacity16.c gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o examples/iscsiclient.o examples/iscsiclient.c In file included from src/iscsi-readcapacity16.c:27: ./include/scsi-lowlevel.h:810:13: error: inline function 'scsi_set_uint16' declared but never defined [-Werror] inline void scsi_set_uint16(unsigned char *c, uint16_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:809:13: error: inline function 'scsi_set_uint32' declared but never defined [-Werror] inline void scsi_set_uint32(unsigned char *c, uint32_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:808:17: error: inline function 'scsi_get_uint16' declared but never defined [-Werror] inline uint16_t scsi_get_uint16(const unsigned char *c); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:807:17: error: inline function 'scsi_get_uint32' declared but never defined [-Werror] inline uint32_t scsi_get_uint32(const unsigned char *c); ^~~~~~~~~~~~~~~ In file included from src/iscsi-inq.c:25: ./include/scsi-lowlevel.h:810:13: error: inline function 'scsi_set_uint16' declared but never defined [-Werror] inline void scsi_set_uint16(unsigned char *c, uint16_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:809:13: error: inline function 'scsi_set_uint32' declared but never defined [-Werror] inline void scsi_set_uint32(unsigned char *c, uint32_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:808:17: error: inline function 'scsi_get_uint16' declared but never defined [-Werror] inline uint16_t scsi_get_uint16(const unsigned char *c); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:807:17: error: inline function 'scsi_get_uint32' declared but never defined [-Werror] inline uint32_t scsi_get_uint32(const unsigned char *c); ^~~~~~~~~~~~~~~ In file included from src/iscsi-ls.c:25: ./include/scsi-lowlevel.h:810:13: error: inline function 'scsi_set_uint16' declared but never defined [-Werror] inline void scsi_set_uint16(unsigned char *c, uint16_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:809:13: error: inline function 'scsi_set_uint32' declared but never defined [-Werror] inline void scsi_set_uint32(unsigned char *c, uint32_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:808:17: error: inline function 'scsi_get_uint16' declared but never defined [-Werror] inline uint16_t scsi_get_uint16(const unsigned char *c); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:807:17: error: inline function 'scsi_get_uint32' declared but never defined [-Werror] inline uint32_t scsi_get_uint32(const unsigned char *c); ^~~~~~~~~~~~~~~ In file included from examples/iscsiclient.c:51: ./include/scsi-lowlevel.h:810:13: error: inline function 'scsi_set_uint16' declared but never defined [-Werror] inline void scsi_set_uint16(unsigned char *c, uint16_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:809:13: error: inline function 'scsi_set_uint32' declared but never defined [-Werror] inline void scsi_set_uint32(unsigned char *c, uint32_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:808:17: error: inline function 'scsi_get_uint16' declared but never defined [-Werror] inline uint16_t scsi_get_uint16(const unsigned char *c); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:807:17: error: inline function 'scsi_get_uint32' declared but never defined [-Werror] inline uint32_t scsi_get_uint32(const unsigned char *c); ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/nop.c -fPIC -DPIC -o lib/.libs/nop.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/discovery.c -fPIC -DPIC -o lib/.libs/discovery.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/init.c -fPIC -DPIC -o lib/.libs/init.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/connect.c -fPIC -DPIC -o lib/.libs/connect.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/login.c -fPIC -DPIC -o lib/.libs/login.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/pdu.c -fPIC -DPIC -o lib/.libs/pdu.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/logging.c -fPIC -DPIC -o lib/.libs/logging.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/scsi-lowlevel.c -fPIC -DPIC -o lib/.libs/scsi-lowlevel.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/crc32c.c -fPIC -DPIC -o lib/.libs/crc32c.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/sync.c -fPIC -DPIC -o lib/.libs/sync.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/task_mgmt.c -fPIC -DPIC -o lib/.libs/task_mgmt.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/socket.c -fPIC -DPIC -o lib/.libs/socket.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/iscsi-command.c -fPIC -DPIC -o lib/.libs/iscsi-command.o make[1]: *** [Makefile:2534: src/iscsi-readcapacity16.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from lib/crc32c.c:23: ./include/iscsi-private.h:301:14: error: inline function 'iscsi_strdup' declared but never defined [-Werror] inline char* iscsi_strdup(struct iscsi_context *iscsi, const char* str); ^~~~~~~~~~~~ ./include/iscsi-private.h:300:13: error: inline function 'iscsi_free' declared but never defined [-Werror] inline void iscsi_free(struct iscsi_context *iscsi, void* ptr); ^~~~~~~~~~ ./include/iscsi-private.h:299:14: error: inline function 'iscsi_realloc' declared but never defined [-Werror] inline void* iscsi_realloc(struct iscsi_context *iscsi, void* ptr, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:298:14: error: inline function 'iscsi_zmalloc' declared but never defined [-Werror] inline void* iscsi_zmalloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:297:14: error: inline function 'iscsi_malloc' declared but never defined [-Werror] inline void* iscsi_malloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~ In file included from lib/discovery.c:27: ./include/iscsi-private.h:301:14: error: inline function 'iscsi_strdup' declared but never defined [-Werror] inline char* iscsi_strdup(struct iscsi_context *iscsi, const char* str); ^~~~~~~~~~~~ ./include/iscsi-private.h:300:13: error: inline function 'iscsi_free' declared but never defined [-Werror] inline void iscsi_free(struct iscsi_context *iscsi, void* ptr); ^~~~~~~~~~ ./include/iscsi-private.h:299:14: error: inline function 'iscsi_realloc' declared but never defined [-Werror] inline void* iscsi_realloc(struct iscsi_context *iscsi, void* ptr, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:298:14: error: inline function 'iscsi_zmalloc' declared but never defined [-Werror] inline void* iscsi_zmalloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:297:14: error: inline function 'iscsi_malloc' declared but never defined [-Werror] inline void* iscsi_malloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~ In file included from lib/task_mgmt.c:27: ./include/scsi-lowlevel.h:810:13: error: inline function 'scsi_set_uint16' declared but never defined [-Werror] inline void scsi_set_uint16(unsigned char *c, uint16_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:809:13: error: inline function 'scsi_set_uint32' declared but never defined [-Werror] inline void scsi_set_uint32(unsigned char *c, uint32_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:808:17: error: inline function 'scsi_get_uint16' declared but never defined [-Werror] inline uint16_t scsi_get_uint16(const unsigned char *c); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:807:17: error: inline function 'scsi_get_uint32' declared but never defined [-Werror] inline uint32_t scsi_get_uint32(const unsigned char *c); ^~~~~~~~~~~~~~~ In file included from lib/task_mgmt.c:26: ./include/iscsi-private.h:301:14: error: inline function 'iscsi_strdup' declared but never defined [-Werror] inline char* iscsi_strdup(struct iscsi_context *iscsi, const char* str); ^~~~~~~~~~~~ ./include/iscsi-private.h:300:13: error: inline function 'iscsi_free' declared but never defined [-Werror] inline void iscsi_free(struct iscsi_context *iscsi, void* ptr); ^~~~~~~~~~ ./include/iscsi-private.h:299:14: error: inline function 'iscsi_realloc' declared but never defined [-Werror] inline void* iscsi_realloc(struct iscsi_context *iscsi, void* ptr, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:298:14: error: inline function 'iscsi_zmalloc' declared but never defined [-Werror] inline void* iscsi_zmalloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:297:14: error: inline function 'iscsi_malloc' declared but never defined [-Werror] inline void* iscsi_malloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~ In file included from lib/sync.c:30: ./include/scsi-lowlevel.h:810:13: error: inline function 'scsi_set_uint16' declared but never defined [-Werror] inline void scsi_set_uint16(unsigned char *c, uint16_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:809:13: error: inline function 'scsi_set_uint32' declared but never defined [-Werror] inline void scsi_set_uint32(unsigned char *c, uint32_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:808:17: error: inline function 'scsi_get_uint16' declared but never defined [-Werror] inline uint16_t scsi_get_uint16(const unsigned char *c); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:807:17: error: inline function 'scsi_get_uint32' declared but never defined [-Werror] inline uint32_t scsi_get_uint32(const unsigned char *c); ^~~~~~~~~~~~~~~ In file included from lib/sync.c:29: ./include/iscsi-private.h:301:14: error: inline function 'iscsi_strdup' declared but never defined [-Werror] inline char* iscsi_strdup(struct iscsi_context *iscsi, const char* str); ^~~~~~~~~~~~ ./include/iscsi-private.h:300:13: error: inline function 'iscsi_free' declared but never defined [-Werror] inline void iscsi_free(struct iscsi_context *iscsi, void* ptr); ^~~~~~~~~~ ./include/iscsi-private.h:299:14: error: inline function 'iscsi_realloc' declared but never defined [-Werror] inline void* iscsi_realloc(struct iscsi_context *iscsi, void* ptr, size_t size); ^~~~~~~~~~~~~ In file included from lib/logging.c:28: ./include/scsi-lowlevel.h:810:13: error: inline function 'scsi_set_uint16' declared but never defined [-Werror] inline void scsi_set_uint16(unsigned char *c, uint16_t val); ^~~~~~~~~~~~~~~ ./include/iscsi-private.h:298:14: error: inline function 'iscsi_zmalloc' declared but never defined [-Werror] inline void* iscsi_zmalloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:297:14: error: inline function 'iscsi_malloc' declared but never defined [-Werror] inline void* iscsi_malloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~ ./include/scsi-lowlevel.h:809:13: error: inline function 'scsi_set_uint32' declared but never defined [-Werror] inline void scsi_set_uint32(unsigned char *c, uint32_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:808:17: error: inline function 'scsi_get_uint16' declared but never defined [-Werror] inline uint16_t scsi_get_uint16(const unsigned char *c); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:807:17: error: inline function 'scsi_get_uint32' declared but never defined [-Werror] inline uint32_t scsi_get_uint32(const unsigned char *c); ^~~~~~~~~~~~~~~ In file included from lib/logging.c:27: ./include/iscsi-private.h:301:14: error: inline function 'iscsi_strdup' declared but never defined [-Werror] inline char* iscsi_strdup(struct iscsi_context *iscsi, const char* str); ^~~~~~~~~~~~ ./include/iscsi-private.h:300:13: error: inline function 'iscsi_free' declared but never defined [-Werror] inline void iscsi_free(struct iscsi_context *iscsi, void* ptr); ^~~~~~~~~~ ./include/iscsi-private.h:299:14: error: inline function 'iscsi_realloc' declared but never defined [-Werror] inline void* iscsi_realloc(struct iscsi_context *iscsi, void* ptr, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:298:14: error: inline function 'iscsi_zmalloc' declared but never defined [-Werror] inline void* iscsi_zmalloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:297:14: error: inline function 'iscsi_malloc' declared but never defined [-Werror] inline void* iscsi_malloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~ cc1: all warnings being treated as errors In file included from lib/nop.c:25: ./include/iscsi-private.h:301:14: error: inline function 'iscsi_strdup' declared but never defined [-Werror] inline char* iscsi_strdup(struct iscsi_context *iscsi, const char* str); ^~~~~~~~~~~~ ./include/iscsi-private.h:300:13: error: inline function 'iscsi_free' declared but never defined [-Werror] inline void iscsi_free(struct iscsi_context *iscsi, void* ptr); ^~~~~~~~~~ ./include/iscsi-private.h:299:14: error: inline function 'iscsi_realloc' declared but never defined [-Werror] inline void* iscsi_realloc(struct iscsi_context *iscsi, void* ptr, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:298:14: error: inline function 'iscsi_zmalloc' declared but never defined [-Werror] inline void* iscsi_zmalloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:297:14: error: inline function 'iscsi_malloc' declared but never defined [-Werror] inline void* iscsi_malloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~ In file included from lib/connect.c:31: ./include/scsi-lowlevel.h:810:13: error: inline function 'scsi_set_uint16' declared but never defined [-Werror] inline void scsi_set_uint16(unsigned char *c, uint16_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:809:13: error: inline function 'scsi_set_uint32' declared but never defined [-Werror] inline void scsi_set_uint32(unsigned char *c, uint32_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:808:17: error: inline function 'scsi_get_uint16' declared but never defined [-Werror] inline uint16_t scsi_get_uint16(const unsigned char *c); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:807:17: error: inline function 'scsi_get_uint32' declared but never defined [-Werror] inline uint32_t scsi_get_uint32(const unsigned char *c); ^~~~~~~~~~~~~~~ In file included from lib/connect.c:30: ./include/iscsi-private.h:301:14: error: inline function 'iscsi_strdup' declared but never defined [-Werror] inline char* iscsi_strdup(struct iscsi_context *iscsi, const char* str); ^~~~~~~~~~~~ ./include/iscsi-private.h:300:13: error: inline function 'iscsi_free' declared but never defined [-Werror] inline void iscsi_free(struct iscsi_context *iscsi, void* ptr); ^~~~~~~~~~ ./include/iscsi-private.h:299:14: error: inline function 'iscsi_realloc' declared but never defined [-Werror] inline void* iscsi_realloc(struct iscsi_context *iscsi, void* ptr, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:298:14: error: inline function 'iscsi_zmalloc' declared but never defined [-Werror] inline void* iscsi_zmalloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:297:14: error: inline function 'iscsi_malloc' declared but never defined [-Werror] inline void* iscsi_malloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~ cc1: all warnings being treated as errors In file included from lib/iscsi-command.c:29: ./include/scsi-lowlevel.h:810:13: error: inline function 'scsi_set_uint16' declared but never defined [-Werror] inline void scsi_set_uint16(unsigned char *c, uint16_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:809:13: error: inline function 'scsi_set_uint32' declared but never defined [-Werror] inline void scsi_set_uint32(unsigned char *c, uint32_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:808:17: error: inline function 'scsi_get_uint16' declared but never defined [-Werror] inline uint16_t scsi_get_uint16(const unsigned char *c); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:807:17: error: inline function 'scsi_get_uint32' declared but never defined [-Werror] inline uint32_t scsi_get_uint32(const unsigned char *c); ^~~~~~~~~~~~~~~ In file included from lib/iscsi-command.c:28: ./include/iscsi-private.h:301:14: error: inline function 'iscsi_strdup' declared but never defined [-Werror] inline char* iscsi_strdup(struct iscsi_context *iscsi, const char* str); ^~~~~~~~~~~~ ./include/iscsi-private.h:300:13: error: inline function 'iscsi_free' declared but never defined [-Werror] inline void iscsi_free(struct iscsi_context *iscsi, void* ptr); ^~~~~~~~~~ ./include/iscsi-private.h:299:14: error: inline function 'iscsi_realloc' declared but never defined [-Werror] inline void* iscsi_realloc(struct iscsi_context *iscsi, void* ptr, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:298:14: error: inline function 'iscsi_zmalloc' declared but never defined [-Werror] inline void* iscsi_zmalloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:297:14: error: inline function 'iscsi_malloc' declared but never defined [-Werror] inline void* iscsi_malloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~ make[1]: *** [Makefile:2550: lib/crc32c.lo] Error 1 make[1]: *** [Makefile:2534: src/iscsi-inq.o] Error 1 lib/logging.c: In function 'iscsi_log_message': lib/logging.c:63:31: error: ' [' directive output may be truncated writing 2 bytes into a region of size between 1 and 1024 [-Werror=format-truncation=] snprintf(message2, 1024, "%s [%s]", message, iscsi->target_name); ^~ In file included from /usr/include/stdio.h:873, from lib/logging.c:23: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 4 and 1282 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/socket.c: In function 'iscsi_iovector_readv_writev': lib/socket.c:442:7: error: implicit declaration of function 'writev'; did you mean 'write'? [-Werror=implicit-function-declaration] n = writev(iscsi->fd, (struct iovec*) iov, niov); ^~~~~~ write lib/socket.c:444:7: error: implicit declaration of function 'readv'; did you mean 'read'? [-Werror=implicit-function-declaration] n = readv(iscsi->fd, (struct iovec*) iov, niov); ^~~~~ read In file included from lib/socket.c:47: lib/socket.c: At top level: ./include/iscsi-private.h:301:14: error: inline function 'iscsi_strdup' declared but never defined [-Werror] inline char* iscsi_strdup(struct iscsi_context *iscsi, const char* str); ^~~~~~~~~~~~ ./include/iscsi-private.h:300:13: error: inline function 'iscsi_free' declared but never defined [-Werror] inline void iscsi_free(struct iscsi_context *iscsi, void* ptr); ^~~~~~~~~~ ./include/iscsi-private.h:299:14: error: inline function 'iscsi_realloc' declared but never defined [-Werror] inline void* iscsi_realloc(struct iscsi_context *iscsi, void* ptr, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:298:14: error: inline function 'iscsi_zmalloc' declared but never defined [-Werror] inline void* iscsi_zmalloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:297:14: error: inline function 'iscsi_malloc' declared but never defined [-Werror] inline void* iscsi_malloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~ In file included from lib/socket.c:45: ./include/scsi-lowlevel.h:810:13: error: inline function 'scsi_set_uint16' declared but never defined [-Werror] inline void scsi_set_uint16(unsigned char *c, uint16_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:809:13: error: inline function 'scsi_set_uint32' declared but never defined [-Werror] inline void scsi_set_uint32(unsigned char *c, uint32_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:808:17: error: inline function 'scsi_get_uint16' declared but never defined [-Werror] inline uint16_t scsi_get_uint16(const unsigned char *c); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:807:17: error: inline function 'scsi_get_uint32' declared but never defined [-Werror] inline uint32_t scsi_get_uint32(const unsigned char *c); ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors cc1: all warnings being treated as errors In file included from lib/pdu.c:30: ./include/scsi-lowlevel.h:810:13: error: inline function 'scsi_set_uint16' declared but never defined [-Werror] inline void scsi_set_uint16(unsigned char *c, uint16_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:809:13: error: inline function 'scsi_set_uint32' declared but never defined [-Werror] inline void scsi_set_uint32(unsigned char *c, uint32_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:808:17: error: inline function 'scsi_get_uint16' declared but never defined [-Werror] inline uint16_t scsi_get_uint16(const unsigned char *c); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:807:17: error: inline function 'scsi_get_uint32' declared but never defined [-Werror] inline uint32_t scsi_get_uint32(const unsigned char *c); ^~~~~~~~~~~~~~~ In file included from lib/pdu.c:29: ./include/iscsi-private.h:301:14: error: inline function 'iscsi_strdup' declared but never defined [-Werror] inline char* iscsi_strdup(struct iscsi_context *iscsi, const char* str); ^~~~~~~~~~~~ ./include/iscsi-private.h:300:13: error: inline function 'iscsi_free' declared but never defined [-Werror] inline void iscsi_free(struct iscsi_context *iscsi, void* ptr); ^~~~~~~~~~ ./include/iscsi-private.h:299:14: error: inline function 'iscsi_realloc' declared but never defined [-Werror] inline void* iscsi_realloc(struct iscsi_context *iscsi, void* ptr, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:298:14: error: inline function 'iscsi_zmalloc' declared but never defined [-Werror] inline void* iscsi_zmalloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:297:14: error: inline function 'iscsi_malloc' declared but never defined [-Werror] inline void* iscsi_malloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~ make[1]: *** [Makefile:2550: lib/logging.lo] Error 1 make[1]: *** [Makefile:2534: src/iscsi-ls.o] Error 1 cc1: all warnings being treated as errors make[1]: *** [Makefile:2550: lib/task_mgmt.lo] Error 1 cc1: all warnings being treated as errors cc1: all warnings being treated as errors In file included from lib/login.c:35: ./include/scsi-lowlevel.h:810:13: error: inline function 'scsi_set_uint16' declared but never defined [-Werror] inline void scsi_set_uint16(unsigned char *c, uint16_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:809:13: error: inline function 'scsi_set_uint32' declared but never defined [-Werror] inline void scsi_set_uint32(unsigned char *c, uint32_t val); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:808:17: error: inline function 'scsi_get_uint16' declared but never defined [-Werror] inline uint16_t scsi_get_uint16(const unsigned char *c); ^~~~~~~~~~~~~~~ ./include/scsi-lowlevel.h:807:17: error: inline function 'scsi_get_uint32' declared but never defined [-Werror] inline uint32_t scsi_get_uint32(const unsigned char *c); ^~~~~~~~~~~~~~~ In file included from lib/login.c:34: ./include/iscsi-private.h:301:14: error: inline function 'iscsi_strdup' declared but never defined [-Werror] inline char* iscsi_strdup(struct iscsi_context *iscsi, const char* str); ^~~~~~~~~~~~ ./include/iscsi-private.h:300:13: error: inline function 'iscsi_free' declared but never defined [-Werror] inline void iscsi_free(struct iscsi_context *iscsi, void* ptr); ^~~~~~~~~~ ./include/iscsi-private.h:299:14: error: inline function 'iscsi_realloc' declared but never defined [-Werror] inline void* iscsi_realloc(struct iscsi_context *iscsi, void* ptr, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:298:14: error: inline function 'iscsi_zmalloc' declared but never defined [-Werror] inline void* iscsi_zmalloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~~ ./include/iscsi-private.h:297:14: error: inline function 'iscsi_malloc' declared but never defined [-Werror] inline void* iscsi_malloc(struct iscsi_context *iscsi, size_t size); ^~~~~~~~~~~~ make[1]: *** [Makefile:2550: lib/nop.lo] Error 1 make[1]: *** [Makefile:2550: lib/discovery.lo] Error 1 cc1: all warnings being treated as errors make[1]: *** [Makefile:2534: examples/iscsiclient.o] Error 1 cc1: all warnings being treated as errors make[1]: *** [Makefile:2550: lib/connect.lo] Error 1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/init.c -o lib/init.o >/dev/null 2>&1 cc1: all warnings being treated as errors make[1]: *** [Makefile:2550: lib/pdu.lo] Error 1 cc1: all warnings being treated as errors make[1]: *** [Makefile:2550: lib/sync.lo] Error 1 cc1: all warnings being treated as errors make[1]: *** [Makefile:2550: lib/socket.lo] Error 1 cc1: all warnings being treated as errors make[1]: *** [Makefile:2550: lib/login.lo] Error 1 cc1: all warnings being treated as errors make[1]: *** [Makefile:2550: lib/iscsi-command.lo] Error 1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c lib/scsi-lowlevel.c -o lib/scsi-lowlevel.o >/dev/null 2>&1 make[1]: Leaving directory '/builddir/build/BUILD/libiscsi-1.9.0' make: *** [Makefile:1497: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.8NzHpD (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.8NzHpD (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/libiscsi.spec