opensvc / multipath-tools

Other
60 stars 48 forks source link

0.8.7: test suite linking is failing when LTO is used #18

Open kloczek opened 3 years ago

kloczek commented 3 years ago

Looks like public ABI is not defined corewcly and LTO removes some symbols.

+ cd multipath-tools-0.8.7
+ 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'
+ 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
+ /usr/bin/make -O -j12 V=1 VERBOSE=1 test
/usr/bin/make -C libmpathcmd
/usr/bin/make -C kpartx
make[1]: Nothing to be done for 'all'.
/usr/bin/make -C libmultipath
/usr/bin/make -C libdmmp
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/kpartx'
Checking for dm_task_set_cookie in /usr/include/libdevmapper.h ... yes
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/kpartx'
make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'all'.
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath'
Checking for dm_task_no_flush in /usr/include/libdevmapper.h ... yes
Checking for dm_task_get_errno in /usr/include/libdevmapper.h ... yes
Checking for dm_task_set_cookie in /usr/include/libdevmapper.h ... yes
Checking for udev_monitor_set_receive_buffer_size in /usr/include/libudev.h ... yes
Checking for dm_task_deferred_remove in /usr/include/libdevmapper.h ... yes
Checking for dm_hold_control_dev in /usr/include/libdevmapper.h ... yes
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath'
make[1]: Nothing to be done for 'all'.
/usr/bin/make -C libmultipath/prioritizers
/usr/bin/make -C libmultipath/checkers
/usr/bin/make -C libmultipath/foreign
/usr/bin/make -C libmpathpersist
/usr/bin/make -C libmpathvalid
/usr/bin/make -C multipath
make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'all'.
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath/prioritizers'
Checking if /usr/include/linux/nvme_ioctl.h exists ... yes
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath/prioritizers'
make[1]: Nothing to be done for 'all'.
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmpathpersist'
gzip -9 -c mpath_persistent_reserve_in.3 > mpath_persistent_reserve_in.3.gz
gzip -9 -c mpath_persistent_reserve_out.3 > mpath_persistent_reserve_out.3.gz
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmpathpersist'
/usr/bin/make -C multipathd
/usr/bin/make -C mpathpersist
make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'all'.
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/multipathd'
Checking for dm_task_get_errno in /usr/include/libdevmapper.h ... yes
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/multipathd'
make[1]: Nothing to be done for 'all'.
/usr/bin/make -C tests progs
/usr/bin/make -C ../libmultipath test-lib
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter   -c -o test-log.o test-log.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter   -c -o test-lib.o test-lib.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath'
Checking for dm_task_no_flush in /usr/include/libdevmapper.h ... yes
Checking for dm_task_get_errno in /usr/include/libdevmapper.h ... yes
Checking for dm_task_set_cookie in /usr/include/libdevmapper.h ... yes
Checking for udev_monitor_set_receive_buffer_size in /usr/include/libudev.h ... yes
Checking for dm_task_deferred_remove in /usr/include/libdevmapper.h ... yes
Checking for dm_hold_control_dev in /usr/include/libdevmapper.h ... yes
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
mkdir -p lib
ln ../libmultipath/*/*.so lib
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath'
/usr/bin/gcc -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,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -shared -Wl,-soname=`basename ../tests/libmultipath.so.0` \
        -o ../tests/libmultipath.so.0 memory.o parser.o vector.o devmapper.o callout.o hwtable.o blacklist.o util.o dmparser.o config.o structs.o discovery.o propsel.o dict.o pgpolicies.o debug.o defaults.o uevent.o time-util.o switchgroup.o uxsock.o print.o alias.o log_pthread.o log.o configure.o structs_vec.o sysfs.o prio.o checkers.o lock.o file.o wwids.o prioritizers/alua_rtpg.o prkey.o io_err_stat.o dm-generic.o generic.o foreign.o nvme-lib.o libsg.o valid.o strbuf.o -lpthread -ldl -ldevmapper -ludev -L../libmpathcmd -lmpathcmd -lurcu -laio -lsystemd
ln -sf ../tests/libmultipath.so.0 ../tests/libmultipath.so
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o uevent-test -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,-z,relro -Wl,-z,now -Wl,-z,defs uevent.o   \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka  \

make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o unaligned-test -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,-z,relro -Wl,-z,now -Wl,-z,defs unaligned.o   \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka  \

make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o parser-test -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,-z,relro -Wl,-z,now -Wl,-z,defs parser.o   \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka  \

make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o devt-test -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,-z,relro -Wl,-z,now -Wl,-z,defs devt.o   \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -ludev \

make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o mpathvalid-test -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,-z,relro -Wl,-z,now -Wl,-z,defs mpathvalid.o  ../libmpathvalid/mpath_valid.o \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -ludev -lpthread -ldl \
        -Wl,--wrap=dm_prereq -Wl,--wrap=init_config -Wl,--wrap=is_path_valid -Wl,--wrap=libmultipath_exit -Wl,--wrap=libmultipath_init
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o util-test -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,-z,relro -Wl,-z,now -Wl,-z,defs util.o   \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka  \

make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o directio-test -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,-z,relro -Wl,-z,now -Wl,-z,defs directio.o   \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka  \
        -Wl,--wrap=__fxstat -Wl,--wrap=fcntl -Wl,--wrap=io_cancel -Wl,--wrap=io_destroy -Wl,--wrap=io_getevents -Wl,--wrap=io_setup -Wl,--wrap=io_submit -Wl,--wrap=ioctl
/usr/bin/ld: /tmp/ccaeDkGC.lto.o: in function `remove_aio_group':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/checkers/directio.c:116: undefined reference to `__wrap_io_destroy'
/usr/bin/ld: /tmp/ccaeDkGC.lto.o: in function `get_events':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/checkers/directio.c:264: undefined reference to `__wrap_io_getevents'
/usr/bin/ld: /tmp/ccaeDkGC.lto.o: in function `libcheck_free':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/checkers/directio.c:238: undefined reference to `__wrap_io_cancel'
/usr/bin/ld: /tmp/ccaeDkGC.lto.o: in function `do_libcheck_init':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/checkers/directio.c:81: undefined reference to `__wrap_io_setup'
/usr/bin/ld: /tmp/ccaeDkGC.lto.o: in function `do_check_state.isra.0':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/checkers/directio.c:324: undefined reference to `__wrap_io_submit'
/usr/bin/ld: /tmp/ccaeDkGC.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/checkers/directio.c:355: undefined reference to `__wrap_io_cancel'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:115: directio-test] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: *** Waiting for unfinished jobs....
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o blacklist-test -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,-z,relro -Wl,-z,now -Wl,-z,defs blacklist.o test-log.o ../libmultipath/blacklist.o \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -ludev \
        -Wl,--wrap=udev_device_get_properties_list_entry -Wl,--wrap=udev_device_get_sysname -Wl,--wrap=udev_list_entry_get_name -Wl,--wrap=udev_list_entry_get_next  -Wl,--wrap=dlog
/usr/bin/ld: /tmp/ccj2Kf8o.lto.o: in function `filter_property':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/blacklist.c:386: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/blacklist.c:412: undefined reference to `__wrap_udev_device_get_properties_list_entry'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/blacklist.c:415: undefined reference to `__wrap_udev_list_entry_get_name'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/blacklist.c:412: undefined reference to `__wrap_udev_list_entry_get_next'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/blacklist.c:412: undefined reference to `__wrap_udev_device_get_properties_list_entry'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/blacklist.c:412: undefined reference to `__wrap_udev_device_get_properties_list_entry'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:115: blacklist-test] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o strbuf-test -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,-z,relro -Wl,-z,now -Wl,-z,defs strbuf.o  ../libmultipath/strbuf.o \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka  \
        -Wl,--wrap=realloc
In function 'memset',
    inlined from 'fill_strbuf' at ../libmultipath/strbuf.c:143:2,
    inlined from 'fill_strbuf' at ../libmultipath/strbuf.c:136:5,
    inlined from 'test_fill_strbuf' at strbuf.c:354:2:
/usr/include/bits/string_fortified.h:59:10: error: '__builtin_memset' specified bound 18446744073709551611 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
   59 |   return __builtin___memset_chk (__dest, __ch, __len,
      |          ^
lto1: all 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[1]: *** [Makefile:115: strbuf-test] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o pgpolicy-test -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,-z,relro -Wl,-z,now -Wl,-z,defs pgpolicy.o   \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka  \

make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o alias-test -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,-z,relro -Wl,-z,now -Wl,-z,defs alias.o test-log.o  \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -lpthread -ldl \
        -Wl,--wrap=dm_get_uuid -Wl,--wrap=dm_map_present -Wl,--wrap=fgets -Wl,--wrap=ftruncate -Wl,--wrap=lseek -Wl,--wrap=rewind -Wl,--wrap=write  -Wl,--wrap=dlog
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o valid-test -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,-z,relro -Wl,-z,now -Wl,-z,defs valid.o  ../libmultipath/valid.o ../libmultipath/discovery.o \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -ludev -lpthread -ldl \
        -Wl,--wrap=__mpath_connect -Wl,--wrap=add_foreign -Wl,--wrap=check_wwids_file -Wl,--wrap=dm_map_present_by_uuid -Wl,--wrap=filter_device -Wl,--wrap=filter_devnode -Wl,--wrap=filter_property -Wl,--wrap=is_failed_wwid -Wl,--wrap=mpath_disconnect -Wl,--wrap=pathinfo -Wl,--wrap=select_getuid -Wl,--wrap=sysfs_get_size -Wl,--wrap=sysfs_is_multipathed -Wl,--wrap=systemd_service_enabled -Wl,--wrap=udev_device_get_devnum -Wl,--wrap=udev_device_get_sysattr_value -Wl,--wrap=udev_device_new_from_subsystem_sysname
/usr/bin/ld: /tmp/ccm4dT9P.lto.o: in function `sysfs_get_devtype':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:261: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o: in function `sysfs_get_vendor':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:262: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o: in function `sysfs_get_model':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:263: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o: in function `sysfs_get_rev':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:264: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o: in function `sysfs_get_timeout':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:318: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o: in function `sysfs_get_host_pci_name':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:511: undefined reference to `__wrap_udev_device_new_from_subsystem_sysname'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o: in function `sysfs_get_iscsi_ip_address':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:552: undefined reference to `__wrap_udev_device_new_from_subsystem_sysname'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:555: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o: in function `sysfs_set_scsi_tmo':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:609: undefined reference to `__wrap_udev_device_new_from_subsystem_sysname'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:815: undefined reference to `__wrap_udev_device_new_from_subsystem_sysname'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:760: undefined reference to `__wrap_udev_device_new_from_subsystem_sysname'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:649: undefined reference to `__wrap_udev_device_new_from_subsystem_sysname'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o: in function `pathinfo.part.0':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:2228: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1648: undefined reference to `__wrap_udev_device_get_devnum'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:358: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1493: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1496: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1500: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1502: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1504: more undefined references to `__wrap_udev_device_get_sysattr_value' follow
/usr/bin/ld: /tmp/ccm4dT9P.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:437: undefined reference to `__wrap_udev_device_new_from_subsystem_sysname'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:442: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:404: undefined reference to `__wrap_udev_device_new_from_subsystem_sysname'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:412: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o: in function `is_path_valid':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/valid.c:69: undefined reference to `__wrap___mpath_connect'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/valid.c:79: undefined reference to `__wrap_udev_device_new_from_subsystem_sysname'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/valid.c:76: undefined reference to `__wrap_mpath_disconnect'
/usr/bin/ld: /tmp/ccm4dT9P.lto.o: in function `path_discovery':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:131: undefined reference to `__wrap_udev_device_get_devnum'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:115: valid-test] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o dmevents-test -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,-z,relro -Wl,-z,now -Wl,-z,defs dmevents.o  ../libmultipath/devmapper.o \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -lpthread -ldevmapper -lurcu \
        -Wl,--wrap=close -Wl,--wrap=dm_geteventnr -Wl,--wrap=dm_is_mpath -Wl,--wrap=dm_task_destroy -Wl,--wrap=dm_task_get_names -Wl,--wrap=dm_task_no_open_count -Wl,--wrap=dm_task_run -Wl,--wrap=ioctl -Wl,--wrap=libmp_dm_task_create -Wl,--wrap=open -Wl,--wrap=poll -Wl,--wrap=remove_map_by_alias -Wl,--wrap=update_multipath
/usr/bin/ld: /tmp/ccpwD9iq.lto.o: in function `do_foreach_partmaps':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/devmapper.c:1457: undefined reference to `__wrap_dm_task_get_names'
/usr/bin/ld: /tmp/ccpwD9iq.lto.o: in function `dm_get_events':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../multipathd/dmevents.c:164: undefined reference to `__wrap_dm_task_get_names'
/usr/bin/ld: /tmp/ccpwD9iq.lto.o: in function `dmevent_loop':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../multipathd/dmevents.c:364: undefined reference to `__wrap_update_multipath'
/usr/bin/ld: /tmp/ccpwD9iq.lto.o: in function `dm_flush_maps':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/devmapper.c:1161: undefined reference to `__wrap_dm_task_get_names'
/usr/bin/ld: /tmp/ccpwD9iq.lto.o: in function `dm_get_maps':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/devmapper.c:1327: undefined reference to `__wrap_dm_task_get_names'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:115: dmevents-test] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o vpd-test -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,-z,relro -Wl,-z,now -Wl,-z,defs vpd.o  ../libmultipath/discovery.o \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -ludev -lpthread -ldl \
        -Wl,--wrap=ioctl
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o hwtable-test -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,-z,relro -Wl,-z,now -Wl,-z,defs hwtable.o test-lib.o ../libmultipath/discovery.o ../libmultipath/blacklist.o ../libmultipath/structs.o ../libmultipath/propsel.o \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -ludev -lpthread -ldl \
         -Wl,--wrap=checker_check -Wl,--wrap=execute_program -Wl,--wrap=libmp_get_version -Wl,--wrap=open -Wl,--wrap=prio_getprio -Wl,--wrap=sysfs_attr_get_value -Wl,--wrap=sysfs_get_size -Wl,--wrap=udev_device_get_devnode -Wl,--wrap=udev_device_get_devnum -Wl,--wrap=udev_device_get_parent -Wl,--wrap=udev_device_get_parent_with_subsystem_devtype -Wl,--wrap=udev_device_get_properties_list_entry -Wl,--wrap=udev_device_get_property_value -Wl,--wrap=udev_device_get_subsystem -Wl,--wrap=udev_device_get_sysattr_value -Wl,--wrap=udev_device_get_sysname -Wl,--wrap=udev_device_ref -Wl,--wrap=udev_device_unref -Wl,--wrap=udev_list_entry_get_name -Wl,--wrap=udev_list_entry_get_next
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `cleanup_udev_device_ptr':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:168: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `sysfs_get_binary':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:278: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `sysfs_get_devtype':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:261: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:261: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `ccw_sysfs_pathinfo':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1526: undefined reference to `__wrap_udev_device_get_subsystem'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1559: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1529: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `sysfs_get_vendor':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:262: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:262: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `sysfs_get_model':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:263: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:263: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `sysfs_get_rev':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:264: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:264: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `sysfs_get_inquiry':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:278: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `sysfs_get_timeout':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:317: undefined reference to `__wrap_udev_device_get_subsystem'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:318: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:321: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `sysfs_get_host_pci_name':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:516: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:525: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:520: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:541: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:530: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:538: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `sysfs_get_iscsi_ip_address':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:555: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:559: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:562: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `sysfs_get_asymmetric_access_state':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:575: undefined reference to `__wrap_udev_device_get_subsystem'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:578: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `sysfs_set_scsi_tmo':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:630: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:801: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:803: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:804: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:833: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `sysfs_set_scsi_tmo':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:786: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:628: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:833: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:833: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `path_offline':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1684: undefined reference to `__wrap_udev_device_get_subsystem'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1687: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `filter_property':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/blacklist.c:386: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/blacklist.c:412: undefined reference to `__wrap_udev_device_get_properties_list_entry'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/blacklist.c:415: undefined reference to `__wrap_udev_list_entry_get_name'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/blacklist.c:412: undefined reference to `__wrap_udev_list_entry_get_next'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/blacklist.c:412: undefined reference to `__wrap_udev_device_get_properties_list_entry'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/blacklist.c:412: undefined reference to `__wrap_udev_device_get_properties_list_entry'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `free_path':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/structs.c:147: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `free_pathvec':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/structs.c:147: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `select_hwhandler':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/propsel.c:418: undefined reference to `__wrap_udev_device_get_parent_with_subsystem_devtype'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `get_uid':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:2009: undefined reference to `__wrap_udev_device_get_property_value'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:2035: undefined reference to `__wrap_udev_device_get_subsystem'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:2038: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `get_uid':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:2055: undefined reference to `__wrap_udev_device_get_parent_with_subsystem_devtype'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `pathinfo.part.0':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:2228: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1648: undefined reference to `__wrap_udev_device_get_devnum'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1424: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1412: undefined reference to `__wrap_udev_device_get_subsystem'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1414: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `pathinfo.part.0':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:353: undefined reference to `__wrap_udev_device_get_parent_with_subsystem_devtype'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:358: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:360: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:364: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:373: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:385: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:387: undefined reference to `__wrap_udev_device_get_subsystem'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:394: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:396: undefined reference to `__wrap_udev_device_get_parent_with_subsystem_devtype'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:400: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:401: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:429: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:432: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:458: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:461: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `pathinfo.part.0':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:2314: undefined reference to `__wrap_udev_device_get_devnode'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1479: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1488: undefined reference to `__wrap_udev_device_get_parent_with_subsystem_devtype'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1493: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1496: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1500: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1502: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1504: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `pathinfo.part.0':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1596: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1586: undefined reference to `__wrap_udev_device_get_subsystem'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1588: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `pathinfo.part.0':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1812: undefined reference to `__wrap_udev_device_get_parent'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1800: undefined reference to `__wrap_udev_device_get_subsystem'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:1802: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:390: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:442: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:447: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:412: undefined reference to `__wrap_udev_device_get_sysattr_value'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:451: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o:/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:421: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `store_pathinfo':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:94: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:107: undefined reference to `__wrap_udev_device_ref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `alloc_path_with_pathinfo':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:56: undefined reference to `__wrap_udev_device_get_sysname'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:72: undefined reference to `__wrap_udev_device_ref'
/usr/bin/ld: /tmp/cc2JBrmV.lto.o: in function `path_discovery':
/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:221: undefined reference to `__wrap_udev_device_unref'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:199: undefined reference to `__wrap_udev_list_entry_get_next'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:207: undefined reference to `__wrap_udev_list_entry_get_name'
/usr/bin/ld: /home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests/../libmultipath/discovery.c:131: undefined reference to `__wrap_udev_device_get_devnum'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:115: hwtable-test] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
rm vpd.o.wrap devt.o.wrap strbuf.o.wrap test-log.o.wrap alias.o.wrap test-lib.o.wrap parser.o.wrap dmevents.o.wrap directio.o.wrap hwtable.o.wrap unaligned.o.wrap mpathvalid.o.wrap uevent.o.wrap valid.o.wrap pgpolicy.o.wrap blacklist.o.wrap util.o.wrap
make: *** [Makefile:55: test-progs] Error 2
kloczek commented 3 years ago

When LTO is not used test suite compiles and links corrsctly but it fails

+ cd multipath-tools-0.8.7
+ 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 -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'
+ 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 -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 -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'
+ 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
+ /usr/bin/make -O -j12 V=1 VERBOSE=1 test
/usr/bin/make -C libmpathcmd
/usr/bin/make -C kpartx
make[1]: Nothing to be done for 'all'.
/usr/bin/make -C libmultipath
/usr/bin/make -C libdmmp
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/kpartx'
Checking for dm_task_set_cookie in /usr/include/libdevmapper.h ... yes
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/kpartx'
make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'all'.
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath'
Checking for dm_task_no_flush in /usr/include/libdevmapper.h ... yes
Checking for dm_task_get_errno in /usr/include/libdevmapper.h ... yes
Checking for dm_task_set_cookie in /usr/include/libdevmapper.h ... yes
Checking for udev_monitor_set_receive_buffer_size in /usr/include/libudev.h ... yes
Checking for dm_task_deferred_remove in /usr/include/libdevmapper.h ... yes
Checking for dm_hold_control_dev in /usr/include/libdevmapper.h ... yes
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath'
make[1]: Nothing to be done for 'all'.
/usr/bin/make -C libmultipath/prioritizers
/usr/bin/make -C libmultipath/checkers
/usr/bin/make -C libmultipath/foreign
/usr/bin/make -C libmpathpersist
/usr/bin/make -C libmpathvalid
/usr/bin/make -C multipath
make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'all'.
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath/prioritizers'
Checking if /usr/include/linux/nvme_ioctl.h exists ... yes
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath/prioritizers'
make[1]: Nothing to be done for 'all'.
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmpathpersist'
gzip -9 -c mpath_persistent_reserve_in.3 > mpath_persistent_reserve_in.3.gz
gzip -9 -c mpath_persistent_reserve_out.3 > mpath_persistent_reserve_out.3.gz
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmpathpersist'
/usr/bin/make -C multipathd
/usr/bin/make -C mpathpersist
make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'all'.
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/multipathd'
Checking for dm_task_get_errno in /usr/include/libdevmapper.h ... yes
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/multipathd'
make[1]: Nothing to be done for 'all'.
/usr/bin/make -C tests progs
/usr/bin/make -C ../libmultipath test-lib
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter   -c -o test-log.o test-log.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter   -c -o test-lib.o test-lib.c
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath'
Checking for dm_task_no_flush in /usr/include/libdevmapper.h ... yes
Checking for dm_task_get_errno in /usr/include/libdevmapper.h ... yes
Checking for dm_task_set_cookie in /usr/include/libdevmapper.h ... yes
Checking for udev_monitor_set_receive_buffer_size in /usr/include/libudev.h ... yes
Checking for dm_task_deferred_remove in /usr/include/libdevmapper.h ... yes
Checking for dm_hold_control_dev in /usr/include/libdevmapper.h ... yes
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath'
/usr/bin/gcc -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -shared -Wl,-soname=`basename ../tests/libmultipath.so.0` \
        -o ../tests/libmultipath.so.0 memory.o parser.o vector.o devmapper.o callout.o hwtable.o blacklist.o util.o dmparser.o config.o structs.o discovery.o propsel.o dict.o pgpolicies.o debug.o defaults.o uevent.o time-util.o switchgroup.o uxsock.o print.o alias.o log_pthread.o log.o configure.o structs_vec.o sysfs.o prio.o checkers.o lock.o file.o wwids.o prioritizers/alua_rtpg.o prkey.o io_err_stat.o dm-generic.o generic.o foreign.o nvme-lib.o libsg.o valid.o strbuf.o -lpthread -ldl -ldevmapper -ludev -L../libmpathcmd -lmpathcmd -lurcu -laio -lsystemd
ln -sf ../tests/libmultipath.so.0 ../tests/libmultipath.so
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/libmultipath'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
mkdir -p lib
ln ../libmultipath/*/*.so lib
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o uevent-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs uevent.o   \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka  \

