Mock Version: 2.10 Mock Version: 2.10 Mock Version: 2.10 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ipmitool.spec'], chrootPath='/var/lib/mock/dist-an23-riscv64-build-113610-45879/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=2592000uid=991gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vodkgdlm:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vodkgdlm:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '5aeaf0eb26f8437fbb03c814d18d4f2d', '-D', '/var/lib/mock/dist-an23-riscv64-build-113610-45879/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vodkgdlm:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ipmitool.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/ipmitool-1.8.18-1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ipmitool.spec'], chrootPath='/var/lib/mock/dist-an23-riscv64-build-113610-45879/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=2592000uid=991gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vodkgdlm:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vodkgdlm:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '7ec64a14c8bb46b2b5e7520330d32cac', '-D', '/var/lib/mock/dist-an23-riscv64-build-113610-45879/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vodkgdlm:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ipmitool.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.lrvifr + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ipmitool-IPMITOOL_1_8_18 + /usr/bin/gzip -dc /builddir/build/SOURCES/ipmitool-1.8.18.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ipmitool-IPMITOOL_1_8_18 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/0001-CVE-2011-4339-OpenIPMI.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/0002-openssl.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/0003-ipmitool-1.8.11-set-kg-key.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/0004-slowswid.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/0005-sensor-id-length.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/0006-enable-usb.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/0007-check-input.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/0008-add-extern.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/0009-best-cipher.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/0010-pef-missing-newline.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/0011-expand-sensor-name-column.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/0012-CVE-2020-5208.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + for f in AUTHORS ChangeLog + iconv -f iso-8859-1 -t utf8 + mv AUTHORS.utf8 AUTHORS + for f in AUTHORS ChangeLog + iconv -f iso-8859-1 -t utf8 + mv ChangeLog.utf8 ChangeLog + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.YAw2o3 + umask 022 + cd /builddir/build/BUILD + cd ipmitool-IPMITOOL_1_8_18 + aclocal + libtoolize --automake --copy + autoheader + automake --foreign --add-missing --copy configure.ac:13: installing './compile' configure.ac:6: installing './config.guess' configure.ac:6: installing './config.sub' configure.ac:7: installing './install-sh' configure.ac:7: installing './missing' lib/Makefile.am: installing './depcomp' + aclocal + autoconf configure.ac:6: warning: The macro `AC_CANONICAL_SYSTEM' is obsolete. configure.ac:6: You should run autoupdate. ./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from... configure.ac:6: the top level configure.ac:8: warning: 'AM_CONFIG_HEADER': this macro is obsolete. configure.ac:8: You should use the 'AC_CONFIG_HEADERS' macro instead. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:9777: AM_CONFIG_HEADER is expanded from... configure.ac:8: the top level configure.ac:20: warning: The macro `AC_HEADER_STDC' is obsolete. configure.ac:20: You should run autoupdate. ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... configure.ac:20: the top level configure.ac:37: warning: The macro `AM_PROG_LIBTOOL' is obsolete. configure.ac:37: You should run autoupdate. aclocal.m4:122: AM_PROG_LIBTOOL is expanded from... configure.ac:37: the top level configure.ac:123: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:123: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:123: the top level configure.ac:133: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:133: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... configure.ac:133: the top level configure.ac:151: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:151: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:151: the top level configure.ac:194: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:194: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:194: the top level configure.ac:210: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:210: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:210: the top level configure.ac:226: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:226: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:226: the top level configure.ac:250: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:250: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:250: the top level configure.ac:267: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:267: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from... configure.ac:267: the top level configure.ac:321: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:321: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:321: the top level configure.ac:336: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:336: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... configure.ac:336: the top level configure.ac:352: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:352: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... configure.ac:352: the top level configure.ac:371: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:371: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... configure.ac:371: the top level configure.ac:392: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:392: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... configure.ac:392: the top level configure.ac:448: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:448: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from... configure.ac:448: the top level configure.ac:454: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:454: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from... configure.ac:454: the top level configure.ac:461: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:461: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:461: the top level configure.ac:480: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:480: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... configure.ac:480: the top level configure.ac:504: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:504: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:504: the top level configure.ac:521: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:521: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:521: the top level configure.ac:541: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:541: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:541: the top level configure.ac:557: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:557: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:557: the top level configure.ac:580: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:580: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:580: the top level configure.ac:599: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:599: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:599: the top level configure.ac:610: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:610: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.ac:610: the top level configure.ac:620: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:620: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... configure.ac:620: the top level + automake --foreign + CFLAGS='-O2 -g' + export CFLAGS + CXXFLAGS='-O2 -g' + export CXXFLAGS + FFLAGS='-O2 -g ' + export FFLAGS + FCFLAGS='-O2 -g ' + export FCFLAGS + LDFLAGS= + export LDFLAGS + ./configure --host=riscv64-koji-linux-gnu --build=riscv64-koji-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-dependency-tracking --enable-file-security --disable-intf-free checking build system type... riscv64-koji-linux-gnu checking host system type... riscv64-koji-linux-gnu checking target system type... riscv64-koji-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for riscv64-koji-linux-gnu-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 the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for rpmbuild... rpmbuild checking for sed... sed checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for sys/select.h... yes checking for sys/socket.h... yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/ioctl.h... yes checking for sys/stat.h... (cached) yes checking for unistd.h... (cached) yes checking for paths.h... yes checking for arpa/inet.h... yes checking for fcntl.h... yes checking for netdb.h... yes checking for netinet/in.h... yes checking for sys/socket.h... (cached) yes checking for sys/byteorder.h... no checking for byteswap.h... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking whether byte ordering is bigendian... no checking types of arguments for select... int,fd_set *,struct timeval * checking for working strtod... yes checking for alarm... yes checking for gethostbyname... yes checking for getaddrinfo... yes checking for getifaddrs... yes checking for socket... yes checking for select... yes checking for memmove... yes checking for memset... yes checking for strchr... yes checking for strdup... yes checking for strerror... yes checking for getpassphrase... no checking how to print strings... printf checking for a sed that does not truncate output... sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert riscv64-koji-linux-gnu file names to riscv64-koji-linux-gnu format... func_convert_file_noop checking how to convert riscv64-koji-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for riscv64-koji-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for riscv64-koji-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for riscv64-koji-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for riscv64-koji-linux-gnu-strip... no checking for strip... strip checking for riscv64-koji-linux-gnu-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 riscv64-koji-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) 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 library containing gethostbyname... none required checking for library containing getaddrinfo... none required checking for library containing getifaddrs... none required checking for library containing socket... none required checking for EVP_aes_128_cbc in -lcrypto... yes checking for EVP_sha256 in -lcrypto... yes checking for MD5_Init in -lcrypto... yes checking for MD2_Init in -lcrypto... yes checking for linux/compiler.h... checking how to run the C preprocessor... gcc -E no checking for sys/ioccom.h... no checking for linux/ipmi.h... yes checking for ipmi_open_inband in -lfreeipmi... no checking for ipmi_ctx_open_inband in -lfreeipmi... no checking for termios.h... yes checking for OpenIPMI dual bridge support... no checking for sys/lipmi/lipmi_intf.h... no ** Unable to build Solaris 9 x86 IPMI interface support! checking for library containing tgetent... -ltinfo checking for library containing initscr... -lncurses checking for library containing readline... -lreadline checking for library containing tgetent... (cached) -ltinfo checking for library containing initscr... (cached) -lncurses checking for library containing readline... (cached) -lreadline checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating contrib/Makefile config.status: creating control/Makefile config.status: creating control/pkginfo config.status: creating control/prototype config.status: creating control/rpmmacros config.status: creating control/ipmitool.spec config.status: creating lib/Makefile config.status: creating include/Makefile config.status: creating include/ipmitool/Makefile config.status: creating src/Makefile config.status: creating src/plugins/Makefile config.status: creating src/plugins/lan/Makefile config.status: creating src/plugins/lanplus/Makefile config.status: creating src/plugins/open/Makefile config.status: creating src/plugins/free/Makefile config.status: creating src/plugins/imb/Makefile config.status: creating src/plugins/bmc/Makefile config.status: creating src/plugins/usb/Makefile config.status: creating src/plugins/lipmi/Makefile config.status: creating src/plugins/serial/Makefile config.status: creating src/plugins/dummy/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands ipmitool 1.8.18-csv Interfaces lan : yes lanplus : yes open : yes free : no imb : yes bmc : no usb : yes lipmi : no serial : yes dummy : no Extra tools ipmievd : yes ipmishell : yes + make -j8 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18' Making all in lib make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/lib' /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o helper.lo helper.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_sdr.lo ipmi_sdr.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_sel.lo ipmi_sel.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_sol.lo ipmi_sol.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_pef.lo ipmi_pef.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_lanp.lo ipmi_lanp.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_fru.lo ipmi_fru.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_chassis.lo ipmi_chassis.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:26, from ipmi_sol.c:38: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from ipmi_sel.c:34: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from ipmi_sdr.c:37: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:26, from ipmi_chassis.c:35: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from /usr/include/sys/types.h:25, from helper.c:39: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from ../include/ipmitool/ipmi_sel.h:38, from ipmi_pef.c:44: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ ipmi_sol.c: In function 'ipmi_sol_set_param_isvalid_uint8_t': ipmi_sol.c:659:45: warning: unused parameter 'base' [-Wunused-parameter] 659 | int base, | ~~~~^~~~ In file included from ../include/ipmitool/ipmi_fru.h:38, from ipmi_fru.c:37: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ ../include/ipmitool/ipmi_fru.h:84:10: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 84 | }; | ^ ipmi_pef.c: In function 'ipmi_pef_bit_desc': ipmi_pef.c:103:25: warning: format not a string literal, argument types not checked [-Wformat-nonliteral] 103 | sprintf(p, listitem[index], pmap->desc); | ^~~~~~~ ipmi_pef.c: In function 'ipmi_pef_print_flags': ipmi_pef.c:134:25: warning: format not a string literal, argument types not checked [-Wformat-nonliteral] 134 | printf(listitem[index], ipmi_pef_bit_desc(map, maskval)); | ^~~~~~ ipmi_pef.c: In function 'ipmi_pef_print_field': ipmi_pef.c:146:17: warning: format not a string literal, argument types not checked [-Wformat-nonliteral] 146 | printf(fmt[0], KYWD_LENGTH, label, val); | ^~~~~~ ipmi_pef.c:148:17: warning: format not a string literal, argument types not checked [-Wformat-nonliteral] 148 | printf(&fmt[1][2], val); /* skip field separator */ | ^~~~~~ ipmi_pef.c:150:17: warning: format not a string literal, argument types not checked [-Wformat-nonliteral] 150 | printf(fmt[1], val); | ^~~~~~ In file included from ipmi_sdr.c:48: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ ipmi_fru.c: In function 'write_fru_area': ipmi_fru.c:474:40: warning: implicit declaration of function 'ipmi_intf_get_max_request_data_size'; did you mean 'ipmi_intf_set_max_request_data_size'? [-Wimplicit-function-declaration] 474 | uint16_t max_rq_size = ipmi_intf_get_max_request_data_size(intf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ipmi_intf_set_max_request_data_size ipmi_pef.c: In function 'ipmi_pef_print_oem_lan_dest': ipmi_pef.c:605:61: warning: unused parameter 'ch' [-Wunused-parameter] 605 | ipmi_pef_print_oem_lan_dest(struct ipmi_intf *intf, uint8_t ch, uint8_t dest) | ~~~~~~~~^~ ipmi_fru.c: In function 'read_fru_area': ipmi_fru.c:649:40: warning: implicit declaration of function 'ipmi_intf_get_max_response_data_size'; did you mean 'ipmi_intf_set_max_response_data_size'? [-Wimplicit-function-declaration] 649 | uint16_t max_rs_size = ipmi_intf_get_max_response_data_size(intf) - 1; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ipmi_intf_set_max_response_data_size ipmi_pef.c: In function 'ipmi_pef_print_dest': ipmi_fru.c:717:27: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 717 | || tmp > rsp->data_len - 1 | ^ ipmi_pef.c:906:40: warning: unused parameter 'intf' [-Wunused-parameter] 906 | ipmi_pef_print_dest(struct ipmi_intf * intf, uint8_t ch, uint8_t dest) | ~~~~~~~~~~~~~~~~~~~^~~~ ipmi_pef.c:906:54: warning: unused parameter 'ch' [-Wunused-parameter] 906 | ipmi_pef_print_dest(struct ipmi_intf * intf, uint8_t ch, uint8_t dest) | ~~~~~~~~^~ ipmi_fru.c: In function 'read_fru_area_section': ipmi_pef.c: In function 'ipmi_pef_print_event_info': ipmi_fru.c:829:27: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 829 | || tmp > rsp->data_len - 1 | ^ ipmi_pef.c:952:43: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 952 | if ((t-1) >= PEF_B2S_GENERIC_ER_ENTRIES) { | ^~ In file included from ../include/ipmitool/ipmi_sel.h:38, from ipmi_sel.c:47: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ ipmi_fru.c: In function 'fru_area_print_chassis': ipmi_fru.c:1001:23: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 1001 | if (i == j) { | ^~ ipmi_fru.c: In function 'fru_area_print_board': ipmi_fru.c:1126:23: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 1126 | if (i == j) | ^~ ipmi_fru.c: In function 'fru_area_print_product': ipmi_fru.c:1261:23: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 1261 | if (i == j) | ^~ ipmi_fru.c: In function 'ipmi_fru_query_new_value': ipmi_fru.c:1494:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 1494 | for( i=0;i y) ? x : y;}) | ^ helper.c:567:49: note: in expansion of macro '__maxlen' 567 | if (strncasecmp(vs[i].str, str, __maxlen(str, vs[i].str)) == 0) | ^~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_picmg_ext_edit': ipmi_fru.c:2027:34: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 2027 | for(index=0;index<(sizeof(struct fru_multirec_header) -1);index++){ | ^ In file included from ipmi_sel.c:50: ../include/ipmitool/ipmi_fru.h:84:10: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 84 | }; | ^ ipmi_fru.c: In function 'ipmi_fru_picmg_ext_print': ipmi_fru.c:2294:45: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 2294 | for (j=0; j < sizeof(struct fru_picmgext_guid); | ^ ipmi_sel.c: In function 'ipmi_sel_oem_readval': ipmi_sel.c:87:29: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'int *' [-Wformat=] 87 | if (sscanf(str, "0x%x", &ret) != 1) { | ~^ ~~~~ | | | | | int * | unsigned int * | %x ipmi_fru.c:2539:53: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 2539 | for (j=0; j < sizeof(struct fru_picmgext_guid); | ^ ipmi_sel.c: In function 'ipmi_sel_oem_message': ipmi_sel.c:196:69: warning: unused parameter 'verbose' [-Wunused-parameter] 196 | static void ipmi_sel_oem_message(struct sel_event_record * evt, int verbose) | ~~~~^~~~~~~ ipmi_sel.c: In function 'get_kontron_evt_desc': ipmi_sel.c:457:40: warning: unused parameter 'intf' [-Wunused-parameter] 457 | get_kontron_evt_desc(struct ipmi_intf *intf, struct sel_event_record * rec) | ~~~~~~~~~~~~~~~~~~^~~~ ipmi_fru.c:2850:70: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Wformat=] 2850 | printf(" FRQ: %-9ld - min: %-9ld - max: %-9ld\n", | ~~~~^ | | | long int | %-9d 2851 | freq, min_freq, max_freq); | ~~~~ | | | unsigned int ipmi_fru.c:2850:83: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=] 2850 | printf(" FRQ: %-9ld - min: %-9ld - max: %-9ld\n", | ~~~~^ | | | long int | %-9d 2851 | freq, min_freq, max_freq); | ~~~~~~~~ | | | unsigned int ipmi_fru.c:2850:96: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'unsigned int' [-Wformat=] 2850 | printf(" FRQ: %-9ld - min: %-9ld - max: %-9ld\n", | ~~~~^ | | | long int | %-9d 2851 | freq, min_freq, max_freq); | ~~~~~~~~ | | | unsigned int In file included from ../include/ipmitool/ipmi.h:41, from ipmi_lanp.c:48: ipmi_lanp.c: In function 'ipmi_lan_alert_set': ../include/ipmitool/helper.h:176:28: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^ ipmi_lanp.c:1812:39: note: in expansion of macro '__min' 1812 | memcpy(data, p->data, __min(p->data_len, sizeof(data))); | ^~~~~ ../include/ipmitool/helper.h:176:36: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^~~ ipmi_lanp.c:1812:39: note: in expansion of macro '__min' 1812 | memcpy(data, p->data, __min(p->data_len, sizeof(data))); | ^~~~~ ../include/ipmitool/helper.h:176:28: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^ ipmi_lanp.c:1827:39: note: in expansion of macro '__min' 1827 | memcpy(data, p->data, __min(p->data_len, sizeof(data))); | ^~~~~ ../include/ipmitool/helper.h:176:36: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^~~ ipmi_lanp.c:1827:39: note: in expansion of macro '__min' 1827 | memcpy(data, p->data, __min(p->data_len, sizeof(data))); | ^~~~~ ../include/ipmitool/helper.h:176:28: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^ ipmi_lanp.c:1841:39: note: in expansion of macro '__min' 1841 | memcpy(data, p->data, __min(p->data_len, sizeof(data))); | ^~~~~ ../include/ipmitool/helper.h:176:36: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^~~ ipmi_lanp.c:1841:39: note: in expansion of macro '__min' 1841 | memcpy(data, p->data, __min(p->data_len, sizeof(data))); | ^~~~~ ipmi_fru.c: In function 'ipmi_fru_get_multirec_size_from_file': ipmi_fru.c:3867:43: warning: self-comparison always evaluates to false [-Wtautological-compare] 3867 | if (((header.offset.internal * 8) > (header.offset.internal * 8)) && | ^ ipmi_fru.c:3871:42: warning: self-comparison always evaluates to false [-Wtautological-compare] 3871 | if (((header.offset.chassis * 8) > (header.offset.chassis * 8)) && | ^ ../include/ipmitool/helper.h:176:28: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^ ipmi_lanp.c:1867:39: note: in expansion of macro '__min' 1867 | memcpy(data, p->data, __min(p->data_len, sizeof(data))); | ^~~~~ ../include/ipmitool/helper.h:176:36: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^~~ ipmi_lanp.c:1867:39: note: in expansion of macro '__min' 1867 | memcpy(data, p->data, __min(p->data_len, sizeof(data))); | ^~~~~ ipmi_fru.c:3875:40: warning: self-comparison always evaluates to false [-Wtautological-compare] 3875 | if (((header.offset.board * 8) > (header.offset.board * 8)) && | ^ ipmi_fru.c:3879:42: warning: self-comparison always evaluates to false [-Wtautological-compare] 3879 | if (((header.offset.product * 8) > (header.offset.product * 8)) && | ^ ../include/ipmitool/helper.h:176:28: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^ ipmi_lanp.c:1892:39: note: in expansion of macro '__min' 1892 | memcpy(data, p->data, __min(p->data_len, sizeof(data))); | ^~~~~ ../include/ipmitool/helper.h:176:36: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^~~ ipmi_lanp.c:1892:39: note: in expansion of macro '__min' 1892 | memcpy(data, p->data, __min(p->data_len, sizeof(data))); | ^~~~~ ipmi_fru.c: In function 'ipmi_fru_get_multirec_location_from_fru': ../include/ipmitool/helper.h:176:28: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^ ipmi_lanp.c:1920:39: note: in expansion of macro '__min' 1920 | memcpy(data, p->data, __min(p->data_len, sizeof(data))); | ^~~~~ ipmi_fru.c:4054:43: warning: self-comparison always evaluates to false [-Wtautological-compare] 4054 | if (((header.offset.internal * 8) > (header.offset.internal * 8)) && | ^ ../include/ipmitool/helper.h:176:36: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^~~ ipmi_lanp.c:1920:39: note: in expansion of macro '__min' 1920 | memcpy(data, p->data, __min(p->data_len, sizeof(data))); | ^~~~~ ipmi_fru.c:4058:42: warning: self-comparison always evaluates to false [-Wtautological-compare] 4058 | if (((header.offset.chassis * 8) > (header.offset.chassis * 8)) && | ^ ../include/ipmitool/helper.h:176:28: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^ ipmi_lanp.c:1936:39: note: in expansion of macro '__min' 1936 | memcpy(data, p->data, __min(p->data_len, sizeof(data))); | ^~~~~ ipmi_fru.c:4062:40: warning: self-comparison always evaluates to false [-Wtautological-compare] 4062 | if (((header.offset.board * 8) > (header.offset.board * 8)) && | ^ ../include/ipmitool/helper.h:176:36: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^~~ ipmi_lanp.c:1936:39: note: in expansion of macro '__min' 1936 | memcpy(data, p->data, __min(p->data_len, sizeof(data))); | ^~~~~ ipmi_fru.c:4066:42: warning: self-comparison always evaluates to false [-Wtautological-compare] 4066 | if (((header.offset.product * 8) > (header.offset.product * 8)) && | ^ ipmi_sdr.c: In function 'ipmi_sdr_print_sensor_mc_locator': ipmi_sdr.c:2131:52: warning: unused parameter 'intf' [-Wunused-parameter] 2131 | ipmi_sdr_print_sensor_mc_locator(struct ipmi_intf *intf, | ~~~~~~~~~~~~~~~~~~^~~~ ipmi_sdr.c: In function 'ipmi_sdr_print_sensor_generic_locator': ipmi_sdr.c:2227:57: warning: unused parameter 'intf' [-Wunused-parameter] 2227 | ipmi_sdr_print_sensor_generic_locator(struct ipmi_intf *intf, | ~~~~~~~~~~~~~~~~~~^~~~ ipmi_sdr.c: In function 'ipmi_sdr_print_sensor_fru_locator': ipmi_sdr.c:2284:53: warning: unused parameter 'intf' [-Wunused-parameter] 2284 | ipmi_sdr_print_sensor_fru_locator(struct ipmi_intf *intf, | ~~~~~~~~~~~~~~~~~~^~~~ ipmi_sdr.c: In function 'ipmi_sdr_print_sensor_entity_assoc': ipmi_sdr.c:2343:54: warning: unused parameter 'intf' [-Wunused-parameter] 2343 | ipmi_sdr_print_sensor_entity_assoc(struct ipmi_intf *intf, | ~~~~~~~~~~~~~~~~~~^~~~ ipmi_sdr.c:2344:68: warning: unused parameter 'assoc' [-Wunused-parameter] 2344 | struct sdr_record_entity_assoc *assoc) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ ipmi_sdr.c: In function 'ipmi_sdr_print_sensor_oem_intel': ipmi_sdr.c:2358:51: warning: unused parameter 'intf' [-Wunused-parameter] 2358 | ipmi_sdr_print_sensor_oem_intel(struct ipmi_intf *intf, | ~~~~~~~~~~~~~~~~~~^~~~ ipmi_fru.c: In function 'ipmi_fru_set_field_string': ipmi_fru.c:4835:31: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 4835 | for (i = 0; i < fru_section_len - 1; i++) | ^ ipmi_sdr.c: In function 'ipmi_sdr_print_name_from_rawentry': ipmi_sdr.c:2502:17: warning: pointer targets in assignment from 'uint8_t *' {aka 'unsigned char *'} to 'const char *' differ in signedness [-Wpointer-sign] 2502 | id_string = record.full->id_string; | ^ ipmi_sdr.c:2508:17: warning: pointer targets in assignment from 'uint8_t *' {aka 'unsigned char *'} to 'const char *' differ in signedness [-Wpointer-sign] 2508 | id_string = record.compact->id_string; | ^ ipmi_sdr.c:2514:17: warning: pointer targets in assignment from 'uint8_t *' {aka 'unsigned char *'} to 'const char *' differ in signedness [-Wpointer-sign] 2514 | id_string = record.eventonly->id_string; | ^ ipmi_fru.c: In function 'ipmi_fru_set_field_string_rebuild': ipmi_sdr.c:2520:17: warning: pointer targets in assignment from 'uint8_t *' {aka 'unsigned char *'} to 'const char *' differ in signedness [-Wpointer-sign] 2520 | id_string = record.mcloc->id_string; | ^ ipmi_sdr.c:2478:53: warning: unused parameter 'intf' [-Wunused-parameter] 2478 | ipmi_sdr_print_name_from_rawentry(struct ipmi_intf *intf, uint16_t id, | ~~~~~~~~~~~~~~~~~~^~~~ ipmi_fru.c:5018:53: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 5018 | num_byte_change = strlen(f_string) - strlen(fru_area); | ^~~~~~~~ | | | uint8_t * {aka unsigned char *} In file included from ../include/ipmitool/helper.h:39, from ../include/ipmitool/ipmi.h:41, from ipmi_fru.c:33: /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ ipmi_fru.c:5139:87: warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits] 5139 | if(((header.offset.product * 8) + product_len_new - remaining_offset) < 0) | ^ In file included from ipmi_sel.c:48: ../include/ipmitool/ipmi_sel_supermicro.h: At top level: ../include/ipmitool/ipmi_sel_supermicro.h:114:17: warning: 'supermicro_x8' defined but not used [-Wunused-variable] 114 | static uint16_t supermicro_x8[] = { | ^~~~~~~~~~~~~ ../include/ipmitool/ipmi_sel_supermicro.h:110:17: warning: 'supermicro_p8' defined but not used [-Wunused-variable] 110 | static uint16_t supermicro_p8[] = { | ^~~~~~~~~~~~~ ../include/ipmitool/ipmi_sel_supermicro.h:103:17: warning: 'supermicro_h8' defined but not used [-Wunused-variable] 103 | static uint16_t supermicro_h8[] = { | ^~~~~~~~~~~~~ ../include/ipmitool/ipmi_sel_supermicro.h:99:17: warning: 'supermicro_b8' defined but not used [-Wunused-variable] 99 | static uint16_t supermicro_b8[] = { | ^~~~~~~~~~~~~ ../include/ipmitool/ipmi_sel_supermicro.h:76:17: warning: 'supermicro_x9sb' defined but not used [-Wunused-variable] 76 | static uint16_t supermicro_x9sb[] = { | ^~~~~~~~~~~~~~~ ../include/ipmitool/ipmi_sel_supermicro.h:72:17: warning: 'supermicro_x9db' defined but not used [-Wunused-variable] 72 | static uint16_t supermicro_x9db[] = { | ^~~~~~~~~~~~~~~ ../include/ipmitool/ipmi_sel_supermicro.h:68:17: warning: 'supermicro_x9dal' defined but not used [-Wunused-variable] 68 | static uint16_t supermicro_x9dal[] = { | ^~~~~~~~~~~~~~~~ ../include/ipmitool/ipmi_sel_supermicro.h:47:17: warning: 'supermicro_b2' defined but not used [-Wunused-variable] 47 | static uint16_t supermicro_b2[] = { | ^~~~~~~~~~~~~ ../include/ipmitool/ipmi_sel_supermicro.h:43:17: warning: 'supermicro_b11' defined but not used [-Wunused-variable] 43 | static uint16_t supermicro_b11[] = { | ^~~~~~~~~~~~~~ ../include/ipmitool/ipmi_sel_supermicro.h:37:17: warning: 'supermicro_x11' defined but not used [-Wunused-variable] 37 | static uint16_t supermicro_x11[] = { | ^~~~~~~~~~~~~~ ipmi_fru.c:5184:32: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 5184 | strlen(fru_area)), | ^~~~~~~~ | | | uint8_t * {aka unsigned char *} /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ ipmi_fru.c:5189:42: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 5189 | for(counter = 0; counter < padding_len; counter ++) | ^ ipmi_sdr.c: In function 'ipmi_sdr_end': ipmi_sdr.c:3089:32: warning: unused parameter 'intf' [-Wunused-parameter] 3089 | ipmi_sdr_end(struct ipmi_intf *intf, struct ipmi_sdr_iterator *itr) | ~~~~~~~~~~~~~~~~~~^~~~ ipmi_sdr.c: In function 'ipmi_sdr_list_cache_fromfile': ipmi_sdr.c:3935:48: warning: unused parameter 'intf' [-Wunused-parameter] 3935 | ipmi_sdr_list_cache_fromfile(struct ipmi_intf *intf, const char *ifile) | ~~~~~~~~~~~~~~~~~~^~~~ In file included from ../include/ipmitool/ipmi.h:41, from ipmi_sdr.c:45: ipmi_sdr.c: In function 'ipmi_sdr_get_info': ../include/ipmitool/helper.h:176:28: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^ ipmi_sdr.c:4217:16: note: in expansion of macro '__min' 4217 | __min(sizeof (struct get_sdr_repository_info_rsp), | ^~~~~ ../include/ipmitool/helper.h:176:42: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^~~ ipmi_sdr.c:4217:16: note: in expansion of macro '__min' 4217 | __min(sizeof (struct get_sdr_repository_info_rsp), | ^~~~~ ipmi_sdr.c: In function 'ipmi_sdr_print_type': ../include/ipmitool/helper.h:188:25: warning: ISO C forbids braced-groups within expressions [-Wpedantic] 188 | # define __maxlen(a, b) ({ int x=strlen(a); int y=strlen(b); (x > y) ? x : y;}) | ^ ipmi_sdr.c:4487:41: note: in expansion of macro '__maxlen' 4487 | __maxlen(type, | ^~~~~~~~ ipmi_sdr.c: In function 'ipmi_sdr_print_entity': ../include/ipmitool/helper.h:188:25: warning: ISO C forbids braced-groups within expressions [-Wpedantic] 188 | # define __maxlen(a, b) ({ int x=strlen(a); int y=strlen(b); (x > y) ? x : y;}) | ^ ipmi_sdr.c:4552:49: note: in expansion of macro '__maxlen' 4552 | __maxlen(entitystr, entity_id_vals[i].str)) == 0) { | ^~~~~~~~ ipmi_sdr.c: In function 'sdr_convert_sensor_reading': ipmi_sdr.c:206:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 206 | if (val & 0x80) | ^ ipmi_sdr.c:209:9: note: here 209 | case 2: | ^~~~ ipmi_sdr.c: In function 'sdr_convert_sensor_hysterisis': ipmi_sdr.c:286:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 286 | if (val & 0x80) | ^ ipmi_sdr.c:289:9: note: here 289 | case 2: | ^~~~ ipmi_sdr.c: In function 'sdr_convert_sensor_tolerance': ipmi_sdr.c:361:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 361 | if (val & 0x80) | ^ ipmi_sdr.c:364:9: note: here 364 | case 2: | ^~~~ ipmi_fru.c: At top level: ipmi_fru.c:855:1: warning: 'fru_area_print_multirec_bloc' defined but not used [-Wunused-function] 855 | fru_area_print_multirec_bloc(struct ipmi_intf * intf, struct fru_info * fru, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipmi_sdr.c: In function 'ipmi_sdr_print_sensor_fc': ipmi_sdr.c:1682:77: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 1682 | snprintf(sval, sizeof (sval), "%s %s", | ^ ipmi_sdr.c:1682:41: note: 'snprintf' output 2 or more bytes (assuming 17) into a destination of size 16 1682 | snprintf(sval, sizeof (sval), "%s %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1683 | sr->s_a_str, | ~~~~~~~~~~~~ 1684 | sr->s_a_units); | ~~~~~~~~~~~~~~ ipmi_sdr.c:1628:69: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 1628 | snprintf(sval, sizeof (sval), "%s %s", | ^ ipmi_sdr.c:1628:33: note: 'snprintf' output 2 or more bytes (assuming 17) into a destination of size 16 1628 | snprintf(sval, sizeof (sval), "%s %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1629 | sr->s_a_str, | ~~~~~~~~~~~~ 1630 | sr->s_a_units); | ~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3488:80: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 3488 | if ((last_off < (i + sizeof(*h))) || (last_off < (i + h->len))) | ^~ ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ ipmi_fru.c:3499:30: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 3499 | if( h->type == FRU_RECORD_TYPE_OEM_EXTENSION ){ | ^~ ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ ipmi_fru.c:3503:51: warning: array subscript [1, 858993460] is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds] 3503 | uint32_t iana = oh->mfg_id[0] | oh->mfg_id[1]<<8 | oh->mfg_id[2]<<16; | ^~ ipmi_fru.c:3477:28: note: at offset [5, 4294967300] into object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ ipmi_fru.c:3503:67: warning: array subscript [1, 858993460] is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds] 3503 | uint32_t iana = oh->mfg_id[0] | oh->mfg_id[1]<<8 | oh->mfg_id[2]<<16; | ^~ ipmi_fru.c:3477:28: note: at offset [5, 4294967300] into object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ ipmi_fru.c:3503:86: warning: array subscript [1, 858993460] is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds] 3503 | uint32_t iana = oh->mfg_id[0] | oh->mfg_id[1]<<8 | oh->mfg_id[2]<<16; | ^~ ipmi_fru.c:3477:28: note: at offset [5, 4294967300] into object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ ipmi_fru.c:3561:31: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'struct fru_multirec_header[0]' [-Warray-bounds] 3561 | i += h->len + sizeof (struct fru_multirec_header); | ^~ ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ ipmi_fru.c:3562:29: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'struct fru_multirec_header[0]' [-Warray-bounds] 3562 | } while (!(h->format & 0x80) && (error != 1)); | ^~ ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ ipmi_fru.c:3547:50: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 3547 | h->len, h, oh )){ | ^~ ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1773:22: warning: array subscript [1, 858993460] is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds] 1773 | if(oh->record_id == OEM_KONTRON_INFORMATION_RECORD ) { | ~~^~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: at offset [5, 4294967300] into object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1786:33: warning: array subscript [1, 858993460] is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds] 1786 | version = oh->record_version; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: at offset [5, 4294967300] into object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1901:75: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 1901 | lprintf(LOG_DEBUG,"Initial record checksum : %x",h->record_checksum); | ~^~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1902:75: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 1902 | lprintf(LOG_DEBUG,"Initial header checksum : %x",h->header_checksum); | ~^~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1907:44: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 1907 | h->record_checksum = ~record_checksum + 1; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1915:44: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 1915 | h->header_checksum = ~header_checksum + 1; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1918:73: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 1918 | lprintf(LOG_DEBUG,"Final header checksum : %x",h->header_checksum); | ~^~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ ipmi_fru.c:3550:50: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 3550 | h->len+ sizeof(struct fru_multirec_header), fru_data); | ^~ ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ ipmi_fru.c:3538:50: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 3538 | h->len, h, oh )){ | ^~ ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_picmg_ext_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3536:11: ipmi_fru.c:1982:89: warning: array subscript 'struct fru_picmgext_activation_record[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 1982 | printf(" IPMB-Address: 0x%x\n", a->ibmb_addr); | ~^~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_picmg_ext_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3536:11: ipmi_fru.c:1983:98: warning: array subscript 'struct fru_picmgext_activation_record[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 1983 | printf(" Max. Module Current: %.2f A\n", (float)a->max_module_curr / 10.0f); | ~^~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_picmg_ext_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3536:11: ipmi_fru.c:2018:67: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 2018 | lprintf(LOG_DEBUG,"Initial record checksum : %x",h->record_checksum); | ~^~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_picmg_ext_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3536:11: ipmi_fru.c:2019:67: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 2019 | lprintf(LOG_DEBUG,"Initial header checksum : %x",h->header_checksum); | ~^~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_picmg_ext_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3536:11: ipmi_fru.c:2024:36: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 2024 | h->record_checksum = ~record_checksum + 1; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_picmg_ext_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3536:11: ipmi_fru.c:2032:36: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 2032 | h->header_checksum = ~header_checksum + 1; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_picmg_ext_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3536:11: ipmi_fru.c:2035:65: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 2035 | lprintf(LOG_DEBUG,"Final header checksum : %x",h->header_checksum); | ~^~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ ipmi_fru.c:3541:50: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 3541 | h->len+ sizeof(struct fru_multirec_header), fru_data); | ^~ ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ ipmi_fru.c:3561:31: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 3561 | i += h->len + sizeof (struct fru_multirec_header); | ^~ ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ ipmi_fru.c:3562:29: warning: array subscript 'struct fru_multirec_header[0]' is partly outside array bounds of 'unsigned char[1]' [-Warray-bounds] 3562 | } while (!(h->format & 0x80) && (error != 1)); | ^~ ipmi_fru.c:3477:28: note: object of size 1 allocated by 'malloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_mc.lo ipmi_mc.c In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1824:65: warning: 'memcpy' writing 8 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 1824 | memcpy( ((tOemKontronInformationRecordV0 *) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1825 | pRecordData)->field1 , | ~~~~~~~~~~~~~~~~~~~~~~ 1826 | argv[OEM_KONTRON_VERSION_ARG_POS] , | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1827 | OEM_KONTRON_FIELD_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: at offset 1 into destination object of size 1 allocated by '__builtin_calloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1828:65: warning: 'memcpy' writing 8 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 1828 | memcpy( ((tOemKontronInformationRecordV0 *) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1829 | pRecordData)->field2 , | ~~~~~~~~~~~~~~~~~~~~~~ 1830 | argv[OEM_KONTRON_BUILDDATE_ARG_POS], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1831 | OEM_KONTRON_FIELD_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: at offset [10, 11] into destination object of size 1 allocated by '__builtin_calloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1832:65: warning: 'memcpy' writing 8 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 1832 | memcpy( ((tOemKontronInformationRecordV0 *) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1833 | pRecordData)->field3 , | ~~~~~~~~~~~~~~~~~~~~~~ 1834 | argv[OEM_KONTRON_UPDATEDATE_ARG_POS], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1835 | OEM_KONTRON_FIELD_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: at offset [19, 20] into destination object of size 1 allocated by '__builtin_calloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1836:65: warning: 'memcpy' writing 8 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 1836 | memcpy( ((tOemKontronInformationRecordV0 *) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1837 | pRecordData)->crc32 , | ~~~~~~~~~~~~~~~~~~~~~ 1838 | argv[OEM_KONTRON_CRC32_ARG_POS] , | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1839 | OEM_KONTRON_FIELD_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: at offset [28, 29] into destination object of size 1 allocated by '__builtin_calloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1843:65: warning: 'memcpy' writing 10 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 1843 | memcpy( ((tOemKontronInformationRecordV1 *) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1844 | pRecordData)->field1 , | ~~~~~~~~~~~~~~~~~~~~~~ 1845 | argv[OEM_KONTRON_VERSION_ARG_POS] , | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1846 | OEM_KONTRON_VERSION_FIELD_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: at offset 1 into destination object of size 1 allocated by '__builtin_calloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1847:65: warning: 'memcpy' writing 8 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 1847 | memcpy( ((tOemKontronInformationRecordV1 *) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1848 | pRecordData)->field2 , | ~~~~~~~~~~~~~~~~~~~~~~ 1849 | argv[OEM_KONTRON_BUILDDATE_ARG_POS], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1850 | OEM_KONTRON_FIELD_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: at offset [12, 13] into destination object of size 1 allocated by '__builtin_calloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1851:65: warning: 'memcpy' writing 8 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 1851 | memcpy( ((tOemKontronInformationRecordV1 *) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1852 | pRecordData)->field3 , | ~~~~~~~~~~~~~~~~~~~~~~ 1853 | argv[OEM_KONTRON_UPDATEDATE_ARG_POS], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1854 | OEM_KONTRON_FIELD_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: at offset [21, 22] into destination object of size 1 allocated by '__builtin_calloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ In function 'ipmi_fru_oemkontron_edit', inlined from 'ipmi_fru_edit_multirec' at ipmi_fru.c:3545:11: ipmi_fru.c:1855:65: warning: 'memcpy' writing 8 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 1855 | memcpy( ((tOemKontronInformationRecordV1 *) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1856 | pRecordData)->crc32 , | ~~~~~~~~~~~~~~~~~~~~~ 1857 | argv[OEM_KONTRON_CRC32_ARG_POS] , | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1858 | OEM_KONTRON_FIELD_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~ ipmi_fru.c: In function 'ipmi_fru_edit_multirec': ipmi_fru.c:3477:28: note: at offset [30, 31] into destination object of size 1 allocated by '__builtin_calloc' 3477 | fru_data = malloc(fru.size + 1); | ^~~~~~~~~~~~~~~~~~~~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o log.lo log.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o dimm_spd.lo dimm_spd.c ipmi_fru.c: In function 'ipmi_fru_print_all': ipmi_fru.c:3116:13: warning: 'rc' may be used uninitialized [-Wmaybe-uninitialized] 3116 | int rc; | ^~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_sensor.lo ipmi_sensor.c ipmi_mc.c: In function 'ipmi_sysinfo_main': ipmi_mc.c:1063:51: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] 1063 | strncpy(paramdata + 4, str + pos, IPMI_SYSINFO_SET0_SIZE); | ~~~~~~~~~~^~~ | | | unsigned char * In file included from ipmi_mc.c:34: /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'unsigned char *' 144 | extern char *strncpy (char *__restrict __dest, | ~~~~~~~~~~~~~~~~~^~~~~~ ipmi_mc.c:1067:51: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] 1067 | strncpy(paramdata + 2, str + pos, IPMI_SYSINFO_SETN_SIZE); | ~~~~~~~~~~^~~ | | | unsigned char * /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'unsigned char *' 144 | extern char *strncpy (char *__restrict __dest, | ~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/unistd.h:25, from log.c:36: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ ipmi_mc.c:1067:33: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 1067 | strncpy(paramdata + 2, str + pos, IPMI_SYSINFO_SETN_SIZE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipmi_mc.c:1063:33: warning: 'strncpy' specified bound 14 equals destination size [-Wstringop-truncation] 1063 | strncpy(paramdata + 4, str + pos, IPMI_SYSINFO_SET0_SIZE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ipmitool/ipmi_fru.h:38, from dimm_spd.c:37: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ ../include/ipmitool/ipmi_fru.h:84:10: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 84 | }; | ^ In file included from ipmi_sensor.c:40: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ dimm_spd.c: In function 'ipmi_spd_print_fru': dimm_spd.c:1701:27: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 1701 | || len > rsp->data_len - 1 | ^ ipmi_sensor.c: In function 'print_thresh_setting': ipmi_sensor.c:235:17: warning: format not a string literal, argument types not checked [-Wformat-nonliteral] 235 | printf(na_fmt, "na"); | ^~~~~~ ipmi_sensor.c:239:17: warning: format not a string literal, argument types not checked [-Wformat-nonliteral] 239 | printf(analog_fmt, sdr_convert_sensor_reading (full, setting)); | ^~~~~~ ipmi_sensor.c:241:17: warning: format not a string literal, argument types not checked [-Wformat-nonliteral] 241 | printf(discrete_fmt, setting); | ^~~~~~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_channel.lo ipmi_channel.c ipmi_channel.c: In function 'ipmi_get_channel_cipher_suites': ipmi_channel.c:452:38: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 452 | || rsp->data_len > sizeof(uint8_t) + MAX_CIPHER_SUITE_DATA_LEN) | ^ ipmi_channel.c: In function 'ipmi_set_channel_security_keys': ipmi_channel.c:851:25: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] 851 | strncpy(kgkey, key, IPMI_KG_BUFFER_SIZE-1); | ^~~~~ | | | uint8_t * {aka unsigned char *} In file included from ipmi_channel.c:35: /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 144 | extern char *strncpy (char *__restrict __dest, | ~~~~~~~~~~~~~~~~~^~~~~~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_event.lo ipmi_event.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_session.lo ipmi_session.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:26, from ipmi_event.c:34: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from ../include/ipmitool/ipmi_sel.h:38, from ipmi_event.c:50: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ In file included from ../include/ipmitool/ipmi.h:41, from ipmi_event.c:46: ipmi_event.c: In function 'ipmi_event_find_offset': ../include/ipmitool/helper.h:188:25: warning: ISO C forbids braced-groups within expressions [-Wpedantic] 188 | # define __maxlen(a, b) ({ int x=strlen(a); int y=strlen(b); (x > y) ? x : y;}) | ^ ipmi_event.c:221:54: note: in expansion of macro '__maxlen' 221 | strncasecmp(desc, evt->desc, __maxlen(desc, evt->desc)) == 0) { | ^~~~~~~~ ipmi_event.c: In function 'ipmi_event_fromsensor': ipmi_event.c:407:39: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 407 | for (x = 0; x < sizeof(digi_on)/sizeof(*digi_on); x++) { | ^ ipmi_event.c:414:31: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 414 | for (x = 0; x < sizeof(digi_on)/sizeof(*digi_on); x++) { | ^ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_strings.lo ipmi_strings.c In file included from ../include/ipmitool/ipmi.h:41, from ipmi_session.c:44: ipmi_session.c: In function 'ipmi_get_session_info': ../include/ipmitool/helper.h:176:28: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^ ipmi_session.c:313:32: note: in expansion of macro '__min' 313 | __min(rsp->data_len, sizeof(session_info))); | ^~~~~ ../include/ipmitool/helper.h:176:36: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^~~ ipmi_session.c:313:32: note: in expansion of macro '__min' 313 | __min(rsp->data_len, sizeof(session_info))); | ^~~~~ ../include/ipmitool/helper.h:176:28: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^ ipmi_session.c:315:44: note: in expansion of macro '__min' 315 | __min(rsp->data_len, sizeof(session_info))); | ^~~~~ ../include/ipmitool/helper.h:176:36: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^~~ ipmi_session.c:315:44: note: in expansion of macro '__min' 315 | __min(rsp->data_len, sizeof(session_info))); | ^~~~~ ../include/ipmitool/helper.h:176:28: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^ ipmi_session.c:347:32: note: in expansion of macro '__min' 347 | __min(rsp->data_len, sizeof(session_info))); | ^~~~~ ../include/ipmitool/helper.h:176:36: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^~~ ipmi_session.c:347:32: note: in expansion of macro '__min' 347 | __min(rsp->data_len, sizeof(session_info))); | ^~~~~ ../include/ipmitool/helper.h:176:28: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^ ipmi_session.c:349:44: note: in expansion of macro '__min' 349 | __min(rsp->data_len, sizeof(session_info))); | ^~~~~ ../include/ipmitool/helper.h:176:36: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^~~ ipmi_session.c:349:44: note: in expansion of macro '__min' 349 | __min(rsp->data_len, sizeof(session_info))); | ^~~~~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_user.lo ipmi_user.c In file included from ../include/ipmitool/ipmi_sensor.h:39, from ipmi_strings.c:36: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:26, from ipmi_user.c:37: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_raw.lo ipmi_raw.c ipmi_user.c: In function '_ipmi_set_user_password': ipmi_user.c:212:30: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 212 | if (copy_len > (data_len - 2)) { | ^ ipmi_user.c:217:17: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 217 | strncpy((char *)(data + 2), password, copy_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipmi_user.c:211:35: note: length computed here 211 | size_t copy_len = strlen(password); | ^~~~~~~~~~~~~~~~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_oem.lo ipmi_oem.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_isol.lo ipmi_isol.c In function 'ipmi_user_set_username', inlined from 'ipmi_user_name' at ipmi_user.c:712:9: ipmi_user.c:376:9: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 376 | strncpy((char *)(msg_data + 1), name, strlen(name)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_sunoem.lo ipmi_sunoem.c ipmi_raw.c: In function 'ipmi_raw_main': ipmi_raw.c:334:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 334 | else if (argc > sizeof(data)) | ^ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_fwum.lo ipmi_fwum.c In file included from ../include/ipmitool/ipmi_sel.h:38, from ipmi_oem.c:38: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ ipmi_oem.c: In function 'ipmi_oem_ibm': ipmi_oem.c:86:33: warning: unused parameter 'intf' [-Wunused-parameter] 86 | ipmi_oem_ibm(struct ipmi_intf * intf) | ~~~~~~~~~~~~~~~~~~~^~~~ In file included from ../include/ipmitool/ipmi_sel.h:38, from ipmi_sunoem.c:57: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ ipmi_isol.c: In function 'ipmi_isol_red_pill': ipmi_isol.c:618:77: warning: pointer targets in passing argument 2 of 'processiSolUserInput' differ in signedness [-Wpointer-sign] 618 | int rc = processiSolUserInput(intf, buffer, numRead); | ^~~~~~ | | | char * ipmi_isol.c:458:31: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 458 | uint8_t * input, | ~~~~~~~~~~^~~~~ ipmi_sunoem.c: In function 'ipmi_sunoem_getbehavior': ipmi_sunoem.c:2293:32: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] 2293 | strncpy(getbehavior_req.behavior_id, argv[0], SUNOEM_BEHAVIORID_SIZE - 1); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~ | | | unsigned char * In file included from ipmi_sunoem.c:36: /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'unsigned char *' 144 | extern char *strncpy (char *__restrict __dest, | ~~~~~~~~~~~~~~~~~^~~~~~ ipmi_fwum.c: In function 'KfwumSetupBuffersFromFile': ipmi_fwum.c:365:63: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 365 | modulus, pFileHandle) == modulus) { | ^~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_picmg.lo ipmi_picmg.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_main.lo ipmi_main.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_tsol.lo ipmi_tsol.c In file included from ../include/ipmitool/ipmi_fru.h:38, from ipmi_picmg.c:36: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ ../include/ipmitool/ipmi_fru.h:84:10: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 84 | }; | ^ ipmi_picmg.c: In function 'ipmi_picmg_fru_activation': ipmi_picmg.c:664:56: warning: unused parameter 'argc' [-Wunused-parameter] 664 | ipmi_picmg_fru_activation(struct ipmi_intf * intf, int argc, char ** argv, unsigned char state) | ~~~~^~~~ ipmi_picmg.c: In function 'ipmi_picmg_fru_activation_policy_get': ipmi_picmg.c:698:67: warning: unused parameter 'argc' [-Wunused-parameter] 698 | ipmi_picmg_fru_activation_policy_get(struct ipmi_intf * intf, int argc, char ** argv) | ~~~~^~~~ ipmi_picmg.c: In function 'ipmi_picmg_fru_activation_policy_set': ipmi_picmg.c:737:67: warning: unused parameter 'argc' [-Wunused-parameter] 737 | ipmi_picmg_fru_activation_policy_set(struct ipmi_intf * intf, int argc, char ** argv) | ~~~~^~~~ ipmi_picmg.c: In function 'ipmi_picmg_get_led_properties': ipmi_picmg.c:1161:60: warning: unused parameter 'argc' [-Wunused-parameter] 1161 | ipmi_picmg_get_led_properties(struct ipmi_intf * intf, int argc, char ** argv) | ~~~~^~~~ ipmi_picmg.c: In function 'ipmi_picmg_get_led_capabilities': ipmi_picmg.c:1200:62: warning: unused parameter 'argc' [-Wunused-parameter] 1200 | ipmi_picmg_get_led_capabilities(struct ipmi_intf * intf, int argc, char ** argv) | ~~~~^~~~ ipmi_picmg.c: In function 'ipmi_picmg_get_led_state': ipmi_picmg.c:1250:55: warning: unused parameter 'argc' [-Wunused-parameter] 1250 | ipmi_picmg_get_led_state(struct ipmi_intf * intf, int argc, char ** argv) | ~~~~^~~~ ipmi_picmg.c: In function 'ipmi_picmg_set_led_state': ipmi_picmg.c:1337:55: warning: unused parameter 'argc' [-Wunused-parameter] 1337 | ipmi_picmg_set_led_state(struct ipmi_intf * intf, int argc, char ** argv) | ~~~~^~~~ ipmi_picmg.c: In function 'ipmi_picmg_get_power_level': ipmi_picmg.c:1413:57: warning: unused parameter 'argc' [-Wunused-parameter] 1413 | ipmi_picmg_get_power_level(struct ipmi_intf * intf, int argc, char ** argv) | ~~~~^~~~ ipmi_picmg.c: In function 'ipmi_picmg_set_power_level': ipmi_picmg.c:1464:57: warning: unused parameter 'argc' [-Wunused-parameter] 1464 | ipmi_picmg_set_power_level(struct ipmi_intf * intf, int argc, char ** argv) | ~~~~^~~~ ipmi_picmg.c: In function 'ipmi_picmg_fru_control': ipmi_picmg.c:1568:53: warning: unused parameter 'argc' [-Wunused-parameter] 1568 | ipmi_picmg_fru_control(struct ipmi_intf * intf, int argc, char ** argv) | ~~~~^~~~ ipmi_picmg.c: In function 'ipmi_picmg_clk_set': ipmi_picmg.c:1754:44: warning: pointer targets in passing argument 2 of 'is_clk_resid' differ in signedness [-Wpointer-sign] 1754 | if (is_clk_resid(argv[6], &msg_data[10]) != 0) { | ^~~~~~~~~~~~~ | | | unsigned char * ipmi_picmg.c:328:44: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'unsigned char *' 328 | is_clk_resid(const char *argv_ptr, int8_t *clk_resid_ptr) | ~~~~~~~~^~~~~~~~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:26, from ipmi_main.c:38: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In function 'send_luapi_prop_name', inlined from 'ipmi_sunoem_setval' at ipmi_sunoem.c:2055:6, inlined from 'ipmi_sunoem_main' at ipmi_sunoem.c:2412:8: ipmi_sunoem.c:1907:25: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1907 | strncpy(setval_req.luapi_data, &(prop_name[i]), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1908 | strlen(&(prop_name[i]))); | ~~~~~~~~~~~~~~~~~~~~~~~~ ipmi_sunoem.c:1903:21: note: length computed here 1903 | if (strlen(&(prop_name[i])) > MAX_SUNOEM_VAL_COMPACT_PAYLOAD) { | ^~~~~~~~~~~~~~~~~~~~~~~ In function 'send_luapi_prop_value', inlined from 'ipmi_sunoem_setval' at ipmi_sunoem.c:2060:6, inlined from 'ipmi_sunoem_main' at ipmi_sunoem.c:2412:8: ipmi_sunoem.c:1979:25: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1979 | strncpy(setval_req.luapi_data, &(prop_value[i]), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1980 | strlen(&(prop_value[i]))); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ipmi_sunoem.c:1974:21: note: length computed here 1974 | if (strlen(&(prop_value[i])) > MAX_SUNOEM_VAL_COMPACT_PAYLOAD) { | ^~~~~~~~~~~~~~~~~~~~~~~~ In function 'ipmi_sunoem_getval', inlined from 'ipmi_sunoem_main' at ipmi_sunoem.c:2406:8: ipmi_sunoem.c:1814:9: warning: 'strncpy' specified bound 79 equals destination size [-Wstringop-truncation] 1814 | strncpy((char*) getval_req.luapi_value, argv[0], MAX_SUNOEM_VAL_PAYLOAD); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipmi_tsol.c: In function 'ipmi_tsol_command': ipmi_tsol.c:88:30: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'unsigned int *' [-Wformat=] 88 | if (sscanf(recvip, "%d.%d.%d.%d", &ip1, &ip2, &ip3, &ip4) != 4) { | ~^ ~~~~ | | | | int * unsigned int * | %d ipmi_tsol.c:88:33: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'unsigned int *' [-Wformat=] 88 | if (sscanf(recvip, "%d.%d.%d.%d", &ip1, &ip2, &ip3, &ip4) != 4) { | ~^ ~~~~ | | | | int * unsigned int * | %d ipmi_tsol.c:88:36: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'unsigned int *' [-Wformat=] 88 | if (sscanf(recvip, "%d.%d.%d.%d", &ip1, &ip2, &ip3, &ip4) != 4) { | ~^ ~~~~ | | | | int * unsigned int * | %d ipmi_tsol.c:88:39: warning: format '%d' expects argument of type 'int *', but argument 6 has type 'unsigned int *' [-Wformat=] 88 | if (sscanf(recvip, "%d.%d.%d.%d", &ip1, &ip2, &ip3, &ip4) != 4) { | ~^ ~~~~ | | | | int * unsigned int * | %d ipmi_tsol.c: In function 'ipmi_tsol_main': ipmi_tsol.c:540:68: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 540 | if ((fds[0].revents & POLLIN) && (sizeof(out_buff) > out_buff_fill)) { | ^ ipmi_tsol.c:543:68: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 543 | if ((sizeof(out_buff) - out_buff_fill + 4) < buff_size) { | ^ ipmi_tsol.c:561:67: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 561 | if ((fds[1].revents & POLLIN) && (sizeof(in_buff) > in_buff_fill)) { | ^ In file included from ipmi_main.c:56: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ In file included from ipmi_main.c:59: ../include/ipmitool/ipmi_fru.h:84:10: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 84 | }; | ^ In file included from ipmi_main.c:51: ipmi_main.c: In function 'ipmi_cmd_run': ../include/ipmitool/helper.h:188:25: warning: ISO C forbids braced-groups within expressions [-Wpedantic] 188 | # define __maxlen(a, b) ({ int x=strlen(a); int y=strlen(b); (x > y) ? x : y;}) | ^ ipmi_main.c:207:46: note: in expansion of macro '__maxlen' 207 | if (strncmp(name, cmd->name, __maxlen(cmd->name, name)) == 0) | ^~~~~~~~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_firewall.lo ipmi_firewall.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_kontronoem.lo ipmi_kontronoem.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_hpmfwupg.lo ipmi_hpmfwupg.c In file included from ../include/ipmitool/ipmi_fru.h:38, from ipmi_kontronoem.c:47: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ ../include/ipmitool/ipmi_fru.h:84:10: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 84 | }; | ^ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_sdradd.lo ipmi_sdradd.c ipmi_kontronoem.c: In function 'ipmi_kontron_nextboot_set': ipmi_kontronoem.c:659:55: warning: unused parameter 'argc' [-Wunused-parameter] 659 | ipmi_kontron_nextboot_set(struct ipmi_intf *intf, int argc, char **argv) | ~~~~^~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:26, from ../include/ipmitool/ipmi.h:36, from ../include/ipmitool/ipmi_intf.h:36, from ipmi_hpmfwupg.c:38: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ ipmi_hpmfwupg.c: In function 'HpmfwupgPreUpgradeCheck': ipmi_hpmfwupg.c:839:43: warning: unused parameter 'intf' [-Wunused-parameter] 839 | HpmfwupgPreUpgradeCheck(struct ipmi_intf *intf, | ~~~~~~~~~~~~~~~~~~^~~~ ipmi_hpmfwupg.c: In function 'HpmfwupgGetBufferFromFile': ipmi_hpmfwupg.c:1422:17: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 1422 | if (ret != pFwupgCtx->imageSize) { | ^~ ipmi_hpmfwupg.c: In function 'HpmfwupgCalculateChecksum': ipmi_hpmfwupg.c:2344:35: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 2344 | for (dataIdx = 0; dataIdx < length; dataIdx++) { | ^ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_ekanalyzer.lo ipmi_ekanalyzer.c In file included from ipmi_sdradd.c:51: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ In file included from ../include/ipmitool/ipmi_fru.h:38, from ../include/ipmitool/ipmi_ekanalyzer.h:41, from ipmi_ekanalyzer.c:36: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ ../include/ipmitool/ipmi_fru.h:84:10: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 84 | }; | ^ ipmi_ekanalyzer.c: In function 'ipmi_ekanalyzer_main': ipmi_ekanalyzer.c:483:51: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 483 | for (type_offset = 0; type_offset < (argc-1); type_offset++ ) { | ^ ipmi_ekanalyzer.c:457:40: warning: unused parameter 'intf' [-Wunused-parameter] 457 | ipmi_ekanalyzer_main(struct ipmi_intf *intf, int argc, char **argv) | ~~~~~~~~~~~~~~~~~~^~~~ ipmi_ekanalyzer.c: In function 'ipmi_ek_matching_process': ipmi_ekanalyzer.c:1241:38: warning: unused parameter 'list_last' [-Wunused-parameter] 1241 | struct ipmi_ek_multi_header ** list_last, char * opt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ ipmi_ekanalyzer.c: In function 'ipmi_ek_display_record': ipmi_ekanalyzer.c:2939:46: warning: unused parameter 'list_last' [-Wunused-parameter] 2939 | struct ipmi_ek_multi_header *list_last) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ ipmi_ekanalyzer.c: In function 'ipmi_ek_display_board_p2p_record': ipmi_ekanalyzer.c:3371:31: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 3371 | for (j = 0; j < sizeof(struct fru_picmgext_guid); j++) { | ^ ipmi_ekanalyzer.c: At top level: ipmi_ekanalyzer.c:3316:1: warning: 'ipmi_ek_display_shelf_fan_geography_record' defined but not used [-Wunused-function] 3316 | ipmi_ek_display_shelf_fan_geography_record(struct ipmi_ek_multi_header *record) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_gendev.lo ipmi_gendev.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_ime.lo ipmi_ime.c In file included from ipmi_gendev.c:44: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ ipmi_gendev.c: In function 'ipmi_gendev_get_eeprom_size': ipmi_gendev.c:74:43: warning: unused parameter 'intf' [-Wunused-parameter] 74 | struct ipmi_intf *intf, | ~~~~~~~~~~~~~~~~~~^~~~ ipmi_gendev.c: In function 'ipmi_gendev_write_file': ipmi_gendev.c:385:24: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 385 | if(fileLength != eeprom_size) | ^~ ipmi_ime.c: In function 'ImeImageCtxFromFile': ipmi_ime.c:895:30: warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits] 895 | if (pImageCtx->size < 0) | ^ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_delloem.lo ipmi_delloem.c ipmi_ime.c: At top level: ipmi_ime.c:799:12: warning: 'ImeUpdateShowStatus' defined but not used [-Wunused-function] 799 | static int ImeUpdateShowStatus(struct ipmi_intf *intf) | ^~~~~~~~~~~~~~~~~~~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_dcmi.lo ipmi_dcmi.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:26, from ipmi_dcmi.c:41: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from ../include/ipmitool/ipmi_sel.h:38, from ipmi_delloem.c:53: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ In file included from ipmi_delloem.c:55: ../include/ipmitool/ipmi_fru.h:84:10: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 84 | }; | ^ ipmi_delloem.c: In function 'ipmi_lcd_set_text': ipmi_delloem.c:1341:61: warning: unused parameter 'line_number' [-Wunused-parameter] 1341 | ipmi_lcd_set_text(struct ipmi_intf * intf, char * text, int line_number) | ~~~~^~~~~~~~~~~ ipmi_delloem.c: In function 'ipmi_macinfo_drac_idrac_virtual_mac': ipmi_delloem.c:1582:17: warning: unused variable 'j' [-Wunused-variable] 1582 | uint8_t j; | ^ ipmi_delloem.c: In function 'ipmi_macinfo_drac_idrac_mac': ipmi_delloem.c:1674:17: warning: unused variable 'j' [-Wunused-variable] 1674 | uint8_t j; | ^ ipmi_delloem.c: In function 'ipmi_macinfo_10g': ipmi_delloem.c:1742:17: warning: unused variable 'j' [-Wunused-variable] 1742 | uint8_t j; | ^ ipmi_delloem.c: In function 'ipmi_macinfo_11g': ipmi_delloem.c:1805:17: warning: unused variable 'j' [-Wunused-variable] 1805 | uint8_t j; | ^ ipmi_delloem.c: In function 'ipmi_delloem_lan_main': ipmi_delloem.c:1997:66: warning: pointer targets in passing argument 2 of 'ipmi_lan_set_nic_selection_12g' differ in signedness [-Wpointer-sign] 1997 | rc = ipmi_lan_set_nic_selection_12g(intf,nic_set); | ^~~~~~~ | | | char * ipmi_delloem.c:200:26: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 200 | uint8_t *nic_selection); | ~~~~~~~~~^~~~~~~~~~~~~ ipmi_delloem.c:1961:52: warning: unused parameter 'argc' [-Wunused-parameter] 1961 | ipmi_delloem_lan_main(struct ipmi_intf * intf, int argc, char ** argv) | ~~~~^~~~ In file included from ../include/ipmitool/ipmi_sensor.h:39, from ipmi_dcmi.c:59: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ ipmi_delloem.c: In function 'ipmi_get_minpower_consmpt_history': ipmi_delloem.c:3364:24: warning: too many arguments for format [-Wformat-extra-args] 3364 | printf("Peak power consmhistory Data : " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipmi_delloem.c: In function 'ipmi_get_power_cap': In function 'ipmi_ek_compare_link', inlined from 'ipmi_ek_matching_process' at ipmi_ekanalyzer.c:1298:37, inlined from 'ipmi_ekanalyzer_ekeying_match' at ipmi_ekanalyzer.c:1186:40: ipmi_ekanalyzer.c:1601:28: warning: 'pcarrier_p2p' may be used uninitialized [-Wmaybe-uninitialized] 1601 | result = ipmi_ek_check_physical_connectivity ( record1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1602 | index_ch_desc1, record2, index_ch_desc2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1603 | physic_record, file_type1, file_type2, opt ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipmi_ekanalyzer.c: In function 'ipmi_ekanalyzer_ekeying_match': ipmi_ekanalyzer.c:1133:43: note: 'pcarrier_p2p' was declared here 1133 | struct ipmi_ek_multi_header * pcarrier_p2p; | ^~~~~~~~~~~~ In file included from ../include/ipmitool/ipmi.h:41, from ../include/ipmitool/ipmi_dcmi.h:23, from ipmi_dcmi.c:50: ipmi_dcmi.c: In function 'str2val2': ../include/ipmitool/helper.h:188:25: warning: ISO C forbids braced-groups within expressions [-Wpedantic] 188 | # define __maxlen(a, b) ({ int x=strlen(a); int y=strlen(b); (x > y) ? x : y;}) | ^ ipmi_dcmi.c:598:41: note: in expansion of macro '__maxlen' 598 | __maxlen(str, vs[i].str)) == 0) { | ^~~~~~~~ ipmi_delloem.c:3560:24: warning: too many arguments for format [-Wformat-extra-args] 3560 | printf("power cap Data :%x %x %x %x %x %x %x %x %x %x ", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipmi_delloem.c: In function 'ipmi_delloem_vFlash_main': ipmi_delloem.c:3819:55: warning: unused parameter 'argc' [-Wunused-parameter] 3819 | ipmi_delloem_vFlash_main(struct ipmi_intf * intf, int argc, char ** argv) | ~~~~^~~~ ipmi_delloem.c: In function 'ipmi_delloem_setled_main': ipmi_delloem.c:4228:52: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'int *' [-Wformat=] 4228 | } else if (sscanf(argv[current_arg], "%*x:%x:%x.%x", &b,&d,&f) == 3) { | ~^ ~~ | | | | | int * | unsigned int * | %x ipmi_dcmi.c: In function 'ipmi_dcmi_pwr_slimit': ipmi_dcmi.c:1891:30: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 1891 | val.limit = *(uint16_t*)(&lvalue); | ^~~~~~~~~~~~~~~~~~~~ ipmi_delloem.c:4228:55: warning: format '%x' expects argument of type 'unsigned int *', but argument 4 has type 'int *' [-Wformat=] 4228 | } else if (sscanf(argv[current_arg], "%*x:%x:%x.%x", &b,&d,&f) == 3) { | ~^ ~~ | | | | | int * | unsigned int * | %x ipmi_dcmi.c:1909:31: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 1909 | val.sample = *(uint16_t*)(&lvalue); | ^~~~~~~~~~~~~~~~~~~~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o hpm2.lo hpm2.c ipmi_delloem.c:4228:58: warning: format '%x' expects argument of type 'unsigned int *', but argument 5 has type 'int *' [-Wformat=] 4228 | } else if (sscanf(argv[current_arg], "%*x:%x:%x.%x", &b,&d,&f) == 3) { | ~^ ~~ | | | | | int * | unsigned int * | %x ipmi_delloem.c:4232:48: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'int *' [-Wformat=] 4232 | } else if (sscanf(argv[current_arg], "%x:%x.%x", &b,&d,&f) == 3) { | ~^ ~~ | | | | | int * | unsigned int * | %x ipmi_delloem.c:4232:51: warning: format '%x' expects argument of type 'unsigned int *', but argument 4 has type 'int *' [-Wformat=] 4232 | } else if (sscanf(argv[current_arg], "%x:%x.%x", &b,&d,&f) == 3) { | ~^ ~~ | | | | | int * | unsigned int * | %x ipmi_delloem.c:4232:54: warning: format '%x' expects argument of type 'unsigned int *', but argument 5 has type 'int *' [-Wformat=] 4232 | } else if (sscanf(argv[current_arg], "%x:%x.%x", &b,&d,&f) == 3) { | ~^ ~~ | | | | | int * | unsigned int * | %x ipmi_dcmi.c: In function 'ipmi_nm_thresh': ipmi_dcmi.c:3156:49: warning: taking address of packed member of 'struct nm_thresh' may result in an unaligned pointer value [-Waddress-of-packed-member] 3156 | if (str2ushort(argv[0], &thresh.thresholds[i++]) < 0) { | ^~~~~~~~~~~~~~~~~~~~~~~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_vita.lo ipmi_vita.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_lanp6.lo ipmi_lanp6.c /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_cfgp.lo ipmi_cfgp.c In file included from ../include/ipmitool/ipmi_fru.h:38, from ipmi_vita.c:37: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ ../include/ipmitool/ipmi_fru.h:84:10: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 84 | }; | ^ ipmi_lanp6.c: In function 'lanp_parse_cfgp': ipmi_lanp6.c:596:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 596 | if (set > 2) { | ^ ipmi_lanp6.c:601:9: note: here 601 | case IPMI_LANP_IP6_DYNAMIC_RTR_ADDR: | ^~~~ ipmi_lanp6.c: In function 'lanp_get_cfgp': ipmi_lanp6.c:703:25: warning: this statement may fall through [-Wimplicit-fallthrough=] 703 | data[0] = data[17] = data[24] = data[26] = set; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipmi_lanp6.c:705:9: note: here 705 | case IPMI_LANP_IP6_DYNAMIC_RTR_ADDR: | ^~~~ ipmi_lanp6.c: In function 'lanp_set_cfgp': ipmi_lanp6.c:653:21: warning: this statement may fall through [-Wimplicit-fallthrough=] 653 | off = 1; | ~~~~^~~ ipmi_lanp6.c:655:9: note: here 655 | case IPMI_LANP_IP6_DYNAMIC_RTR_ADDR: | ^~~~ /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ../src/plugins/lan/md5.lo ../src/plugins/lan/md5.c /bin/sh ../libtool --silent --tag=CC --mode=link gcc -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -export-dynamic -o libipmitool.la helper.lo ipmi_sdr.lo ipmi_sel.lo ipmi_sol.lo ipmi_pef.lo ipmi_lanp.lo ipmi_fru.lo ipmi_chassis.lo ipmi_mc.lo log.lo dimm_spd.lo ipmi_sensor.lo ipmi_channel.lo ipmi_event.lo ipmi_session.lo ipmi_strings.lo ipmi_user.lo ipmi_raw.lo ipmi_oem.lo ipmi_isol.lo ipmi_sunoem.lo ipmi_fwum.lo ipmi_picmg.lo ipmi_main.lo ipmi_tsol.lo ipmi_firewall.lo ipmi_kontronoem.lo ipmi_hpmfwupg.lo ipmi_sdradd.lo ipmi_ekanalyzer.lo ipmi_gendev.lo ipmi_ime.lo ipmi_delloem.lo ipmi_dcmi.lo hpm2.lo ipmi_vita.lo ipmi_lanp6.lo ipmi_cfgp.lo ../src/plugins/lan/md5.lo -lm -lreadline -lncurses -ltinfo -lreadline -lncurses -ltinfo -lcrypto make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/lib' Making all in src make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src' Making all in plugins make[3]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins' Making all in lan make[4]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/lan' /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o lan.lo lan.c /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o auth.lo auth.c In file included from ../../../include/ipmitool/ipmi_sel.h:38, from lan.c:53: ../../../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ lan.c: In function 'ipmi_handle_pong': lan.c:344:37: warning: unused parameter 'intf' [-Wunused-parameter] 344 | ipmi_handle_pong(struct ipmi_intf * intf, struct ipmi_rs * rsp) | ~~~~~~~~~~~~~~~~~~~^~~~ lan.c: In function 'check_sol_packet_for_new_data': lan.c:1445:50: warning: unused parameter 'intf' [-Wunused-parameter] 1445 | check_sol_packet_for_new_data(struct ipmi_intf * intf, | ~~~~~~~~~~~~~~~~~~~^~~~ /bin/sh ../../../libtool --silent --tag=CC --mode=link gcc -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -o libintf_lan.la lan.lo auth.lo md5.lo ../../../lib/libipmitool.la -lreadline -lncurses -ltinfo -lreadline -lncurses -ltinfo -lcrypto copying selected object files to avoid basename conflicts... make[4]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/lan' Making all in lanplus make[4]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/lanplus' /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o lanplus.lo lanplus.c /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o lanplus_strings.lo lanplus_strings.c /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o lanplus_crypt.lo lanplus_crypt.c /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o lanplus_dump.lo lanplus_dump.c /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o lanplus_crypt_impl.lo lanplus_crypt_impl.c lanplus_crypt.c: In function 'lanplus_rakp2_hmac_matches': lanplus_crypt.c:89:1: warning: embedding a directive within macro arguments is not portable 89 | #ifdef HAVE_CRYPTO_SHA256 | ^ lanplus_crypt.c:91:1: warning: embedding a directive within macro arguments is not portable 91 | #endif /* HAVE_CRYPTO_SHA256 */ | ^ lanplus_crypt.c: In function 'lanplus_rakp4_hmac_matches': lanplus_crypt.c:256:1: warning: embedding a directive within macro arguments is not portable 256 | #ifdef HAVE_CRYPTO_SHA256 | ^ lanplus_crypt.c:258:1: warning: embedding a directive within macro arguments is not portable 258 | #endif /* HAVE_CRYPTO_SHA256 */ | ^ lanplus_crypt.c: In function 'lanplus_generate_rakp3_authcode': lanplus_crypt.c:422:1: warning: embedding a directive within macro arguments is not portable 422 | #ifdef HAVE_CRYPTO_SHA256 | ^ lanplus_crypt.c:424:1: warning: embedding a directive within macro arguments is not portable 424 | #endif /* HAVE_CRYPTO_SHA256 */ | ^ lanplus_crypt.c: In function 'lanplus_generate_sik': lanplus_crypt.c:544:1: warning: embedding a directive within macro arguments is not portable 544 | #ifdef HAVE_CRYPTO_SHA256 | ^ lanplus_crypt.c:546:1: warning: embedding a directive within macro arguments is not portable 546 | #endif /* HAVE_CRYPTO_SHA256 */ | ^ In file included from ../../../include/ipmitool/ipmi_sel.h:38, from lanplus.c:60: ../../../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ lanplus.c: In function 'ipmi_handle_pong': lanplus.c:521:37: warning: unused parameter 'intf' [-Wunused-parameter] 521 | ipmi_handle_pong(struct ipmi_intf * intf, struct ipmi_rs * rsp) | ~~~~~~~~~~~~~~~~~~~^~~~ lanplus.c: In function 'ipmi_lan_poll_single': lanplus.c:768:33: warning: unused variable 'target_cmd' [-Wunused-variable] 768 | uint8_t target_cmd = entry->req.msg.target_cmd; | ^~~~~~~~~~ lanplus.c: In function 'read_session_data_v2x': lanplus.c:1217:65: warning: unused parameter 's' [-Wunused-parameter] 1217 | struct ipmi_session * s) | ~~~~~~~~~~~~~~~~~~~~~~^ lanplus.c: In function 'read_session_data_v15': lanplus.c:1271:79: warning: unused parameter 's' [-Wunused-parameter] 1271 | struct ipmi_session * s) | ~~~~~~~~~~~~~~~~~~~~~~^ lanplus.c: In function 'getSolPayloadWireRep': lanplus.c:1535:76: warning: unused parameter 'intf' [-Wunused-parameter] 1535 | struct ipmi_intf * intf, /* in out */ | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ lanplus.c: In function 'ipmi_lanplus_build_v2x_ipmi_cmd': lanplus.c:1969:31: warning: unused variable 'backup_cmd' [-Wunused-variable] 1969 | unsigned char backup_cmd; | ^~~~~~~~~~ lanplus.c: In function 'check_sol_packet_for_new_data': lanplus.c:2582:78: warning: unused parameter 'intf' [-Wunused-parameter] 2582 | struct ipmi_intf * intf, | ~~~~~~~~~~~~~~~~~~~^~~~ /bin/sh ../../../libtool --silent --tag=CC --mode=link gcc -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -o libintf_lanplus.la lanplus.lo lanplus_strings.lo lanplus_crypt.lo lanplus_dump.lo lanplus_crypt_impl.lo ../../../lib/libipmitool.la -lreadline -lncurses -ltinfo -lreadline -lncurses -ltinfo -lcrypto make[4]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/lanplus' Making all in open make[4]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/open' /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o open.lo open.c In file included from ../../../include/ipmitool/ipmi_sel.h:38, from open.c:47: ../../../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ open.c: In function 'ipmi_openipmi_open': open.c:106:46: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] 106 | sprintf(ipmi_devfs2, "/dev/ipmidev/%d", devnum); | ^ open.c:106:9: note: 'sprintf' output between 15 and 17 bytes into a destination of size 16 106 | sprintf(ipmi_devfs2, "/dev/ipmidev/%d", devnum); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /bin/sh ../../../libtool --silent --tag=CC --mode=link gcc -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -o libintf_open.la open.lo ../../../lib/libipmitool.la -lreadline -lncurses -ltinfo -lreadline -lncurses -ltinfo -lcrypto make[4]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/open' Making all in imb make[4]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/imb' /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o imbapi.lo imbapi.c /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o imb.lo imb.c imbapi.c: In function 'open_imb': imbapi.c:173:54: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 173 | lprintf(LOG_DEBUG, "%s: opening the driver", __FUNCTION__); | ^~~~~~~~~~~~ imbapi.c:195:51: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 195 | __FILE__, __FUNCTION__, IMB_DEVICE); | ^~~~~~~~~~~~ imbapi.c:215:71: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 215 | lprintf(LOG_DEBUG, "%s: opened driver, getting IPMI version", __FUNCTION__); | ^~~~~~~~~~~~ imbapi.c:222:33: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 222 | __FUNCTION__, my_ret_code, completionCode); | ^~~~~~~~~~~~ imbapi.c:236:53: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 236 | lprintf(LOG_DEBUG, "%s: IPMI version 0x%x", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c: In function 'DeviceIoControl': imbapi.c:301:53: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 301 | lprintf(LOG_DEBUG, "%s: ioctl cmd = 0x%lx", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c:322:43: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 322 | __FILE__, __FUNCTION__, dwIoControlCode); | ^~~~~~~~~~~~ imbapi.c:326:25: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 326 | __FUNCTION__, ioctl_status, *lpcbBytesReturned); | ^~~~~~~~~~~~ imbapi.c:328:57: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 328 | lprintf(LOG_DEBUG, "%s returning true", __FUNCTION__); | ^~~~~~~~~~~~ imbapi.c:331:58: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 331 | lprintf(LOG_DEBUG, "%s returning false", __FUNCTION__); | ^~~~~~~~~~~~ imbapi.c:288:24: warning: unused parameter 'dummey_hDevice' [-Wunused-parameter] 288 | DeviceIoControl(HANDLE dummey_hDevice, DWORD dwIoControlCode, LPVOID | ~~~~~~~^~~~~~~~~~~~~~ imbapi.c: In function 'StartAsyncMesgPoll': imbapi.c:344:25: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 344 | __FUNCTION__, IOCTL_IMB_POLL_ASYNC); | ^~~~~~~~~~~~ imbapi.c:349:63: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 349 | lprintf(LOG_DEBUG, "%s: DeviceIoControl status = %d", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c: In function 'SendTimedI2cRequest': imbapi.c:410:63: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 410 | lprintf(LOG_DEBUG, "%s: DeviceIoControl status = %d", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c: In function 'SendTimedEmpMessageResponse': imbapi.c:501:63: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 501 | lprintf(LOG_DEBUG, "%s: DeviceIoControl status = %d", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c: In function 'SendTimedEmpMessageResponse_Ex': imbapi.c:629:63: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 629 | lprintf(LOG_DEBUG, "%s: DeviceIoControl status = %d", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c: In function 'SendTimedLanMessageResponse': imbapi.c:714:63: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 714 | lprintf(LOG_DEBUG, "%s: DeviceIoControl status = %d", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c: In function 'SendTimedLanMessageResponse_Ex': imbapi.c:842:63: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 842 | lprintf(LOG_DEBUG, "%s: DeviceIoControl status = %d", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c: In function 'SendTimedImbpRequest': imbapi.c:885:25: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 885 | __FUNCTION__, req->req.rsSa, req->req.cmd, | ^~~~~~~~~~~~ In file included from ../../../include/ipmitool/ipmi_sel.h:38, from imb.c:46: ../../../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ imbapi.c:893:25: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 893 | __FUNCTION__, status); | ^~~~~~~~~~~~ imbapi.c: In function 'SendAsyncImbpRequest': imbapi.c:952:63: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 952 | lprintf(LOG_DEBUG, "%s: DeviceIoControl status = %d", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c: In function 'GetAsyncImbpMessage': imbapi.c:1002:33: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 1002 | __FUNCTION__, status); | ^~~~~~~~~~~~ imbapi.c: In function 'GetAsyncImbpMessage_Ex': imbapi.c:1099:33: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 1099 | __FUNCTION__, status); | ^~~~~~~~~~~~ imbapi.c: In function 'IsAsyncMessageAvailable': imbapi.c:1197:63: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 1197 | lprintf(LOG_DEBUG, "%s: DeviceIoControl status = %d", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c: In function 'RegisterForImbAsyncMessageNotification': imbapi.c:1229:63: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 1229 | lprintf(LOG_DEBUG, "%s: DeviceIoControl status = %d", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c: In function 'UnRegisterForImbAsyncMessageNotification': imbapi.c:1268:63: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 1268 | lprintf(LOG_DEBUG, "%s: DeviceIoControl status = %d", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c: In function 'SetShutDownCode': imbapi.c:1298:63: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 1298 | lprintf(LOG_DEBUG, "%s: DeviceIoControl status = %d", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c: In function 'MapPhysicalMemory': imbapi.c:1405:43: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 1405 | __FILE__, __FUNCTION__, IMB_DEVICE); | ^~~~~~~~~~~~ imbapi.c:1416:62: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 1416 | sprintf(buf, "%s %s: mmap failed", __FILE__, __FUNCTION__); | ^~~~~~~~~~~~ imbapi.c:1421:56: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 1421 | lprintf(LOG_DEBUG, "%s: mmap of 0x%x success", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c: In function 'UnmapPhysicalMemory': imbapi.c:1454:59: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 1454 | lprintf(LOG_DEBUG, "%s: calling munmap(0x%x,%d)", __FUNCTION__, | ^~~~~~~~~~~~ imbapi.c:1458:64: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 1458 | sprintf(buf, "%s %s: munmap failed", __FILE__, __FUNCTION__); | ^~~~~~~~~~~~ imbapi.c:1462:59: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic] 1462 | lprintf(LOG_DEBUG, "%s: munmap(0x%x,%d) success", __FUNCTION__, | ^~~~~~~~~~~~ imb.c: In function 'ipmi_imb_send_cmd': imb.c:78:62: warning: unused parameter 'intf' [-Wunused-parameter] 78 | static struct ipmi_rs * ipmi_imb_send_cmd(struct ipmi_intf * intf, struct ipmi_rq * req) | ~~~~~~~~~~~~~~~~~~~^~~~ /bin/sh ../../../libtool --silent --tag=CC --mode=link gcc -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -o libintf_imb.la imbapi.lo imb.lo ../../../lib/libipmitool.la -lreadline -lncurses -ltinfo -lreadline -lncurses -ltinfo -lcrypto make[4]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/imb' Making all in serial make[4]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/serial' /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o serial_terminal.lo serial_terminal.c /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o serial_basic.lo serial_basic.c serial_basic.c:92:29: warning: invalid use of structure with flexible array member [-Wpedantic] 92 | struct ipmb_msg_hdr msg; | ^~~ serial_terminal.c:90:29: warning: invalid use of structure with flexible array member [-Wpedantic] 90 | struct ipmb_msg_hdr msg; | ^~~ serial_terminal.c: In function 'ipmi_serial_term_open': serial_terminal.c:192:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 192 | for (i = 0; i < sizeof(rates) / sizeof(rates[0]); i++) { | ^ serial_terminal.c:193:39: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 193 | if (rates[i].baudrate == rate) { | ^~ serial_terminal.c:197:15: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 197 | if (i >= sizeof(rates) / sizeof(rates[0])) { | ^~ serial_basic.c: In function 'serial_bm_open': serial_basic.c:245:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 245 | for (i = 0; i < sizeof(rates) / sizeof(rates[0]); i++) { | ^ serial_basic.c:246:39: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 246 | if (rates[i].baudrate == rate) { | ^~ serial_basic.c:250:15: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 250 | if (i >= sizeof(rates) / sizeof(rates[0])) { | ^~ serial_basic.c: In function 'serial_bm_recv_msg': serial_terminal.c: In function 'serial_term_build_msg': serial_terminal.c:491:55: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 491 | if(req->msg.data_len + 3 + bridging_level * 8 > max_len) { | ^ serial_basic.c:585:24: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 585 | if (rv < recv_ctx->buffer_size) { | ^ serial_basic.c: In function 'serial_bm_build_msg': serial_terminal.c: In function 'serial_term_send_msg': serial_terminal.c:639:33: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 639 | buf += sprintf( buf, "%02x", msg[i]); | ^~~ | | | uint8_t * {aka unsigned char *} In file included from serial_terminal.c:39: /usr/include/stdio.h:358:38: note: expected 'char * restrict' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 358 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ serial_basic.c:630:55: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 630 | if(req->msg.data_len + 7 + bridging_level * 8 > max_len) { | ^ serial_terminal.c: In function 'serial_term_get_message': serial_terminal.c:722:39: warning: unused parameter 'max_len' [-Wunused-parameter] 722 | uint8_t * msg, size_t max_len) | ~~~~~~~^~~~~~~ serial_basic.c: In function 'serial_bm_get_message': serial_basic.c:825:39: warning: unused parameter 'max_len' [-Wunused-parameter] 825 | uint8_t * msg, size_t max_len) | ~~~~~~~^~~~~~~ In function 'serial_bm_parse_buffer', inlined from 'serial_bm_recv_msg' at serial_basic.c:582:8, inlined from 'serial_bm_wait_response.constprop' at serial_basic.c:759:20: serial_basic.c:535:33: warning: 'parse_ctx.msg_len' may be used uninitialized [-Wmaybe-uninitialized] 535 | ctx->msg[ctx->msg_len++] = data[i]; | ^ serial_basic.c: In function 'serial_bm_wait_response.constprop': serial_basic.c:551:36: note: 'parse_ctx.msg_len' was declared here 551 | struct serial_bm_parse_ctx parse_ctx; | ^~~~~~~~~ serial_terminal.c: In function 'ipmi_serial_term_send_cmd': serial_terminal.c:805:17: warning: 'msg_len' may be used uninitialized [-Wmaybe-uninitialized] 805 | serial_term_send_msg(intf, msg, msg_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial_terminal.c:788:24: note: 'msg_len' was declared here 788 | int retry, rv, msg_len, bridging_level; | ^~~~~~~ serial_basic.c: In function 'serial_bm_send_request': serial_basic.c:921:17: warning: 'msg_len' may be used uninitialized [-Wmaybe-uninitialized] 921 | serial_bm_send_msg(intf, msg, msg_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial_basic.c:900:24: note: 'msg_len' was declared here 900 | int retry, rv, msg_len, bridging_level; | ^~~~~~~ /bin/sh ../../../libtool --silent --tag=CC --mode=link gcc -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -o libintf_serial.la serial_terminal.lo serial_basic.lo ../../../lib/libipmitool.la -lreadline -lncurses -ltinfo -lreadline -lncurses -ltinfo -lcrypto make[4]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/serial' Making all in usb make[4]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/usb' /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o usb.lo usb.c In file included from /usr/include/sys/types.h:25, from ../../../include/ipmitool/helper.h:36, from usb.c:35: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ usb.c: In function 'ipmi_usb_send_cmd': usb.c:579:16: warning: array subscript 'IPMIUSBRequest_T[0]' is partly outside array bounds of 'char[65536]' [-Warray-bounds] 579 | pReqPkt->byNetFnLUN += req->msg.lun; | ^~ usb.c:574:14: note: object 'ReqBuff' of size 65536 574 | char ReqBuff[MAX_REQUEST_SIZE] = {0}; | ^~~~~~~ usb.c:580:16: warning: array subscript 'IPMIUSBRequest_T[0]' is partly outside array bounds of 'char[65536]' [-Warray-bounds] 580 | pReqPkt->byCmd = req->msg.cmd; | ^~ usb.c:574:14: note: object 'ReqBuff' of size 65536 574 | char ReqBuff[MAX_REQUEST_SIZE] = {0}; | ^~~~~~~ /bin/sh ../../../libtool --silent --tag=CC --mode=link gcc -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -o libintf_usb.la usb.lo ../../../lib/libipmitool.la -lreadline -lncurses -ltinfo -lreadline -lncurses -ltinfo -lcrypto make[4]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/usb' make[4]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins' /bin/sh ../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmi_intf.lo ipmi_intf.c In file included from ipmi_intf.c:56: ../../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ /bin/sh ../../libtool --silent --tag=CC --mode=link gcc -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -export-dynamic -o libintf.la ipmi_intf.lo lan/libintf_lan.la usb/libintf_usb.la lanplus/libintf_lanplus.la serial/libintf_serial.la open/libintf_open.la imb/libintf_imb.la -lreadline -lncurses -ltinfo -lreadline -lncurses -ltinfo -lcrypto copying selected object files to avoid basename conflicts... make[4]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins' make[3]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins' make[3]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmitool.o ipmitool.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmishell.o ipmishell.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -c -o ipmievd.o ipmievd.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from ipmievd.c:35: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from ipmishell.c:36: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from ipmitool.c:40: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ ipmishell.c: In function 'ipmi_shell_main': ipmishell.c:102:50: warning: unused parameter 'argc' [-Wunused-parameter] 102 | int ipmi_shell_main(struct ipmi_intf * intf, int argc, char ** argv) | ~~~~^~~~ ipmishell.c:102:64: warning: unused parameter 'argv' [-Wunused-parameter] 102 | int ipmi_shell_main(struct ipmi_intf * intf, int argc, char ** argv) | ~~~~~~~~^~~~ ipmishell.c: In function 'ipmi_echo_main': ipmishell.c:228:39: warning: unused parameter 'intf' [-Wunused-parameter] 228 | int ipmi_echo_main(struct ipmi_intf * intf, int argc, char ** argv) | ~~~~~~~~~~~~~~~~~~~^~~~ In file included from ipmitool.c:43: ../include/ipmitool/ipmi_fru.h:84:10: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 84 | }; | ^ In file included from ../include/ipmitool/ipmi_sel.h:38, from ipmievd.c:81: ../include/ipmitool/ipmi_sdr.h:312:44: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 312 | } ATTRIBUTE_PACKING; | ^ In file included from ipmitool.c:63: ../include/ipmitool/ipmi_hpmfwupg.h:85:12: warning: 'errorCount' defined but not used [-Wunused-variable] 85 | static int errorCount; | ^~~~~~~~~~ ipmievd.c: In function 'ipmievd_cleanup': ipmievd.c:686:21: warning: unused parameter 'signal' [-Wunused-parameter] 686 | ipmievd_cleanup(int signal) | ~~~~^~~~~~ ipmievd.c: In function 'ipmievd_main': ipmievd.c:736:25: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 736 | strncpy(pidfile, argv[i]+8, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 737 | __min(strlen((const char *)(argv[i]+8)), 63)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ipmievd.c:77: ipmievd.c:737:39: note: length computed here 737 | __min(strlen((const char *)(argv[i]+8)), 63)); ../include/ipmitool/helper.h:176:25: note: in definition of macro '__min' 176 | # define __min(a, b) ((a) < (b) ? (a) : (b)) | ^ /bin/sh ../libtool --silent --tag=CC --mode=link gcc -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -o ipmitool ipmitool.o ipmishell.o ../lib/libipmitool.la plugins/libintf.la -lreadline -lncurses -ltinfo -lreadline -lncurses -ltinfo -lcrypto /bin/sh ../libtool --silent --tag=CC --mode=link gcc -O2 -g -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -o ipmievd ipmievd.o ../lib/libipmitool.la plugins/libintf.la -lreadline -lncurses -ltinfo -lreadline -lncurses -ltinfo -lcrypto make[3]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src' make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src' Making all in include make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include' Making all in ipmitool make[3]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include/ipmitool' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include/ipmitool' make[3]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include' make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include' Making all in doc make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/doc' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/doc' Making all in contrib make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/contrib' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/contrib' Making all in control make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/control' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/control' make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18' make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18' make[1]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.TnAxbU + umask 022 + cd /builddir/build/BUILD + /usr/bin/rm -rf /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64 + /usr/bin/mkdir -p /builddir/build/BUILDROOT + /usr/bin/mkdir /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64 + cd ipmitool-IPMITOOL_1_8_18 + make DESTDIR=/builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64 install Making install in lib make[1]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/lib' make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/lib' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/lib' make[1]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/lib' Making install in src make[1]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src' Making install in plugins make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins' Making install in lan make[3]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/lan' make[4]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/lan' make[4]: Nothing to be done for 'install-exec-am'. make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/lan' make[3]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/lan' Making install in lanplus make[3]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/lanplus' make[4]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/lanplus' make[4]: Nothing to be done for 'install-exec-am'. make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/lanplus' make[3]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/lanplus' Making install in open make[3]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/open' make[4]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/open' make[4]: Nothing to be done for 'install-exec-am'. make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/open' make[3]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/open' Making install in imb make[3]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/imb' make[4]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/imb' make[4]: Nothing to be done for 'install-exec-am'. make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/imb' make[3]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/imb' Making install in serial make[3]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/serial' make[4]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/serial' make[4]: Nothing to be done for 'install-exec-am'. make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/serial' make[3]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/serial' Making install in usb make[3]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/usb' make[4]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/usb' make[4]: Nothing to be done for 'install-exec-am'. make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/usb' make[3]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins/usb' make[3]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins' make[4]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins' make[4]: Nothing to be done for 'install-exec-am'. make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins' make[3]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins' make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src/plugins' make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src' make[3]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/bin' /bin/sh ../libtool --silent --mode=install /usr/bin/install -c ipmitool '/builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/bin' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/sbin' /bin/sh ../libtool --silent --mode=install /usr/bin/install -c ipmievd '/builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/sbin' make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src' make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src' make[1]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/src' Making install in include make[1]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include' Making install in ipmitool make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include/ipmitool' make[3]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include/ipmitool' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include/ipmitool' make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include/ipmitool' make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include' make[3]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include' make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include' make[1]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/include' Making install in doc make[1]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/doc' make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/doc' make[2]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/share/man/man1' /usr/bin/install -c -m 644 ipmitool.1 '/builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/share/man/man1' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/share/man/man8' /usr/bin/install -c -m 644 ipmievd.8 '/builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/share/man/man8' make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/doc' make[1]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/doc' Making install in contrib make[1]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/contrib' make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/contrib' make[2]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/share/ipmitool' /usr/bin/install -c -m 644 oem_ibm_sel_map '/builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/share/ipmitool' make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/contrib' make[1]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/contrib' Making install in control make[1]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/control' make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/control' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/control' make[1]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18/control' make[1]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18' make[2]: Entering directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18' make[2]: Nothing to be done for 'install-exec-am'. mkdir -p /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/share/doc/ipmitool /usr/bin/install -c -m 644 ./README ./COPYING ./AUTHORS ./ChangeLog /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/share/doc/ipmitool make[2]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18' make[1]: Leaving directory '/builddir/build/BUILD/ipmitool-IPMITOOL_1_8_18' + install -Dpm 644 /builddir/build/SOURCES/ipmievd.service /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/lib/systemd/system/ipmievd.service + install -Dpm 644 /builddir/build/SOURCES/openipmi-ipmievd.sysconf /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/etc/sysconfig/ipmievd + install -Dm 644 /builddir/build/SOURCES/exchange-bmc-os-info.service /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/lib/systemd/system/exchange-bmc-os-info.service + install -Dm 644 /builddir/build/SOURCES/exchange-bmc-os-info.sysconf /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/etc/sysconfig/exchange-bmc-os-info + install -Dm 644 /builddir/build/SOURCES/set-bmc-url.sh /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/etc/profile.d/set-bmc-url.sh + install -Dm 755 /builddir/build/SOURCES/exchange-bmc-os-info /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/libexec/exchange-bmc-os-info + install -Dm 644 contrib/bmc-snmp-proxy.sysconf /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/etc/sysconfig/bmc-snmp-proxy + install -Dm 644 contrib/bmc-snmp-proxy.service /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/lib/systemd/system/bmc-snmp-proxy.service + install -Dm 755 contrib/bmc-snmp-proxy /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64/usr/libexec/bmc-snmp-proxy + /usr/lib/rpm/brp-compress /usr + /usr/lib/rpm/brp-elfperms + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-remove-la-files Processing files: ipmitool-1.8.18-1.an23.riscv64 Provides: OpenIPMI-tools = 2.0.14-3 ipmitool = 1.8.18-1.an23 ipmitool(riscv-64) = 1.8.18-1.an23 Requires(interp): /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): systemd Requires(preun): systemd Requires(postun): systemd Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libcrypto.so.1.1()(64bit) libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.27)(64bit) libncurses.so.6()(64bit) libreadline.so.8()(64bit) libtinfo.so.6()(64bit) rtld(GNU_HASH) Obsoletes: OpenIPMI-tools < 2.0.14-3 Processing files: ipmievd-1.8.18-1.an23.riscv64 Provides: config(ipmievd) = 1.8.18-1.an23 ipmievd = 1.8.18-1.an23 ipmievd(riscv-64) = 1.8.18-1.an23 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh systemd Requires(preun): /bin/sh systemd Requires(postun): /bin/sh systemd Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libcrypto.so.1.1()(64bit) libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.27)(64bit) libncurses.so.6()(64bit) libreadline.so.8()(64bit) libtinfo.so.6()(64bit) rtld(GNU_HASH) Processing files: bmc-snmp-proxy-1.8.18-1.an23.noarch Provides: bmc-snmp-proxy = 1.8.18-1.an23 config(bmc-snmp-proxy) = 1.8.18-1.an23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /bin/sh Processing files: exchange-bmc-os-info-1.8.18-1.an23.noarch Provides: config(exchange-bmc-os-info) = 1.8.18-1.an23 exchange-bmc-os-info = 1.8.18-1.an23 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh systemd Requires(preun): /bin/sh systemd Requires(postun): /bin/sh systemd Requires: /bin/sh Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64 Wrote: /builddir/build/RPMS/exchange-bmc-os-info-1.8.18-1.an23.noarch.rpm Wrote: /builddir/build/RPMS/bmc-snmp-proxy-1.8.18-1.an23.noarch.rpm Wrote: /builddir/build/RPMS/ipmievd-1.8.18-1.an23.riscv64.rpm Wrote: /builddir/build/RPMS/ipmitool-1.8.18-1.an23.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.kn9wrt + umask 022 + cd /builddir/build/BUILD + cd ipmitool-IPMITOOL_1_8_18 + /usr/bin/rm -rf /builddir/build/BUILDROOT/ipmitool-1.8.18-1.an23.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0