Skip to content

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

@kloczek

Description

@kloczek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions