Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633500 - =sys-fs/multipath-tools-0.5.0-r1 undefined reference to minor, major, makedev
Summary: =sys-fs/multipath-tools-0.5.0-r1 undefined reference to minor, major, makedev
Status: RESOLVED DUPLICATE of bug 604228
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-04 19:57 UTC by Daniel M. Weeks
Modified: 2017-10-28 15:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel M. Weeks 2017-10-04 19:57:42 UTC
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
Comment 1 Mike Gilbert gentoo-dev 2017-10-28 15:09:00 UTC

*** This bug has been marked as a duplicate of bug 604228 ***