make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o parser-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs parser.o   \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka  \

make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o blacklist-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs blacklist.o test-log.o ../libmultipath/blacklist.o \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -ludev \
        -Wl,--wrap=udev_device_get_properties_list_entry -Wl,--wrap=udev_device_get_sysname -Wl,--wrap=udev_list_entry_get_name -Wl,--wrap=udev_list_entry_get_next  -Wl,--wrap=dlog
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o devt-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs devt.o   \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -ludev \

make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o valid-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs valid.o  ../libmultipath/valid.o ../libmultipath/discovery.o \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -ludev -lpthread -ldl \
        -Wl,--wrap=__mpath_connect -Wl,--wrap=add_foreign -Wl,--wrap=check_wwids_file -Wl,--wrap=dm_map_present_by_uuid -Wl,--wrap=filter_device -Wl,--wrap=filter_devnode -Wl,--wrap=filter_property -Wl,--wrap=is_failed_wwid -Wl,--wrap=mpath_disconnect -Wl,--wrap=pathinfo -Wl,--wrap=select_getuid -Wl,--wrap=sysfs_get_size -Wl,--wrap=sysfs_is_multipathed -Wl,--wrap=systemd_service_enabled -Wl,--wrap=udev_device_get_devnum -Wl,--wrap=udev_device_get_sysattr_value -Wl,--wrap=udev_device_new_from_subsystem_sysname
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o unaligned-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs unaligned.o   \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka  \

