intel/ledmon

0.96: build fails

Closed this issue · 11 comments

Looks like linking fails with -Werror=format-truncation

+ cd ledmon-0.96
+ autoreconf -fiv
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /usr/bin/autoconf --force
configure.ac:14: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:14: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:14: the top level
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:13: installing './compile'
configure.ac:63: installing './config.guess'
configure.ac:63: installing './config.sub'
configure.ac:6: installing './install-sh'
configure.ac:6: installing './missing'
src/Makefile.am: installing './depcomp'
autoreconf: Leaving directory '.'
+ CFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os'
+ CXXFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ FFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
+ FCFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1'
+ CC=/usr/bin/gcc
+ CXX=/usr/bin/g++
+ FC=/usr/bin/gfortran
+ AR=/usr/bin/gcc-ar
+ NM=/usr/bin/gcc-nm
+ RANLIB=/usr/bin/gcc-ranlib
+ export CFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS CC CXX FC AR NM RANLIB
+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --disable-silent-rules --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 --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
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 gcc... yes
checking for make... yes
checking whether make supports the include directive... yes (GNU style)
checking for x86_64-redhat-linux-gnu-gcc... /usr/bin/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 /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to enable C11 features... none needed
checking whether /usr/bin/gcc understands -c and -o together... yes
checking dependency style of /usr/bin/gcc... none
checking whether C compiler accepts -Wformat -Werror=format-security... yes
checking whether C compiler accepts -Werror=format-overflow=2... yes
checking whether C compiler accepts -Werror=format-truncation=1... yes
checking whether C compiler accepts -Werror=shift-negative-value... yes
checking whether C compiler accepts -Werror=alloca... yes
checking whether C compiler accepts -Werror=missing-field-initializers... yes
checking whether C compiler accepts -Werror=format-signedness... yes
checking whether make supports nested variables... (cached) yes
checking for x86_64-redhat-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for shm_unlink in -lrt... yes
checking for sg_ll_send_diag in -lsgutils2... yes
checking for LIBUDEV... yes
checking for LIBPCI... yes
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 vfork.h... no
checking for sys/param.h... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking for limits.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/file.h... yes
checking for sys/ioctl.h... yes
checking for sys/param.h... (cached) yes
checking for sys/time.h... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for struct stat.st_blksize... yes
checking for struct stat.st_rdev... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for fork... yes
checking for vfork... yes
checking for getpagesize... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking for GNU libc compatible malloc... yes
checking for working mmap... yes
checking for ftruncate... yes
checking for memset... yes
checking for munmap... yes
checking for realpath... yes
checking for regcomp... yes
checking for select... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating systemd/Makefile
config.status: creating config_ac.h
config.status: executing depfiles commands

ledmon 0.96 configuration:

  Source code location:    .
  Preprocessor flags:      -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\""$(BUILD_LABEL)"\"
  C compiler flags:        -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os
  Common install location: /usr
  configure parameters:    --enable-systemd=no

