Cook: fdutils 5.5 ================================================================================ QA: checking package receipt... QA: unable to reach "http://www.fdutils.linux.lu/" Checking build dependencies... Extracting source archive "fdutils-5.5.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 configure: loading site script /etc/slitaz/cook.site 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 ANSI C... none needed checking how to run the C preprocessor... i486-slitaz-linux-gcc -E checking for egrep... grep -E checking whether i486-slitaz-linux-gcc needs -traditional... no checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for install-info... no checking build system type... i486-slitaz-linux-gnu checking host system type... i486-slitaz-linux-gnu checking target system type... i486-slitaz-linux-gnu checking for an ANSI C-conforming const... yes checking for inline... inline checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking linux/ext_fs.h usability... no checking linux/ext_fs.h presence... no checking for linux/ext_fs.h... no checking linux/xia_fs.h usability... no checking linux/xia_fs.h presence... no checking for linux/xia_fs.h... no checking sys/sysmacros.h usability... yes checking sys/sysmacros.h presence... yes checking for sys/sysmacros.h... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating doc/Makefile config.status: creating config.h make -C src all make[1]: Entering directory '/home/slitaz/wok/fdutils/source/fdutils-5.5/src' i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o floppycontrol.o floppycontrol.c lex -Pmediaprm mediaprm.lex lex -Pdriveprm driveprm.lex i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o mediaprm.o mediaprm.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o driveprm.o driveprm.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o parse.o parse.c mediaprm.c: In function 'parse_mediaprm': mediaprm.c:305:12: warning: operation on 'r' may be undefined [-Wsequence-point] return ((r=parse_direct(argc, argv, drvprm, medprm) && ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (r=parse_indirect(argc, argv, drvprm, medprm)))); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ driveprm.c: In function 'getdrivenum': driveprm.c:143:6: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] major(buf->st_rdev) != FLOPPY_MAJOR) { ^~~~~ driveprm.c:148:8: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] num = minor( buf->st_rdev ); ^~~~~ mknod i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o oldfdprm.o oldfdprm.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o enh_options.o enh_options.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o measure.o measure.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o printfdprm.o printfdprm.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o calc-format.o calc-format.c printfdprm.c: In function 'print_params': printfdprm.c:10:45: warning: variable 'need_tpi' set but not used [-Wunused-but-set-variable] int ssize, r, perp_ref, need_dtr, need_fm, need_tpi; ^~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o misc.o misc.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o skews.o skews.c enh_options.c: In function 'parse_option': enh_options.c:195:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ enh_options.c:197:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' return 0; ^~~~~~ enh_options.c: In function 'print_help': enh_options.c:382:21: warning: variable 'htlength' set but not used [-Wunused-but-set-variable] int i, wordlength, htlength, col; ^~~~~~~~ calc-format.c: In function 'calc_placement': calc-format.c:324:21: warning: variable 'max_offset' set but not used [-Wunused-but-set-variable] int cur_sector, i, max_offset; ^~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o getfdprm.o getfdprm.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o fdrawcmd.o fdrawcmd.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o superformat.o superformat.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -Wl,-Os,--as-needed xdfcopy.c -o xdfcopy fdrawcmd.c: In function 'main': fdrawcmd.c:382:6: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(1, buffer, size ); ^~~~~~~~~~~~~~~~~~~~~~~ superformat.c: In function 'send_cmd': superformat.c:122:6: warning: variable 'retries' set but not used [-Wunused-but-set-variable] int retries; ^~~~~~~ superformat.c: In function 'main': superformat.c:746:6: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] if(minor(drivedesc.buf.st_rdev) & 0x7c) { ^~~~~ mknod xdfcopy.c: In function 'readwrite_cylinder': xdfcopy.c:445:27: warning: variable 'tv3' set but not used [-Wunused-but-set-variable] static struct timeval tv3, tv4; ^~~ xdfcopy.c: In function 'get_type': xdfcopy.c:524:35: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] if (!S_ISBLK(statbuf.st_mode) || major(statbuf.st_rdev) != FLOPPY_MAJOR) ^~~~~ xdfcopy.c:527:10: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] drive = minor( statbuf.st_rdev ); ^~~~~ mknod xdfcopy.c: In function 'main': xdfcopy.c:763:6: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(cmdbuffer); ^~~~~~~~~~~~~~~~~ xdfcopy.c:766:6: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(cmdbuffer); ^~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -Wl,-Os,--as-needed fdmount.c -o fdmount i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o diskseekd.o diskseekd.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o diskd.o diskd.c diskseekd.c: In function 'main': diskseekd.c:123:7: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] if (major(buf.st_rdev) != FLOPPY_MAJOR) { ^~~~~ diskseekd.c:128:11: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] drive = minor( buf.st_rdev ); ^~~~~ mknod i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o floppymeter.o floppymeter.c In file included from fdmount.c:47: msdos_fs.h:9:2: warning: 'packed' attribute ignored for field of type 'char[3]' [-Wattributes] char jump[3] p; /* 0 - Boot strap short or near jump */ ^~~~ msdos_fs.h:10:2: warning: 'packed' attribute ignored for field of type 'char[8]' [-Wattributes] char banner[8] p; /* 3 - Name - can be used to special case ^~~~ msdos_fs.h:13:2: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes] unsigned char cluster_size p; /* 13 - sectors/cluster */ ^~~~~~~~ msdos_fs.h:15:2: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes] unsigned char fats p; /* 16 - number of FATs */ ^~~~~~~~ msdos_fs.h:18:2: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes] unsigned char media p; /* 21 - media code (unused) */ ^~~~~~~~ msdos_fs.h:24:2: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes] unsigned char physdrive p; /* 36 physical drive ? */ ^~~~~~~~ msdos_fs.h:25:2: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes] unsigned char _reserved p; /* 37 reserved */ ^~~~~~~~ msdos_fs.h:26:2: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes] unsigned char dos4 p; /* 38 DOS > 4.0 diskette */ ^~~~~~~~ msdos_fs.h:28:2: warning: 'packed' attribute ignored for field of type 'unsigned char[11]' [-Wattributes] unsigned char label[11] p; /* 43 disk label */ ^~~~~~~~ msdos_fs.h:29:2: warning: 'packed' attribute ignored for field of type 'unsigned char[8]' [-Wattributes] unsigned char fat_type[8] p; /* 54 FAT type */ ^~~~~~~~ msdos_fs.h:31:2: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes] unsigned char res_2m p; /* 62 reserved by 2M */ ^~~~~~~~ msdos_fs.h:32:2: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes] unsigned char CheckSum p; /* 63 2M checksum (not used) */ ^~~~~~~~ msdos_fs.h:33:2: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes] unsigned char fmt_2mf p; /* 64 2MF format version */ ^~~~~~~~ msdos_fs.h:34:2: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes] unsigned char wt p; /* 65 1 if write track after format */ ^~~~~~~~ msdos_fs.h:35:2: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes] unsigned char rate_0 p; /* 66 data transfer rate on track 0 */ ^~~~~~~~ msdos_fs.h:36:2: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes] unsigned char rate_any p; /* 67 data transfer rate on track<>0 */ ^~~~~~~~ msdos_fs.h:41:2: warning: 'packed' attribute ignored for field of type 'unsigned char[50]' [-Wattributes] unsigned char junk[126 - 76] p; /* 76 remaining data */ ^~~~~~~~ fdmount.c: In function 'id_fstype': fdmount.c:497:20: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] strncmp(dos->fat_type,"FAT",3)==0) /* check FAT id string */ ^ In file included from fdmount.c:6: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^~~~~~~ fdmount.c: In function 'do_mount': fdmount.c:703:22: warning: pointer targets in passing argument 1 of 'id_fstype' differ in signedness [-Wpointer-sign] fstype=id_fstype(super,&fmt); ^~~~~ fdmount.c:431:5: note: expected 'byte *' {aka 'unsigned char *'} but argument is of type 'char *' int id_fstype(byte *super, fmt_descr *fmt) { ^~~~~~~~~ fdmount.c: In function 'canonicalize': fdmount.c:218:6: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd (canonical, PATH_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fdmount.c: In function 'do_mount': fdmount.c:682:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fd,super,sizeof(super)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fdmount.c: In function 'main': fdmount.c:1258:6: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir ("/"); /* no current directory. */ ^~~~~~~~~~~ diskd.c: In function 'main': diskd.c:108:3: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(command); ^~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o convert.o convert.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -I. -I. -D_GLIBCXX_USE_C99_MATH=1 -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -c -o lex.mediaprm.o lex.mediaprm.c /usr/bin/ld: /tmp/ccxAiF7f.o: in function `get_type': xdfcopy.c:(.text+0xc0): undefined reference to `major' /usr/bin/ld: xdfcopy.c:(.text+0xd5): undefined reference to `minor' collect2: error: ld returned 1 exit status make[1]: *** [: xdfcopy] Error 1 make[1]: *** Waiting for unfinished jobs.... floppymeter.c: In function 'main': floppymeter.c:167:31: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] if (!S_ISBLK(buf.st_mode) || major(buf.st_rdev) != FLOPPY_MAJOR) { ^~~~~ floppymeter.c:171:7: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] dn = minor( buf.st_rdev ); ^~~~~ mknod lex.mediaprm.c:1554:16: warning: 'input' defined but not used [-Wunused-function] #else ^ lex.mediaprm.c:1511:17: warning: 'yyunput' defined but not used [-Wunused-function] ^ superformat.c:1119:36: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] snprintf(twom_buffer, 5, "-2 %2d", fd0.dsect); ^ In file included from /usr/include/stdio.h:873, from superformat.c:40: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 6 and 15 bytes into a destination of size 5 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/ld: /tmp/cc1VIJzq.o: in function `lock_read_mtab': fdmount.c:(.text+0x4df): undefined reference to `lock_mtab' /usr/bin/ld: /tmp/cc1VIJzq.o: in function `save_unlock_mtab': fdmount.c:(.text+0x50a): undefined reference to `unlock_mtab' collect2: error: ld returned 1 exit status make[1]: *** [: fdmount] Error 1 rm enh_options.o measure.o calc-format.o oldfdprm.o parse.o driveprm.o misc.o lex.mediaprm.o printfdprm.o skews.o lex.mediaprm.c mediaprm.o lex.driveprm.c make[1]: Leaving directory '/home/slitaz/wok/fdutils/source/fdutils-5.5/src' make: *** [Makefile:8: compile] Error 2 Debug information ret1. ================================================================================ Cook date: 2019-12-06 14:27 Wasted time : 5s 243:xdfcopy.c:(.text+0xc0): undefined reference to `major' 244:/usr/bin/ld: xdfcopy.c:(.text+0xd5): undefined reference to `minor' 245:collect2: error: ld returned 1 exit status 273:fdmount.c:(.text+0x4df): undefined reference to `lock_mtab' 275:fdmount.c:(.text+0x50a): undefined reference to `unlock_mtab' 276:collect2: error: ld returned 1 exit status ================================================================================ Post-check ================================================================================ Checking build... Failed Updating activity log... Done ================================================================================