make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o mpathvalid-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs mpathvalid.o  ../libmpathvalid/mpath_valid.o \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -ludev -lpthread -ldl \
        -Wl,--wrap=dm_prereq -Wl,--wrap=init_config -Wl,--wrap=is_path_valid -Wl,--wrap=libmultipath_exit -Wl,--wrap=libmultipath_init
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o util-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs util.o   \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka  \

make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o strbuf-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs strbuf.o  ../libmultipath/strbuf.o \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka  \
        -Wl,--wrap=realloc
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o dmevents-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs dmevents.o  ../libmultipath/devmapper.o \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -lpthread -ldevmapper -lurcu \
        -Wl,--wrap=close -Wl,--wrap=dm_geteventnr -Wl,--wrap=dm_is_mpath -Wl,--wrap=dm_task_destroy -Wl,--wrap=dm_task_get_names -Wl,--wrap=dm_task_no_open_count -Wl,--wrap=dm_task_run -Wl,--wrap=ioctl -Wl,--wrap=libmp_dm_task_create -Wl,--wrap=open -Wl,--wrap=poll -Wl,--wrap=remove_map_by_alias -Wl,--wrap=update_multipath
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o directio-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs directio.o   \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka  \
        -Wl,--wrap=__fxstat -Wl,--wrap=fcntl -Wl,--wrap=io_cancel -Wl,--wrap=io_destroy -Wl,--wrap=io_getevents -Wl,--wrap=io_setup -Wl,--wrap=io_submit -Wl,--wrap=ioctl
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o pgpolicy-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs pgpolicy.o   \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka  \