+ /usr/bin/make -O -j48 V=1 VERBOSE=1
/usr/bin/make  all-recursive
Making all in doc
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/doc'
pod2man -r "LEDMON.CONF Version 0.96 " -d "May 2022" \
        -s 5 -n ledmon.conf -c "Intel(R) Enclosure LED Utilities Config" ledmon.conf.pod | gzip -9f > ledmon.conf.gz
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/doc'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/doc'
pod2man -r "LEDMON Version 0.96 " -d "May 2022" \
        -s 8 -n ledmon -c "Intel(R) Enclosure LED Monitor Service" ledmon.pod | gzip -9f > ledmon.gz
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/doc'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/doc'
pod2man -r "LEDCTL Version 0.96 " -d "May 2022" \
        -s 8 -n ledctl -c "Intel(R) Enclosure LED Control Application" ledctl.pod | gzip -9f > ledctl.gz
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/doc'
Making all in src
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-status.o `test -f 'status.c' || echo './'`status.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-status.o `test -f 'status.c' || echo './'`status.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-list.o `test -f 'list.c' || echo './'`list.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-list.o `test -f 'list.c' || echo './'`list.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-raid.o `test -f 'raid.c' || echo './'`raid.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-pci_slot.o `test -f 'pci_slot.c' || echo './'`pci_slot.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-udev.o `test -f 'udev.c' || echo './'`udev.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-slave.o `test -f 'slave.c' || echo './'`slave.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-vmdssd.o `test -f 'vmdssd.c' || echo './'`vmdssd.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-raid.o `test -f 'raid.c' || echo './'`raid.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-ahci.o `test -f 'ahci.c' || echo './'`ahci.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-slave.o `test -f 'slave.c' || echo './'`slave.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-pidfile.o `test -f 'pidfile.c' || echo './'`pidfile.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-npem.o `test -f 'npem.c' || echo './'`npem.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-udev.o `test -f 'udev.c' || echo './'`udev.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-scsi.o `test -f 'scsi.c' || echo './'`scsi.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-enclosure.o `test -f 'enclosure.c' || echo './'`enclosure.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-ipmi.o `test -f 'ipmi.c' || echo './'`ipmi.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-pci_slot.o `test -f 'pci_slot.c' || echo './'`pci_slot.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-npem.o `test -f 'npem.c' || echo './'`npem.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-ahci.o `test -f 'ahci.c' || echo './'`ahci.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-dellssd.o `test -f 'dellssd.c' || echo './'`dellssd.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-enclosure.o `test -f 'enclosure.c' || echo './'`enclosure.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-amd.o `test -f 'amd.c' || echo './'`amd.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-vmdssd.o `test -f 'vmdssd.c' || echo './'`vmdssd.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-cntrl.o `test -f 'cntrl.c' || echo './'`cntrl.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-amd.o `test -f 'amd.c' || echo './'`amd.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-cntrl.o `test -f 'cntrl.c' || echo './'`cntrl.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-block.o `test -f 'block.c' || echo './'`block.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-scsi.o `test -f 'scsi.c' || echo './'`scsi.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-config_file.o `test -f 'config_file.c' || echo './'`config_file.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-ses.o `test -f 'ses.c' || echo './'`ses.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-dellssd.o `test -f 'dellssd.c' || echo './'`dellssd.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-config_file.o `test -f 'config_file.c' || echo './'`config_file.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-sysfs.o `test -f 'sysfs.c' || echo './'`sysfs.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-block.o `test -f 'block.c' || echo './'`block.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-amd_ipmi.o `test -f 'amd_ipmi.c' || echo './'`amd_ipmi.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-smp.o `test -f 'smp.c' || echo './'`smp.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-ipmi.o `test -f 'ipmi.c' || echo './'`ipmi.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-ledctl.o `test -f 'ledctl.c' || echo './'`ledctl.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-ledmon.o `test -f 'ledmon.c' || echo './'`ledmon.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-sysfs.o `test -f 'sysfs.c' || echo './'`sysfs.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-amd_ipmi.o `test -f 'amd_ipmi.c' || echo './'`amd_ipmi.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-smp.o `test -f 'smp.c' || echo './'`smp.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-amd_sgpio.o `test -f 'amd_sgpio.c' || echo './'`amd_sgpio.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-utils.o `test -f 'utils.c' || echo './'`utils.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-ses.o `test -f 'ses.c' || echo './'`ses.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledmon-utils.o `test -f 'utils.c' || echo './'`utils.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\"""\"  -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -c -o ledctl-amd_sgpio.o `test -f 'amd_sgpio.c' || echo './'`amd_sgpio.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o ledctl ledctl-ledctl.o ledctl-ahci.o ledctl-block.o ledctl-cntrl.o ledctl-config_file.o ledctl-enclosure.o ledctl-list.o ledctl-raid.o ledctl-scsi.o ledctl-slave.o ledctl-status.o ledctl-sysfs.o ledctl-smp.o ledctl-dellssd.o ledctl-utils.o ledctl-pci_slot.o ledctl-vmdssd.o ledctl-udev.o ledctl-amd.o ledctl-amd_sgpio.o ledctl-amd_ipmi.o ledctl-ipmi.o ledctl-npem.o ledctl-ses.o -lpci  -ludev  -lsgutils2 -lrt
In function 'scsi_get_host_path',
    inlined from '_get_host' at block.c:144:12,
    inlined from 'block_device_init.constprop' at block.c:239:11:
scsi.c:166:56: error: '/bsg/sas_' directive output may be truncated writing 9 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]
  166 |                 snprintf(host_path, sizeof(host_path), "%s/%s/bsg/sas_%s",
      |                                                        ^
In function 'snprintf',
    inlined from 'scsi_get_host_path' at scsi.c:166:3,
    inlined from '_get_host' at block.c:144:12,
    inlined from 'block_device_init.constprop' at block.c:239:11:
/usr/include/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output 11 or more bytes (assuming 4106) into a destination of size 4096
   71 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^
In function '_is_smp_cntrl',
    inlined from '_get_type' at cntrl.c:238:8,
    inlined from 'cntrl_device_init' at cntrl.c:398:9,
    inlined from '_cntrl_add' at sysfs.c:334:32,
    inlined from '_check_cntrl' at sysfs.c:376:3:
cntrl.c:184:41: error: '/bsg/sas_' directive output may be truncated writing 9 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]
  184 |                                         "%s/%s/bsg/sas_%s", path, p, p);
      |                                         ^
In function 'snprintf',
    inlined from '_is_smp_cntrl' at cntrl.c:183:5,
    inlined from '_get_type' at cntrl.c:238:8,
    inlined from 'cntrl_device_init' at cntrl.c:398:9,
    inlined from '_cntrl_add' at sysfs.c:334:32,
    inlined from '_check_cntrl' at sysfs.c:376:3:
/usr/include/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output 11 or more bytes (assuming 4106) into a destination of size 4096
   71 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^
lto1: some warnings being treated as errors
lto-wrapper: fatal error: /usr/bin/gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:449: ledctl] Error 1
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
make[2]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ledmon-0.96/src'
/usr/bin/gcc -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o ledmon ledmon-ledmon.o ledmon-pidfile.o ledmon-ahci.o ledmon-block.o ledmon-cntrl.o ledmon-config_file.o ledmon-enclosure.o ledmon-list.o ledmon-raid.o ledmon-scsi.o ledmon-slave.o ledmon-status.o ledmon-sysfs.o ledmon-smp.o ledmon-dellssd.o ledmon-utils.o ledmon-pci_slot.o ledmon-vmdssd.o ledmon-udev.o ledmon-amd.o ledmon-amd_sgpio.o ledmon-amd_ipmi.o ledmon-ipmi.o ledmon-npem.o ledmon-ses.o -lpci  -ludev  -lsgutils2 -lrt
In function 'scsi_get_host_path',
    inlined from '_get_host' at block.c:144:12,
    inlined from 'block_device_init' at block.c:239:11:
scsi.c:166:56: error: '/bsg/sas_' directive output may be truncated writing 9 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]
  166 |                 snprintf(host_path, sizeof(host_path), "%s/%s/bsg/sas_%s",
      |                                                        ^
In function 'snprintf',
    inlined from 'scsi_get_host_path' at scsi.c:166:3,
    inlined from '_get_host' at block.c:144:12,
    inlined from 'block_device_init' at block.c:239:11:
/usr/include/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output 11 or more bytes (assuming 4106) into a destination of size 4096
   71 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^
In function '_is_smp_cntrl',
    inlined from '_get_type' at cntrl.c:238:8,
    inlined from 'cntrl_device_init' at cntrl.c:398:9,
    inlined from '_cntrl_add' at sysfs.c:334:32,
    inlined from '_check_cntrl' at sysfs.c:376:3:
cntrl.c:184:41: error: '/bsg/sas_' directive output may be truncated writing 9 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]
  184 |                                         "%s/%s/bsg/sas_%s", path, p, p);
      |                                         ^
In function 'snprintf',
    inlined from '_is_smp_cntrl' at cntrl.c:183:5,
    inlined from '_get_type' at cntrl.c:238:8,
    inlined from 'cntrl_device_init' at cntrl.c:398:9,
    inlined from '_cntrl_add' at sysfs.c:334:32,
    inlined from '_check_cntrl' at sysfs.c:376:3:
/usr/include/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output 11 or more bytes (assuming 4106) into a destination of size 4096
   71 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^
lto1: some warnings being treated as errors
lto-wrapper: fatal error: /usr/bin/gcc returned 1 exit status

Could you provide me versions of gcc and make packages?

Latest gcc 12.1.1.

Thanks. In attached log I see that these errors are expected and coms from additional flag "-Werror=format-truncation". We use buffer with PATH_MAX size, which is the same as components size. In case that all buffer will be written, output will be truncated, which is expected.
I suggest you to turn off this flag to avoid these errors.

Please do not swipe that under the carpet.

Linux supports name with a size up to 4096, which is PATH_MAX. That size shall be our max length.
If we are concatenating many paths like in those cases, we accept the risk of buffer truncation. I believe that issues cannot occur real live, especially that we are scanning sysfs, interface created by kernel.
I don't see any advantage of creating dedicated and precisely calculated memory for each buffer. For me it is more bug prone and makes code less understandable.

For me it is not an issue but if it is important to you we will try to meet your requirements. Please elaborate why this flag is important for you.

No feedback, closing.
Fell free to reopen the issue if necessary.

Please do not swipe that under the carpet.

I've provided feedback #102 (comment)

Simple I don't see any reason why only ledmon shoud be only exception about not pasing compile with
-Werror=format-truncation. I have now cleaned +4.2k packages. All are correctly build with -Werror=format-truncation.

Sure, that is a good point- it is a common standard now.
To fix that we need to:

  • add verification to our CI.
  • resolve existing issues.

It is not critical, so I will create appropriative internal task, hopefully we can resolve that until next release.
Reopening then.

Thank you 👍