Cook: cramfs 1.1 ================================================================================ QA: checking package receipt... Checking build dependencies... Installing (pkg/local): zlib-dev-1.2.11-any Extracting source archive "cramfs-1.1.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 gcc -W -Wall -O2 -g -I. -Wl,-Os,--as-needed mkcramfs.c -lz -o mkcramfs gcc -W -Wall -O2 -g -I. -Wl,-Os,--as-needed cramfsck.c -lz -o cramfsck mkcramfs.c: In function 'parse_directory': mkcramfs.c:245:40: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] dircount = scandir(name, &dirlist, 0, cramsort); ^~~~~~~~ In file included from mkcramfs.c:31: /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 **)) ~~~~~~~~~~~~~~~~~~~~~~~ mkcramfs.c:287:15: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] entry->name = strdup(dirent->d_name); ^ mkcramfs.c: In function 'write_superblock': mkcramfs.c:399:16: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] strncpy(super->name, opt_name, sizeof(super->name)); ~~~~~^~~~~~ In file included from /usr/include/features.h:428, from /usr/include/sys/types.h:25, from mkcramfs.c:25: /usr/include/bits/string_fortified.h:103:1: note: expected 'char * restrict' but argument is of type 'u8 *' {aka 'unsigned char *'} __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^~~~~ mkcramfs.c:401:16: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] strncpy(super->name, "Compressed", sizeof(super->name)); ~~~~~^~~~~~ In file included from /usr/include/features.h:428, from /usr/include/sys/types.h:25, from mkcramfs.c:25: /usr/include/bits/string_fortified.h:103:1: note: expected 'char * restrict' but argument is of type 'u8 *' {aka 'unsigned char *'} __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^~~~~ mkcramfs.c: In function 'print_node': mkcramfs.c:445:33: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] snprintf(info, 10, "%4d,%4d", major(e->size), minor(e->size)); ^~~~~ mkcramfs.c:445:49: warning: implicit declaration of function 'minor'; did you mean 'mincore'? [-Wimplicit-function-declaration] snprintf(info, 10, "%4d,%4d", major(e->size), minor(e->size)); ^~~~~ mincore mkcramfs.c: In function 'write_directory_structure': mkcramfs.c:480:29: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] size_t len = strlen(entry->name); ~~~~~^~~~~~ In file included from mkcramfs.c:34: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^~~~~~ mkcramfs.c: In function 'do_compress': mkcramfs.c:598:25: warning: pointer targets in passing argument 1 of 'compress2' differ in signedness [-Wpointer-sign] err = compress2(base + curr, &len, uncompressed, input, Z_BEST_COMPRESSION); ~~~~~^~~~~~ In file included from mkcramfs.c:37: /usr/include/zlib.h:1242:21: note: expected 'Bytef *' {aka 'unsigned char *'} but argument is of type 'char *' ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen, ^~~~~~~~~ mkcramfs.c:598:39: warning: pointer targets in passing argument 3 of 'compress2' differ in signedness [-Wpointer-sign] err = compress2(base + curr, &len, uncompressed, input, Z_BEST_COMPRESSION); ^~~~~~~~~~~~ In file included from mkcramfs.c:37: /usr/include/zlib.h:1242:21: note: expected 'const Bytef *' {aka 'const unsigned char *'} but argument is of type 'char *' ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen, ^~~~~~~~~ mkcramfs.c: In function 'write_data': mkcramfs.c:647:45: warning: pointer targets in passing argument 3 of 'do_compress' differ in signedness [-Wpointer-sign] offset = do_compress(base, offset, entry->name, entry->uncompressed, entry->size); ~~~~~^~~~~~ mkcramfs.c:578:21: note: expected 'const char *' but argument is of type 'unsigned char *' static unsigned int do_compress(char *base, unsigned int offset, char const *name, char *uncompressed, unsigned int size) ^~~~~~~~~~~ mkcramfs.c: In function 'main': mkcramfs.c:825:29: warning: pointer targets in passing argument 2 of 'crc32' differ in signedness [-Wpointer-sign] crc = crc32(crc, (rom_image+opt_pad), (offset-opt_pad)); ~~~~~~~~~~^~~~~~~~~ In file included from mkcramfs.c:37: /usr/include/zlib.h:1725:23: note: expected 'const Bytef *' {aka 'const unsigned char *'} but argument is of type 'char *' ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len)); ^~~~~ mkcramfs.c:705:4: warning: this statement may fall through [-Wimplicit-fallthrough=] usage(MKFS_OK); ^~~~~~~~~~~~~~ mkcramfs.c:706:3: note: here case 'E': ^~~~ cramfsck.c: In function 'main': cramfsck.c:671:4: warning: this statement may fall through [-Wimplicit-fallthrough=] usage(FSCK_OK); ^~~~~~~~~~~~~~ cramfsck.c:672:3: note: here case 'x': ^~~~ cramfsck.c: In function 'test_crc': cramfsck.c:224:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fd, buf, super.size); ^~~~~~~~~~~~~~~~~~~~~~~~~ cramfsck.c: In function 'romfs_read': cramfsck.c:294:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fd, read_buffer, ROMBUFFERSIZE * 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cramfsck.c: In function 'do_symlink': cramfsck.c:553:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&str, "%s -> %s", path, outbuffer); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/ld: /tmp/ccrfOCBP.o: in function `print_node': /home/slitaz/wok/cramfs/source/cramfs-1.1/mkcramfs.c:445: undefined reference to `minor' /usr/bin/ld: /home/slitaz/wok/cramfs/source/cramfs-1.1/mkcramfs.c:445: undefined reference to `major' collect2: error: ld returned 1 exit status make: *** [: mkcramfs] Error 1 Build dependencies to remove: 1 Removing: zlib-dev Debug information ret1. ================================================================================ Cook date: 2020-09-12 04:56 Wasted time : 4s 121:/home/slitaz/wok/cramfs/source/cramfs-1.1/mkcramfs.c:445: undefined reference to `minor' 122:/usr/bin/ld: /home/slitaz/wok/cramfs/source/cramfs-1.1/mkcramfs.c:445: undefined reference to `major' 123:collect2: error: ld returned 1 exit status ================================================================================ Post-check ================================================================================ Checking build... Failed Updating activity log... Done ================================================================================