make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o vpd-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs vpd.o  ../libmultipath/discovery.o \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -ludev -lpthread -ldl \
        -Wl,--wrap=ioctl
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o alias-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs alias.o test-log.o  \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -lpthread -ldl \
        -Wl,--wrap=dm_get_uuid -Wl,--wrap=dm_map_present -Wl,--wrap=fgets -Wl,--wrap=ftruncate -Wl,--wrap=lseek -Wl,--wrap=rewind -Wl,--wrap=write  -Wl,--wrap=dlog
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
/usr/bin/gcc --std=gnu99 -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 -Os -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 --param=ssp-buffer-size=4 -Werror -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -Wstrict-prototypes -pipe -DBIN_DIR=\"/usr/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIE -DPIE -I../libmultipath -I../libmpathcmd -Wno-unused-parameter  -o hwtable-test -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,-z,defs hwtable.o test-lib.o ../libmultipath/discovery.o ../libmultipath/blacklist.o ../libmultipath/structs.o ../libmultipath/propsel.o \
        -L. -L../libmpathcmd -lmultipath -lmpathcmd -lcmocka -ludev -lpthread -ldl \
         -Wl,--wrap=checker_check -Wl,--wrap=execute_program -Wl,--wrap=libmp_get_version -Wl,--wrap=open -Wl,--wrap=prio_getprio -Wl,--wrap=sysfs_attr_get_value -Wl,--wrap=sysfs_get_size -Wl,--wrap=udev_device_get_devnode -Wl,--wrap=udev_device_get_devnum -Wl,--wrap=udev_device_get_parent -Wl,--wrap=udev_device_get_parent_with_subsystem_devtype -Wl,--wrap=udev_device_get_properties_list_entry -Wl,--wrap=udev_device_get_property_value -Wl,--wrap=udev_device_get_subsystem -Wl,--wrap=udev_device_get_sysattr_value -Wl,--wrap=udev_device_get_sysname -Wl,--wrap=udev_device_ref -Wl,--wrap=udev_device_unref -Wl,--wrap=udev_list_entry_get_name -Wl,--wrap=udev_list_entry_get_next
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
rm vpd.o.wrap devt.o.wrap strbuf.o.wrap test-log.o.wrap alias.o.wrap test-lib.o.wrap parser.o.wrap dmevents.o.wrap directio.o.wrap hwtable.o.wrap unaligned.o.wrap mpathvalid.o.wrap uevent.o.wrap valid.o.wrap pgpolicy.o.wrap blacklist.o.wrap util.o.wrap
/usr/bin/make -C tests all
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running uevent-test ==
657376.516018 | uevent_get_env_positive_int: invalid MAJOR: 'max'
657376.516072 | uevent_get_env_positive_int: invalid MAJOR: '0x10'
657376.516114 | uevent_get_env_positive_int: invalid MAJOR: '-17'
[  PASSED  ] 25 test(s).
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running parser-test ==
657376.516719 | ignoring extra data starting with 'more' on line 0 of test.conf
657376.516857 | ignoring extra data starting with '' on line 0 of test.conf
657376.516880 | ignoring extra data starting with 'comment' on line 0 of test.conf
[  PASSED  ] 20 test(s).
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running util-test ==
[  PASSED  ] 14 test(s).
657376.517410 | set_bit_in_bitfield: bitfield overflow: 2 >= 1
657376.517432 | set_bit_in_bitfield: bitfield overflow: 1 >= 1
657376.517457 | set_bit_in_bitfield: bitfield overflow: 3 >= 2
657376.517463 | set_bit_in_bitfield: bitfield overflow: 2 >= 2
657376.517484 | set_bit_in_bitfield: bitfield overflow: 4 >= 3
657376.517490 | set_bit_in_bitfield: bitfield overflow: 3 >= 3
657376.517511 | set_bit_in_bitfield: bitfield overflow: 24 >= 23
657376.517517 | set_bit_in_bitfield: bitfield overflow: 23 >= 23
657376.517544 | set_bit_in_bitfield: bitfield overflow: 64 >= 63
657376.517551 | set_bit_in_bitfield: bitfield overflow: 63 >= 63
657376.517573 | set_bit_in_bitfield: bitfield overflow: 64 >= 63
657376.517578 | set_bit_in_bitfield: bitfield overflow: 63 >= 63
657376.517593 | set_bit_in_bitfield: bitfield overflow: 66 >= 65
657376.517597 | set_bit_in_bitfield: bitfield overflow: 65 >= 65
657376.517613 | set_bit_in_bitfield: bitfield overflow: 67 >= 66
657376.517617 | set_bit_in_bitfield: bitfield overflow: 66 >= 66
657376.517634 | set_bit_in_bitfield: bitfield overflow: 68 >= 67
657376.517638 | set_bit_in_bitfield: bitfield overflow: 67 >= 67
657376.517653 | set_bit_in_bitfield: bitfield overflow: 104 >= 103
657376.517661 | set_bit_in_bitfield: bitfield overflow: 103 >= 103
657376.517685 | set_bit_in_bitfield: bitfield overflow: 127 >= 126
657376.517691 | set_bit_in_bitfield: bitfield overflow: 126 >= 126
657376.517714 | set_bit_in_bitfield: bitfield overflow: 128 >= 127
657376.517720 | set_bit_in_bitfield: bitfield overflow: 127 >= 127
657376.517735 | set_bit_in_bitfield: bitfield overflow: 129 >= 128
657376.517739 | set_bit_in_bitfield: bitfield overflow: 128 >= 128
[  PASSED  ] 16 test(s).
[  PASSED  ] 9 test(s).
[  PASSED  ] 12 test(s).
[  PASSED  ] 6 test(s).
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running dmevents-test ==
/dev/mapper/control: open failed: Permission denied
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.02.179 (2021-08-11) and kernel driver (unknown version).
657376.518284 | cannot get kernel dm version
[  PASSED  ] 0 test(s).
[  SKIPPED ] 23 test(s), listed below:
[  SKIPPED ] test_init_waiter_bad0
[  SKIPPED ] test_init_waiter_bad1
[  SKIPPED ] test_init_waiter_good0
[  SKIPPED ] test_watch_dmevents_bad0
[  SKIPPED ] test_watch_dmevents_bad1
[  SKIPPED ] test_watch_dmevents_bad2
[  SKIPPED ] test_watch_dmevents_good0
[  SKIPPED ] test_watch_dmevents_good1
[  SKIPPED ] test_watch_dmevents_good2
[  SKIPPED ] test_get_events_bad0
[  SKIPPED ] test_get_events_bad1
[  SKIPPED ] test_get_events_bad2
[  SKIPPED ] test_get_events_good0
[  SKIPPED ] test_get_events_good1
[  SKIPPED ] test_arm_poll
[  SKIPPED ] test_dmevent_loop_bad0
[  SKIPPED ] test_dmevent_loop_bad1
[  SKIPPED ] test_dmevent_loop_bad2
[  SKIPPED ] test_dmevent_loop_good0
[  SKIPPED ] test_dmevent_loop_good1
[  SKIPPED ] test_dmevent_loop_good2
[  SKIPPED ] test_dmevent_loop_good3
[  SKIPPED ] test_cleanup_waiter

 23 SKIPPED TEST(S)
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running blacklist-test ==
[  PASSED  ] 30 test(s).
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running unaligned-test ==
[  PASSED  ] 14 test(s).
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running vpd-test ==
657376.521923 | test_vpd80_20_20_30: exp/ret: 20/20, wwid: A123456789AbcDefB123
657376.521983 | test_vpd80_20_20_21: exp/ret: 20/20, wwid: A123456789AbcDefB123
657376.522010 | vpd pg80 overflow, 21/20 bytes required
657376.522020 | test_vpd80_20_20_20: exp/ret: 19/19, wwid: A123456789AbcDefB12
657376.522044 | vpd pg80 overflow, 21/10 bytes required
657376.522050 | test_vpd80_20_20_10: exp/ret: 9/9, wwid: A12345678
657376.522074 | test_vpd80_24_24_30: exp/ret: 20/20, wwid: A123456789AbcDefB123
657376.522098 | test_vpd80_24_24_25: exp/ret: 20/20, wwid: A123456789AbcDefB123
657376.522122 | test_vpd80_24_24_24: exp/ret: 20/20, wwid: A123456789AbcDefB123
657376.522147 | test_vpd80_24_24_21: exp/ret: 20/20, wwid: A123456789AbcDefB123
657376.522171 | vpd pg80 overflow, 21/20 bytes required
657376.522177 | test_vpd80_24_24_20: exp/ret: 19/19, wwid: A123456789AbcDefB12
657376.522201 | test_vpd80_20_16_30: exp/ret: 16/16, wwid: A123456789AbcDef
657376.522236 | test_vpd80_20_16_17: exp/ret: 16/16, wwid: A123456789AbcDef
657376.522273 | vpd pg80 overflow, 17/16 bytes required
657376.522282 | test_vpd80_20_16_16: exp/ret: 15/15, wwid: A123456789AbcDe
657376.522307 | test_vpd80_24_20_21: exp/ret: 20/20, wwid: A123456789AbcDefB123
657376.522331 | vpd pg80 overflow, 21/20 bytes required
657376.522337 | test_vpd80_24_20_20: exp/ret: 19/19, wwid: A123456789AbcDefB12
657376.522360 | test_vpd80_30_24_30: exp/ret: 20/20, wwid: A123456789AbcDefB123
657376.522390 | test_vpd80_30_24_21: exp/ret: 20/20, wwid: A123456789AbcDefB123
657376.522416 | vpd pg80 overflow, 21/20 bytes required
657376.522422 | test_vpd80_30_24_20: exp/ret: 19/19, wwid: A123456789AbcDefB12
657376.522465 | test_vpd_vnd_40_40: exp/ret: 38/38, wwid: 1Linux_A123456789AbcDe_B_3456789AbcDef
657376.522497 | parse_vpd_pg83: WWID overflow, type 1, 39/30 bytes required
657376.522503 | test_vpd_vnd_40_30: exp/ret: 29/29, wwid: 1Linux_A123456789AbcDe_B_3456
657376.522538 | parse_vpd_pg83: WWID overflow, type 1, 22/20 bytes required
657376.522546 | test_vpd_vnd_30_20: exp/ret: 19/19, wwid: 1Linux_A123456789Ab
657376.522575 | test_vpd_vnd_29_30: exp/ret: 27/27, wwid: 1Linux_A123456789AbcDe_B_34
657376.522606 | test_vpd_vnd_28_30: exp/ret: 26/26, wwid: 1Linux_A123456789AbcDe_B_3
657376.522634 | test_vpd_vnd_27_30: exp/ret: 24/24, wwid: 1Linux_A123456789AbcDe_B
657376.522662 | test_vpd_vnd_26_30: exp/ret: 24/24, wwid: 1Linux_A123456789AbcDe_B
657376.522689 | test_vpd_vnd_25_30: exp/ret: 24/24, wwid: 1Linux_A123456789AbcDe_B
657376.522718 | test_vpd_vnd_24_30: exp/ret: 22/22, wwid: 1Linux_A123456789AbcDe
657376.522748 | test_vpd_vnd_23_30: exp/ret: 22/22, wwid: 1Linux_A123456789AbcDe
657376.522776 | parse_vpd_pg83: WWID overflow, type 1, 22/20 bytes required
657376.522782 | test_vpd_vnd_24_20: exp/ret: 19/19, wwid: 1Linux_A123456789Ab
657376.522809 | parse_vpd_pg83: WWID overflow, type 1, 23/20 bytes required
657376.522816 | test_vpd_vnd_23_20: exp/ret: 19/19, wwid: 1Linux_A123456789Ab
657376.522844 | parse_vpd_pg83: WWID overflow, type 1, 22/20 bytes required
657376.522851 | test_vpd_vnd_22_20: exp/ret: 19/19, wwid: 1Linux_A123456789Ab
657376.522880 | parse_vpd_pg83: WWID overflow, type 1, 21/20 bytes required
657376.522886 | test_vpd_vnd_21_20: exp/ret: 19/19, wwid: 1Linux_A123456789Ab
657376.522914 | test_vpd_vnd_20_20: exp/ret: 19/19, wwid: 1Linux_A123456789Ab
657376.522946 | test_vpd_vnd_19_20: exp/ret: 18/18, wwid: 1Linux_A123456789A
657376.522975 | parse_vpd_pg83: WWID overflow, type 1, 20/10 bytes required
657376.522981 | test_vpd_vnd_20_10: exp/ret: 9/9, wwid: 1Linux_A1
657376.523009 | test_vpd_vnd_10_10: exp/ret: 9/9, wwid: 1Linux_A1
657376.523039 | test_vpd_eui_8_32_1: exp/ret: 17/17, wwid: 2a123456789abcdef
657376.523068 | test_vpd_eui_12_32_1: exp/ret: 25/25, wwid: 2a123456789abcdefb1234567
657376.523097 | test_vpd_eui_16_40_1: exp/ret: 33/33, wwid: 2a123456789abcdefb123456789abcdef
657376.523124 | test_vpd_eui_8_32_0: exp/ret: 17/17, wwid: 2a123456789abcdef
657376.523151 | test_vpd_eui_8_18_0: exp/ret: 17/17, wwid: 2a123456789abcdef
657376.523179 | parse_vpd_pg83: WWID overflow, type 2, 18/17 bytes required
657376.523194 | test_vpd_eui_8_17_0: exp/ret: 15/15, wwid: 2a123456789abcd
657376.523222 | parse_vpd_pg83: WWID overflow, type 2, 18/16 bytes required
657376.523229 | test_vpd_eui_8_16_0: exp/ret: 15/15, wwid: 2a123456789abcd
657376.523254 | parse_vpd_pg83: WWID overflow, type 2, 18/10 bytes required
657376.523260 | test_vpd_eui_8_10_0: exp/ret: 9/9, wwid: 2a1234567
657376.523288 | test_vpd_eui_12_32_0: exp/ret: 25/25, wwid: 2a123456789abcdefb1234567
657376.523318 | test_vpd_eui_12_26_0: exp/ret: 25/25, wwid: 2a123456789abcdefb1234567
657376.523345 | parse_vpd_pg83: WWID overflow, type 2, 26/25 bytes required
657376.523353 | test_vpd_eui_12_25_0: exp/ret: 23/23, wwid: 2a123456789abcdefb12345
657376.523378 | parse_vpd_pg83: WWID overflow, type 2, 26/20 bytes required
657376.523386 | test_vpd_eui_12_20_0: exp/ret: 19/19, wwid: 2a123456789abcdefb1
657376.523410 | parse_vpd_pg83: WWID overflow, type 2, 26/10 bytes required
657376.523414 | test_vpd_eui_12_10_0: exp/ret: 9/9, wwid: 2a1234567
657376.523432 | test_vpd_eui_16_40_0: exp/ret: 33/33, wwid: 2a123456789abcdefb123456789abcdef
657376.523450 | test_vpd_eui_16_34_0: exp/ret: 33/33, wwid: 2a123456789abcdefb123456789abcdef
657376.523466 | parse_vpd_pg83: WWID overflow, type 2, 34/33 bytes required
657376.523471 | test_vpd_eui_16_33_0: exp/ret: 31/31, wwid: 2a123456789abcdefb123456789abcd
657376.523487 | parse_vpd_pg83: WWID overflow, type 2, 34/20 bytes required
657376.523491 | test_vpd_eui_16_20_0: exp/ret: 19/19, wwid: 2a123456789abcdefb1
657376.523509 | test_vpd_naa_6_40: exp/ret: 33/33, wwid: 36a123456789abcdefb123456789abcde
657376.523527 | test_vpd_naa_6_34: exp/ret: 33/33, wwid: 36a123456789abcdefb123456789abcde
657376.523555 | parse_vpd_pg83: WWID overflow, type 3, 34/33 bytes required
657376.523560 | test_vpd_naa_6_33: exp/ret: 31/31, wwid: 36a123456789abcdefb123456789abc
657376.523577 | parse_vpd_pg83: WWID overflow, type 3, 34/32 bytes required
657376.523581 | test_vpd_naa_6_32: exp/ret: 31/31, wwid: 36a123456789abcdefb123456789abc
657376.523597 | parse_vpd_pg83: WWID overflow, type 3, 34/20 bytes required
657376.523602 | test_vpd_naa_6_20: exp/ret: 19/19, wwid: 36a123456789abcdefb
657376.523618 | test_vpd_naa_5_20: exp/ret: 17/17, wwid: 35a123456789abcde
657376.523635 | test_vpd_naa_5_18: exp/ret: 17/17, wwid: 35a123456789abcde
657376.523651 | parse_vpd_pg83: WWID overflow, type 3, 18/17 bytes required
657376.523655 | test_vpd_naa_5_17: exp/ret: 15/15, wwid: 35a123456789abc
657376.523671 | parse_vpd_pg83: WWID overflow, type 3, 18/16 bytes required
657376.523675 | test_vpd_naa_5_16: exp/ret: 15/15, wwid: 35a123456789abc
657376.523691 | test_vpd_naa_3_20: exp/ret: 17/17, wwid: 33a123456789abcde
657376.523720 | test_vpd_naa_3_18: exp/ret: 17/17, wwid: 33a123456789abcde
657376.523738 | parse_vpd_pg83: WWID overflow, type 3, 18/17 bytes required
657376.523742 | test_vpd_naa_3_17: exp/ret: 15/15, wwid: 33a123456789abc
657376.523758 | parse_vpd_pg83: WWID overflow, type 3, 18/16 bytes required
657376.523762 | test_vpd_naa_3_16: exp/ret: 15/15, wwid: 33a123456789abc
657376.523779 | test_vpd_naa_2_20: exp/ret: 17/17, wwid: 32a123456789abcde
657376.523795 | test_vpd_naa_2_18: exp/ret: 17/17, wwid: 32a123456789abcde
657376.523811 | parse_vpd_pg83: WWID overflow, type 3, 18/17 bytes required
657376.523815 | test_vpd_naa_2_17: exp/ret: 15/15, wwid: 32a123456789abc
657376.523831 | parse_vpd_pg83: WWID overflow, type 3, 18/16 bytes required
657376.523835 | test_vpd_naa_2_16: exp/ret: 15/15, wwid: 32a123456789abc
657376.523851 | test_vpd_str_0_20_18: exp/ret: 16/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x32 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.523872 | test_vpd_str_0_20_17: exp/ret: 16/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x32 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.523891 | test_vpd_str_0_20_16: exp/ret: 15/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x32 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.523910 | test_vpd_str_0_20_15: exp/ret: 14/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x32 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.523931 | test_vpd_str_16_20_18: exp/ret: 15/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x32 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.523950 | test_vpd_str_16_20_17: exp/ret: 15/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x32 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.523968 | test_vpd_str_16_20_16: exp/ret: 15/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x32 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.523987 | test_vpd_str_16_20_15: exp/ret: 14/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x32 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.524005 | test_vpd_str_1_20_18: exp/ret: 16/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x10 != 0xffffffffffffffc3
[   LINE   ] --- vpd.c:352: error: Failure!
657376.524024 | test_vpd_str_1_20_17: exp/ret: 16/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x10 != 0xffffffffffffffc3
[   LINE   ] --- vpd.c:352: error: Failure!
657376.524042 | test_vpd_str_1_20_16: exp/ret: 15/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0xf != 0xffffffffffffffc3
[   LINE   ] --- vpd.c:352: error: Failure!
657376.524061 | test_vpd_str_1_20_15: exp/ret: 14/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0xe != 0xffffffffffffffc3
[   LINE   ] --- vpd.c:352: error: Failure!
657376.524079 | test_vpd_str_17_20_18: exp/ret: 15/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0xf != 0xffffffffffffffc3
[   LINE   ] --- vpd.c:352: error: Failure!
657376.524098 | test_vpd_str_17_20_17: exp/ret: 15/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0xf != 0xffffffffffffffc3
[   LINE   ] --- vpd.c:352: error: Failure!
657376.524116 | test_vpd_str_17_20_16: exp/ret: 15/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0xf != 0xffffffffffffffc3
[   LINE   ] --- vpd.c:352: error: Failure!
657376.524135 | test_vpd_str_17_20_15: exp/ret: 14/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0xe != 0xffffffffffffffc3
[   LINE   ] --- vpd.c:352: error: Failure!
657376.524153 | test_vpd_str_2_20_18: exp/ret: 16/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x38 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.524172 | test_vpd_str_2_20_17: exp/ret: 16/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x38 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.524191 | test_vpd_str_2_20_16: exp/ret: 15/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x38 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.524221 | test_vpd_str_2_20_15: exp/ret: 14/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x38 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.524253 | test_vpd_str_18_20_18: exp/ret: 15/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x38 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.524284 | test_vpd_str_18_20_17: exp/ret: 15/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x38 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.524314 | test_vpd_str_18_20_16: exp/ret: 15/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x38 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
657376.524343 | test_vpd_str_18_20_15: exp/ret: 14/-61, wwid: 32a123456789abc
[  ERROR   ] --- 0x38 != 0x33
[   LINE   ] --- vpd.c:344: error: Failure!
[  PASSED  ] 69 test(s).
[  FAILED  ] 24 test(s), listed below:
[  FAILED  ] test_vpd_str_0_20_18
[  FAILED  ] test_vpd_str_0_20_17
[  FAILED  ] test_vpd_str_0_20_16
[  FAILED  ] test_vpd_str_0_20_15
[  FAILED  ] test_vpd_str_16_20_18
[  FAILED  ] test_vpd_str_16_20_17
[  FAILED  ] test_vpd_str_16_20_16
[  FAILED  ] test_vpd_str_16_20_15
[  FAILED  ] test_vpd_str_1_20_18
[  FAILED  ] test_vpd_str_1_20_17
[  FAILED  ] test_vpd_str_1_20_16
[  FAILED  ] test_vpd_str_1_20_15
[  FAILED  ] test_vpd_str_17_20_18
[  FAILED  ] test_vpd_str_17_20_17
[  FAILED  ] test_vpd_str_17_20_16
[  FAILED  ] test_vpd_str_17_20_15
[  FAILED  ] test_vpd_str_2_20_18
[  FAILED  ] test_vpd_str_2_20_17
[  FAILED  ] test_vpd_str_2_20_16
[  FAILED  ] test_vpd_str_2_20_15
[  FAILED  ] test_vpd_str_18_20_18
[  FAILED  ] test_vpd_str_18_20_17
[  FAILED  ] test_vpd_str_18_20_16
[  FAILED  ] test_vpd_str_18_20_15

 24 FAILED TEST(S)
