Cook: hdparm 9.37 ================================================================================ QA: checking package receipt... Extracting source archive "hdparm-9.37.tar.gz" Executing: compile_rules CFLAGS : -march=i486 -Os -pipe -mindirect-branch=thunk CXXLAGS : -march=i486 -Os -pipe -mindirect-branch=thunk CPPFLAGS : -D_GLIBCXX_USE_C99_MATH=1 LDFLAGS : -Wl,-Os,--as-needed cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -march=i486 -Os -pipe -mindirect-branch=thunk -D_GLIBCXX_USE_C99_MATH=1 -c -o hdparm.o hdparm.c cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -march=i486 -Os -pipe -mindirect-branch=thunk -D_GLIBCXX_USE_C99_MATH=1 -c -o identify.o identify.c cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -march=i486 -Os -pipe -mindirect-branch=thunk -D_GLIBCXX_USE_C99_MATH=1 -c -o sgio.o sgio.c cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -march=i486 -Os -pipe -mindirect-branch=thunk -D_GLIBCXX_USE_C99_MATH=1 -c -o sysfs.o sysfs.c cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -march=i486 -Os -pipe -mindirect-branch=thunk -D_GLIBCXX_USE_C99_MATH=1 -c -o geom.o geom.c cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -march=i486 -Os -pipe -mindirect-branch=thunk -D_GLIBCXX_USE_C99_MATH=1 -c -o fallocate.o fallocate.c In file included from /usr/include/unistd.h:25, from hdparm.c:5: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ identify.c:328:19: warning: 'unknown' defined but not used [-Wunused-const-variable=] static const char unknown[8] = "obsolete"; ^~~~~~~ sysfs.c: In function 'sysfs_find_dev2': sysfs.c:105:12: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] min = ~minor(dev); ^~~~~ mknod sysfs.c:105:12: warning: nested extern declaration of 'minor' [-Wnested-externs] sysfs.c:106:30: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] else if (maj != (unsigned)major(dev)) ^~~~~ sysfs.c:106:30: warning: nested extern declaration of 'major' [-Wnested-externs] geom.c: In function 'fd_is_raid': geom.c:74:10: warning: implicit declaration of function 'major'; did you mean 'md_major'? [-Wimplicit-function-declaration] return (major(st.st_rdev) == md_major()); ^~~~~ md_major geom.c:74:10: warning: nested extern declaration of 'major' [-Wnested-externs] geom.c:74:28: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] return (major(st.st_rdev) == md_major()); ^~ geom.c: In function 'find_dev_in_directory': geom.c:208:39: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] unsigned int maj = major(dev), min = minor(dev); ^~~~~ mknod geom.c:208:39: warning: nested extern declaration of 'minor' [-Wnested-externs] cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -march=i486 -Os -pipe -mindirect-branch=thunk -D_GLIBCXX_USE_C99_MATH=1 -c -o fibmap.o fibmap.c cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -march=i486 -Os -pipe -mindirect-branch=thunk -D_GLIBCXX_USE_C99_MATH=1 -c -o fwdownload.o fwdownload.c cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -march=i486 -Os -pipe -mindirect-branch=thunk -D_GLIBCXX_USE_C99_MATH=1 -c -o dvdspeed.o dvdspeed.c cc -s -o hdparm hdparm.o identify.o sgio.o sysfs.o geom.o fallocate.o fibmap.o fwdownload.o dvdspeed.o /usr/bin/ld: sysfs.o: in function `sysfs_find_dev2.constprop.2': sysfs.c:(.text+0x16b): undefined reference to `minor' /usr/bin/ld: sysfs.c:(.text+0x182): undefined reference to `major' /usr/bin/ld: sysfs.c:(.text+0x19b): undefined reference to `minor' /usr/bin/ld: sysfs.o: in function `sysfs_find_fd': sysfs.c:(.text+0x2f8): undefined reference to `minor' /usr/bin/ld: sysfs.c:(.text+0x303): undefined reference to `major' /usr/bin/ld: geom.o: in function `fd_is_raid': geom.c:(.text+0x18b): undefined reference to `major' /usr/bin/ld: geom.o: in function `get_dev_t_geometry': geom.c:(.text+0x607): undefined reference to `major' /usr/bin/ld: geom.c:(.text+0x616): undefined reference to `minor' /usr/bin/ld: geom.c:(.text+0x6f6): undefined reference to `major' /usr/bin/ld: geom.c:(.text+0x718): undefined reference to `minor' /usr/bin/ld: geom.c:(.text+0x74e): undefined reference to `minor' /usr/bin/ld: geom.c:(.text+0x759): undefined reference to `major' collect2: error: ld returned 1 exit status make: *** [Makefile:30: hdparm] Error 1 Debug information ret1. ================================================================================ Cook date: 2020-09-12 14:55 Wasted time : 3s 57:sysfs.c:(.text+0x16b): undefined reference to `minor' 58:/usr/bin/ld: sysfs.c:(.text+0x182): undefined reference to `major' 59:/usr/bin/ld: sysfs.c:(.text+0x19b): undefined reference to `minor' 61:sysfs.c:(.text+0x2f8): undefined reference to `minor' 62:/usr/bin/ld: sysfs.c:(.text+0x303): undefined reference to `major' 64:geom.c:(.text+0x18b): undefined reference to `major' 66:geom.c:(.text+0x607): undefined reference to `major' 67:/usr/bin/ld: geom.c:(.text+0x616): undefined reference to `minor' 68:/usr/bin/ld: geom.c:(.text+0x6f6): undefined reference to `major' 69:/usr/bin/ld: geom.c:(.text+0x718): undefined reference to `minor' 70:/usr/bin/ld: geom.c:(.text+0x74e): undefined reference to `minor' 71:/usr/bin/ld: geom.c:(.text+0x759): undefined reference to `major' 72:collect2: error: ld returned 1 exit status ================================================================================ Post-check ================================================================================ Checking build... Failed Updating activity log... Done ================================================================================