Cook: lsscsi 0.21 ================================================================================ QA: checking package receipt... Extracting source archive "lsscsi-0.21.tgz" 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 configure: loading site script /etc/slitaz/cook.site checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for i486-slitaz-linux-gcc... i486-slitaz-linux-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i486-slitaz-linux-gcc accepts -g... yes checking for i486-slitaz-linux-gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of i486-slitaz-linux-gcc... gcc3 checking for a BSD-compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands make all-recursive make[1]: Entering directory '/home/slitaz/wok/lsscsi/source/lsscsi-0.21' make[2]: Entering directory '/home/slitaz/wok/lsscsi/source/lsscsi-0.21' i486-slitaz-linux-gcc -DHAVE_CONFIG_H -I. -D_GLIBCXX_USE_C99_MATH=1 -Wall -W -march=i486 -Os -pipe -mindirect-branch=thunk -MT lsscsi.o -MD -MP -MF .deps/lsscsi.Tpo -c -o lsscsi.o lsscsi.c lsscsi.c: In function 'collect_dev_nodes': lsscsi.c:647:32: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] cur_ent->maj = major(stats.st_rdev); ^~~~~ lsscsi.c:648:32: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] cur_ent->min = minor(stats.st_rdev); ^~~~~ mknod lsscsi.c: In function 'list_sdevices': lsscsi.c:1798:23: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] sdev_scandir_sort); ^~~~~~~~~~~~~~~~~ In file included from lsscsi.c:24: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' int (*__cmp) (const struct dirent **, ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ const struct dirent **)) ~~~~~~~~~~~~~~~~~~~~~~~ lsscsi.c: In function 'list_hosts': lsscsi.c:2005:23: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] host_scandir_sort); ^~~~~~~~~~~~~~~~~ In file included from lsscsi.c:24: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' int (*__cmp) (const struct dirent **, ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ const struct dirent **)) ~~~~~~~~~~~~~~~~~~~~~~~ lsscsi.c: In function 'iscsi_target_scandir_select.part.9': lsscsi.c:444:30: warning: '/target' directive output may be truncated writing 7 bytes into a region of size between 4 and 259 [-Wformat-truncation=] "/%s/target%d:%d:%d", s->d_name, iscsi_target_hct->h, ^~~~~~~ In file included from /usr/include/stdio.h:873, from lsscsi.c:16: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 14 and 299 bytes into a destination of size 260 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lsscsi.c: In function 'list_sdevices': lsscsi.c:1604:43: warning: ']' directive output may be truncated writing 1 byte into a region of size between 0 and 259 [-Wformat-truncation=] snprintf(value, NAME_LEN_MAX, "[%s]", devname); ^ In file included from /usr/include/stdio.h:873, from lsscsi.c:16: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 3 and 262 bytes into a destination of size 260 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lsscsi.c:1148:41: warning: '%s' directive output may be truncated writing up to 259 bytes into a region of size 256 [-Wformat-truncation=] snprintf(b, b_len, "sbp:%s", wd); ^~ ~~ In file included from /usr/include/stdio.h:873, from lsscsi.c:16: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 5 and 264 bytes into a destination of size 260 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lsscsi.c:1171:39: warning: ',t,0x' directive output may be truncated writing 5 bytes into a region of size between 1 and 260 [-Wformat-truncation=] snprintf(b, b_len, "%s,t,0x%x", nm, n); ^~~~~ lsscsi.c:1171:36: note: using the range [0, 4294967295] for directive argument snprintf(b, b_len, "%s,t,0x%x", nm, n); ^~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from lsscsi.c:16: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 7 and 273 bytes into a destination of size 260 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lsscsi.c:272:64: warning: '%s' directive output may be truncated writing up to 259 bytes into a region of size 251 [-Wformat-truncation=] snprintf(name, NAME_LEN_MAX, "scandir: %s", dir_name); ^~ lsscsi.c:1646:34: if (1 == scan_for_first(wd, opts)) ~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from lsscsi.c:16: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 10 and 269 bytes into a destination of size 260 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lsscsi.c:338:64: warning: '%s' directive output may be truncated writing up to 259 bytes into a region of size 251 [-Wformat-truncation=] snprintf(name, NAME_LEN_MAX, "scandir: %s", dir_name); ^~ lsscsi.c:1638:18: if (1 == non_sg_scan(buff, opts)) { ~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from lsscsi.c:16: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 10 and 269 bytes into a destination of size 260 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lsscsi.c:1801:64: warning: '%s' directive output may be truncated writing up to 259 bytes into a region of size 251 [-Wformat-truncation=] snprintf(name, NAME_LEN_MAX, "scandir: %s", buff); ^~ ~~~~ In file included from /usr/include/stdio.h:873, from lsscsi.c:16: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 10 and 269 bytes into a destination of size 260 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lsscsi.c: In function 'list_hosts': lsscsi.c:2007:56: warning: '%s' directive output may be truncated writing up to 259 bytes into a region of size 251 [-Wformat-truncation=] snprintf(name, NAME_LEN_MAX, "scandir: %s", buff); ^~ ~~~~ In file included from /usr/include/stdio.h:873, from lsscsi.c:16: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 10 and 269 bytes into a destination of size 260 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/lsscsi.Tpo .deps/lsscsi.Po i486-slitaz-linux-gcc -Wall -W -march=i486 -Os -pipe -mindirect-branch=thunk -Wl,-Os,--as-needed -o lsscsi lsscsi.o /usr/bin/ld: lsscsi.o: in function `collect_dev_nodes': lsscsi.c:(.text+0x526): undefined reference to `major' /usr/bin/ld: lsscsi.c:(.text+0x555): undefined reference to `minor' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:260: lsscsi] Error 1 make[2]: Leaving directory '/home/slitaz/wok/lsscsi/source/lsscsi-0.21' make[1]: *** [Makefile:336: all-recursive] Error 1 make[1]: Leaving directory '/home/slitaz/wok/lsscsi/source/lsscsi-0.21' make: *** [Makefile:181: all] Error 2 Debug information ret1. ================================================================================ Cook date: 2020-09-12 22:10 Wasted time : 6s 165:lsscsi.c:(.text+0x526): undefined reference to `major' 166:/usr/bin/ld: lsscsi.c:(.text+0x555): undefined reference to `minor' 167:collect2: error: ld returned 1 exit status ================================================================================ Post-check ================================================================================ Checking build... Failed Updating activity log... Done ================================================================================