make[1]: *** [Makefile:76: vpd.out] Error 24
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: *** Waiting for unfinished jobs....
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running pgpolicy-test ==
[  PASSED  ] 55 test(s).
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running valid-test ==
[  PASSED  ] 10 test(s).
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running alias-test ==
[  PASSED  ] 12 test(s).
[  PASSED  ] 14 test(s).
[  PASSED  ] 32 test(s).
[  PASSED  ] 6 test(s).
[  PASSED  ] 6 test(s).
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running devt-test ==
657376.528955 | "": invalid major/minor numbers, not found in sysfs
657376.529030 | "foo": invalid major/minor numbers, not found in sysfs
657376.529085 | "1234": invalid major/minor numbers, not found in sysfs
657376.529139 | "0:0": invalid major/minor numbers, not found in sysfs
657376.531118 | devt2devname test passed for 4 block devices
[  PASSED  ] 10 test(s).
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running strbuf-test ==
[  PASSED  ] 10 test(s).
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running mpathvalid-test ==
No configuration dir '/etc/multipath/conf.d'
polling interval: 5, max: 20
[  PASSED  ] 21 test(s).
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running directio-test ==
[  PASSED  ] 15 test(s).
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
== running hwtable-test ==
device config in /tmp/hwtable-lV9nPw/test-00.conf missing vendor or product parameter
device config in test-00.conf missing vendor or product parameter
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
factorize_hwtable: duplicate device section for foo:bar:(null) in /tmp/hwtable-lV9nPw/test-00.conf
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
factorize_hwtable: duplicate device section for foo:bar:(null) in test-01.conf
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
factorize_hwtable: duplicate device section for foo:bar:(null) in test-01.conf
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
factorize_hwtable: duplicate device section for foo:bar:(null) in test-01.conf
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
factorize_hwtable: duplicate device section for .oo:bar:(null) in /tmp/hwtable-lV9nPw/test-00.conf
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
sdxTEST: using deprecated getuid callout
merge_mptable: duplicate multipath config section for TEST-WWID
merge_mptable: duplicate multipath config section for TEST-WWID
[  PASSED  ] 33 test(s).
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/multipath-tools-0.8.7/tests'
make: *** [Makefile:58: test] Error 2
benmarz commented 3 years ago

You are not running these tests on upstream code. The issue with the LTO compiled version is that it doesn't appear to work correctly with cmocka's function wrapping (--wrap). The test failures in the non-LTO version is due to a RHEL specific patch that exists because of a difference in the udev files rhel/fedora installs to set ID_SERIAL. This needs a test change to deal with. I will fix the test bug in the rhel/fedora repositories.

kloczek commented 3 years ago

OK that is fine. Can you point on hash of the commit which needs to be rolled back to fix that?

benmarz commented 3 years ago

Nothing needs to be rolled back. The redhat commit that caused this testing issue (RH: make parse_vpd_pg83 match scsi_id output) is necessary for redhat systems. The tests simply need to be changed to deal with the commit. commit f7833b2c027d014e79bfd2069f3c32f4b26ddfda in https://github.com/bmarzins/rh-multipath-tools.git now has a fix for the tests.

mwilck commented 3 years ago

You are not running these tests on upstream code. The issue with the LTO compiled version is that it doesn't appear to work correctly with cmocka's function wrapping (--wrap).

True. If anyone has further insights upon this, I'd be grateful. At SUSE, we've disabled LTO for multipath-tools for the time being.