Build fails with the following errors: tur.c: In function ‘tur_thread’: tur.c:49:21: warning: implicit declaration of function ‘major’ [-Wimplicit-function-declaration] #define TUR_DEVT(c) major((c)->devt), minor((c)->devt) ^ ../../libmultipath/debug.h:13:34: note: in expansion of macro ‘TUR_DEVT’ dlog(logsink, prio, fmt "\n", ##args) ^ tur.c:207:2: note: in expansion of macro ‘condlog’ condlog(3, "%d:%d: tur checker starting up", TUR_DEVT(ct)); ^ tur.c:49:39: warning: implicit declaration of function ‘minor’ [-Wimplicit-function-declaration] #define TUR_DEVT(c) major((c)->devt), minor((c)->devt) ^ ../../libmultipath/debug.h:13:34: note: in expansion of macro ‘TUR_DEVT’ dlog(logsink, prio, fmt "\n", ##args) ^ tur.c:207:2: note: in expansion of macro ‘condlog’ condlog(3, "%d:%d: tur checker starting up", TUR_DEVT(ct)); ^ x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -shared -o libchecktur.so libsg.o tur.o x86_64-pc-linux-gnu-gcc -O2 -pipe -msse -msse2 -msse3 -mmmx -mpopcnt -mcx16 -mfxsr -msahf -Wall -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"lib64\" -I.. -c -o directio.o directio.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -shared -o libcheckdirectio.so libsg.o directio.o -laio x86_64-pc-linux-gnu-gcc -O2 -pipe -msse -msse2 -msse3 -mmmx -mpopcnt -mcx16 -mfxsr -msahf -Wall -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"lib64\" -I.. -c -o emc_clariion.o emc_clariion.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -shared -o libcheckemc_clariion.so libsg.o emc_clariion.o x86_64-pc-linux-gnu-gcc -O2 -pipe -msse -msse2 -msse3 -mmmx -mpopcnt -mcx16 -mfxsr -msahf -Wall -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"lib64\" -I.. -c -o hp_sw.o hp_sw.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -shared -o libcheckhp_sw.so libsg.o hp_sw.o x86_64-pc-linux-gnu-gcc -O2 -pipe -msse -msse2 -msse3 -mmmx -mpopcnt -mcx16 -mfxsr -msahf -Wall -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"lib64\" -I.. -c -o rdac.o rdac.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -shared -o libcheckrdac.so libsg.o rdac.o rm tur.o hp_sw.o rdac.o readsector0.o cciss_tur.o emc_clariion.o make[1]: Leaving directory '/tmp/portage/sys-fs/multipath-tools-0.5.0-r1/work/multipath-tools-0.5.0/libmultipath/checkers' make[1]: Entering directory '/tmp/portage/sys-fs/multipath-tools-0.5.0-r1/work/multipath-tools-0.5.0/libmpathpersist' x86_64-pc-linux-gnu-gcc -Wall -fPIC -c -O2 -pipe -msse -msse2 -msse3 -mmmx -mpopcnt -mcx16 -mfxsr -msahf -Wall -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"lib64\" -I../libmultipath -I../libmpathpersist *.c x86_64-pc-linux-gnu-gcc -shared -lpthread -ldevmapper -ldl -L../libmultipath -lmultipath -Wl,-soname=libmpathpersist.so.0 -O2 -pipe -msse -msse2 -msse3 -mmmx -mpopcnt -mcx16 -mfxsr -msahf -Wall -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"lib64\" -I../libmultipath -I../libmpathpersist -o libmpathpersist.so.0 mpath_persist.o mpath_updatepr.o mpath_pr_ioctl.o ln -s libmpathpersist.so.0 libmpathpersist.so make[1]: Leaving directory '/tmp/portage/sys-fs/multipath-tools-0.5.0-r1/work/multipath-tools-0.5.0/libmpathpersist' make[1]: Entering directory '/tmp/portage/sys-fs/multipath-tools-0.5.0-r1/work/multipath-tools-0.5.0/multipath' x86_64-pc-linux-gnu-gcc -O2 -pipe -msse -msse2 -msse3 -mmmx -mpopcnt -mcx16 -mfxsr -msahf -Wall -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"lib64\" -I../libmultipath -c -o main.o main.c x86_64-pc-linux-gnu-gcc -O2 -pipe -msse -msse2 -msse3 -mmmx -mpopcnt -mcx16 -mfxsr -msahf -Wall -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"lib64\" -I../libmultipath -Wl,-O1 -Wl,--as-needed main.o -lpthread -ldevmapper -ldl -L../libmultipath -lmultipath -ludev -o multipath ../libmultipath/libmultipath.so: undefined reference to `minor' ../libmultipath/libmultipath.so: undefined reference to `major' ../libmultipath/libmultipath.so: undefined reference to `makedev' Reproducible: Always Potentially relevant package versions installed: sys-fs/lvm2-2.02.145-r2 glibc-2.25-r5 >=sys-fs/multipath-tools-0.6.4-r1 build correctly
*** This bug has been marked as a duplicate of bug 604228 ***