>>> lha: Building community/lha 1.14i-r4 (using abuild 3.13.0-r5) started Tue, 10 Sep 2024 06:01:11 +0000 >>> lha: Checking sanity of /home/buildozer/aports/community/lha/APKBUILD... >>> lha: Analyzing dependencies... >>> lha: Installing for build: build-base bash (1/2) Installing bash (5.2.32-r0) Executing bash-5.2.32-r0.post-install (2/2) Installing .makedepends-lha (20240910.060127) Executing busybox-1.36.1-r31.trigger OK: 252 MiB in 104 packages >>> lha: Cleaning up srcdir >>> lha: Cleaning up pkgdir >>> lha: Cleaning up tmpdir >>> lha: Fetching https://distfiles.alpinelinux.org/distfiles/edge/lha-1.14i-ac20050924p1.tar.gz >>> lha: Fetching https://distfiles.alpinelinux.org/distfiles/edge/lha-1.14i-ac20050924p1.tar.gz >>> lha: Checking sha512sums... lha-1.14i-ac20050924p1.tar.gz: OK >>> lha: Unpacking /var/cache/distfiles/lha-1.14i-ac20050924p1.tar.gz... >>> lha: Updating ./config.sub checking build system type... loongarch64-alpine-linux-musl checking host system type... loongarch64-alpine-linux-musl checking target system type... loongarch64-alpine-linux-musl checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for loongarch64-alpine-linux-musl-gcc... 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 gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking whether gcc needs -traditional... no checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... (cached) yes checking for ANSI C header files... no 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 minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking for function prototypes... yes checking for string.h... (cached) yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for _LARGE_FILES value needed for large files... no checking for library containing opendir... none required checking for dirent.h that defines DIR... yes checking for library containing opendir... (cached) none required checking for ANSI C header files... (cached) no checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking fnmatch.h usability... yes checking fnmatch.h presence... yes checking for fnmatch.h... yes checking for an ANSI C-conforming const... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for long... yes checking size of long... 8 checking for uid_t... yes checking for gid_t... yes checking for long long... yes checking for uint64_t... yes checking for ssize_t... yes checking for struct tm.tm_gmtoff... yes checking for struct stat.st_ino... yes checking return type of signal handlers... void checking whether utime accepts a null argument... no checking for working POSIX fnmatch... no checking for _LARGEFILE_SOURCE value needed for large files... no checking for fseeko... yes checking for strchr... yes checking for strdup... yes checking for memcpy... yes checking for memset... yes checking for memmove... yes checking for strcasecmp... yes checking for mktime... yes checking for timelocal... no checking for tzset... yes checking for ftime... yes checking for gettimeofday... yes checking for utime... yes checking for ftruncate... yes checking for chsize... no checking for lchown... yes checking for mkstemp... yes checking for ftello... yes checking for getpwuid... yes checking for getgrgid... yes checking for getpwnam... yes checking for getgrnam... yes checking for iconv... yes checking for basename... yes checking for vsnprintf... yes checking for fnmatch... yes checking whether basename is declared... no checking whether strchr()/strrchr() is 8bit clean... no checking whether the 2nd argument of gettimeofday() is effective... no checking kanji code conversion on text file... yes checking default archive method... -lh5- checking template of the temporary file... /tmp/lhXXXXXX checking whether incremental indicator is needed... yes checking kanji code of filename... CODE_EUC checking whether user/group name extended header is needed... no checking whether backup file for old archive is left... no checking whether enable -X option which ignore dot files... no configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating man/Makefile config.status: creating olddoc/Makefile config.status: creating tests/Makefile config.status: creating tests/lha-test config.status: creating config.h config.status: executing depfiles commands make all-recursive make[1]: Entering directory '/home/buildozer/aports/community/lha/src/lha-1.14i-ac20050924p1' Making all in man make[2]: Entering directory '/home/buildozer/aports/community/lha/src/lha-1.14i-ac20050924p1/man' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/buildozer/aports/community/lha/src/lha-1.14i-ac20050924p1/man' Making all in olddoc make[2]: Entering directory '/home/buildozer/aports/community/lha/src/lha-1.14i-ac20050924p1/olddoc' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/buildozer/aports/community/lha/src/lha-1.14i-ac20050924p1/olddoc' Making all in src make[2]: Entering directory '/home/buildozer/aports/community/lha/src/lha-1.14i-ac20050924p1/src' if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT append.o -MD -MP -MF ".deps/append.Tpo" -c -o append.o append.c; \ then mv -f ".deps/append.Tpo" ".deps/append.Po"; else rm -f ".deps/append.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT bitio.o -MD -MP -MF ".deps/bitio.Tpo" -c -o bitio.o bitio.c; \ then mv -f ".deps/bitio.Tpo" ".deps/bitio.Po"; else rm -f ".deps/bitio.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT crcio.o -MD -MP -MF ".deps/crcio.Tpo" -c -o crcio.o crcio.c; \ then mv -f ".deps/crcio.Tpo" ".deps/crcio.Po"; else rm -f ".deps/crcio.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT dhuf.o -MD -MP -MF ".deps/dhuf.Tpo" -c -o dhuf.o dhuf.c; \ then mv -f ".deps/dhuf.Tpo" ".deps/dhuf.Po"; else rm -f ".deps/dhuf.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT extract.o -MD -MP -MF ".deps/extract.Tpo" -c -o extract.o extract.c; \ then mv -f ".deps/extract.Tpo" ".deps/extract.Po"; else rm -f ".deps/extract.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT header.o -MD -MP -MF ".deps/header.Tpo" -c -o header.o header.c; \ then mv -f ".deps/header.Tpo" ".deps/header.Po"; else rm -f ".deps/header.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT huf.o -MD -MP -MF ".deps/huf.Tpo" -c -o huf.o huf.c; \ then mv -f ".deps/huf.Tpo" ".deps/huf.Po"; else rm -f ".deps/huf.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT indicator.o -MD -MP -MF ".deps/indicator.Tpo" -c -o indicator.o indicator.c; \ then mv -f ".deps/indicator.Tpo" ".deps/indicator.Po"; else rm -f ".deps/indicator.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT larc.o -MD -MP -MF ".deps/larc.Tpo" -c -o larc.o larc.c; \ then mv -f ".deps/larc.Tpo" ".deps/larc.Po"; else rm -f ".deps/larc.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT lhadd.o -MD -MP -MF ".deps/lhadd.Tpo" -c -o lhadd.o lhadd.c; \ then mv -f ".deps/lhadd.Tpo" ".deps/lhadd.Po"; else rm -f ".deps/lhadd.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT lharc.o -MD -MP -MF ".deps/lharc.Tpo" -c -o lharc.o lharc.c; \ then mv -f ".deps/lharc.Tpo" ".deps/lharc.Po"; else rm -f ".deps/lharc.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT lhext.o -MD -MP -MF ".deps/lhext.Tpo" -c -o lhext.o lhext.c; \ then mv -f ".deps/lhext.Tpo" ".deps/lhext.Po"; else rm -f ".deps/lhext.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT lhlist.o -MD -MP -MF ".deps/lhlist.Tpo" -c -o lhlist.o lhlist.c; \ then mv -f ".deps/lhlist.Tpo" ".deps/lhlist.Po"; else rm -f ".deps/lhlist.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT maketbl.o -MD -MP -MF ".deps/maketbl.Tpo" -c -o maketbl.o maketbl.c; \ then mv -f ".deps/maketbl.Tpo" ".deps/maketbl.Po"; else rm -f ".deps/maketbl.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT maketree.o -MD -MP -MF ".deps/maketree.Tpo" -c -o maketree.o maketree.c; \ then mv -f ".deps/maketree.Tpo" ".deps/maketree.Po"; else rm -f ".deps/maketree.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT patmatch.o -MD -MP -MF ".deps/patmatch.Tpo" -c -o patmatch.o patmatch.c; \ then mv -f ".deps/patmatch.Tpo" ".deps/patmatch.Po"; else rm -f ".deps/patmatch.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT shuf.o -MD -MP -MF ".deps/shuf.Tpo" -c -o shuf.o shuf.c; \ then mv -f ".deps/shuf.Tpo" ".deps/shuf.Po"; else rm -f ".deps/shuf.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT slide.o -MD -MP -MF ".deps/slide.Tpo" -c -o slide.o slide.c; \ then mv -f ".deps/slide.Tpo" ".deps/slide.Po"; else rm -f ".deps/slide.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT util.o -MD -MP -MF ".deps/util.Tpo" -c -o util.o util.c; \ then mv -f ".deps/util.Tpo" ".deps/util.Po"; else rm -f ".deps/util.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -Os -fstack-clash-protection -Wformat -Werror=format-security -MT getopt_long.o -MD -MP -MF ".deps/getopt_long.Tpo" -c -o getopt_long.o getopt_long.c; \ then mv -f ".deps/getopt_long.Tpo" ".deps/getopt_long.Po"; else rm -f ".deps/getopt_long.Tpo"; exit 1; fi In file included from lha.h:70, from lharc.c:45: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ In file included from lha.h:70, from huf.c:10: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ In file included from lha.h:70, from append.c:9: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ In file included from lha.h:70, from crcio.c:9: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ In file included from lha.h:70, from larc.c:9: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ In file included from lha.h:70, from extract.c:9: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ In file included from lha.h:70, from lhlist.c:15: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ In file included from lha.h:70, from maketbl.c:9: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ In file included from lha.h:70, from maketree.c:9: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ In file included from lha.h:70, from indicator.c:10: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ In file included from lha.h:70, from dhuf.c:9: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ In file included from lha.h:70, from header.c:17: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ In file included from lha.h:70, from shuf.c:9: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ In file included from lha.h:70, from lhadd.c:10: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ In file included from lha.h:70, from lhext.c:16: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ In file included from lha.h:70, from slide.c:14: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ In file included from lha.h:70, from bitio.c:10: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ In file included from lha.h:70, from util.c:10: /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ larc.c: In function 'decode_start_lz5': larc.c:85:9: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 85 | memset(&text[i * 13 + 18], i, 13); | ^~~~~~ larc.c:10:1: note: include '' or provide a declaration of 'memset' 9 | #include "lha.h" +++ |+#include 10 | larc.c:85:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 85 | memset(&text[i * 13 + 18], i, 13); | ^~~~~~ larc.c:85:9: note: include '' or provide a declaration of 'memset' larc.c:90:5: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 90 | memset(&text[256 * 13 + 512 + 18], 0, 128); | ^~~~~~ larc.c:90:5: note: include '' or provide a declaration of 'memset' append.c: In function 'encode_lzhuf': append.c:46:5: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 46 | memcpy(hdr_method, "-lh -", 5); | ^~~~~~ append.c:10:1: note: include '' or provide a declaration of 'memcpy' 9 | #include "lha.h" +++ |+#include 10 | append.c:46:5: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 46 | memcpy(hdr_method, "-lh -", 5); | ^~~~~~ append.c:46:5: note: include '' or provide a declaration of 'memcpy' huf.c:19:14: error: conflicting types for 'malloc'; have 'char *()' 19 | extern char *malloc (); | ^~~~~~ In file included from /usr/include/fortify/stdlib.h:23, from lha.h:54: /usr/include/stdlib.h:40:7: note: previous declaration of 'malloc' with type 'void *(long unsigned int)' 40 | void *malloc (size_t); | ^~~~~~ lhlist.c: In function 'list_one': lhlist.c:134:5: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 134 | strncpy(method, hdr->method, 5); | ^~~~~~~ lhlist.c:16:1: note: include '' or provide a declaration of 'strncpy' 15 | #include "lha.h" +++ |+#include 16 | lhlist.c:134:5: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 134 | strncpy(method, hdr->method, 5); | ^~~~~~~ lhlist.c:134:5: note: include '' or provide a declaration of 'strncpy' lharc.c: In function 'parse_suboption': maketree.c: In function 'make_tree': maketree.c:168:9: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 168 | memset(leaf_num, 0, sizeof(leaf_num)); | ^~~~~~ lharc.c:370:17: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 370 | if (strcmp(optarg, "euc") == 0) { | ^~~~~~ maketree.c:10:1: note: include '' or provide a declaration of 'memset' 9 | #include "lha.h" +++ |+#include 10 | lharc.c:189:1: note: include '' or provide a declaration of 'strcmp' 188 | #include "getopt_long.h" +++ |+#include 189 | maketree.c:168:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 168 | memset(leaf_num, 0, sizeof(leaf_num)); | ^~~~~~ maketree.c:168:9: note: include '' or provide a declaration of 'memset' indicator.c: In function 'start_indicator': indicator.c:58:35: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 58 | m = MAX_INDICATOR_COUNT - strlen(name); | ^~~~~~ indicator.c:11:1: note: include '' or provide a declaration of 'strlen' 10 | #include "lha.h" +++ |+#include 11 | indicator.c:58:35: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 58 | m = MAX_INDICATOR_COUNT - strlen(name); | ^~~~~~ indicator.c:58:35: note: include '' or provide a declaration of 'strlen' lhadd.c: In function 'add_one': header.c: In function 'dump_get_byte': header.c:77:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=] 77 | printf("%02d %2d: ", get_ptr - start_ptr, 1); | ~~~^ ~~~~~~~~~~~~~~~~~~~ | | | | int long int | %02ld lhadd.c:67:9: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 67 | memcpy(hdr->method, LZHUFF0_METHOD, METHOD_TYPE_STORAGE); | ^~~~~~ util.c: In function 'archive_is_msdos_sfx1': lhadd.c:11:1: note: include '' or provide a declaration of 'memcpy' 10 | #include "lha.h" +++ |+#include 11 | /* ------------------------------------------------------------------------ */ lhadd.c:67:9: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 67 | memcpy(hdr->method, LZHUFF0_METHOD, METHOD_TYPE_STORAGE); | ^~~~~~ lhadd.c:67:9: note: include '' or provide a declaration of 'memcpy' util.c:109:15: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 109 | int len = strlen(name); | ^~~~~~ util.c:11:1: note: include '' or provide a declaration of 'strlen' 10 | #include "lha.h" +++ |+#include 11 | /* slide.c: In function 'update_dict': lhext.c: In function 'make_parent_path': util.c:109:15: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 109 | int len = strlen(name); | ^~~~~~ util.c:109:15: note: include '' or provide a declaration of 'strlen' header.c: In function 'dump_skip_bytes': lhext.c:92:21: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 92 | for (p = path + strlen(path); p > path; p--) | ^~~~~~ util.c:112:13: error: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration] 112 | if (strcasecmp(".COM", name + len - 4) == 0 || | ^~~~~~~~~~ lhext.c:17:1: note: include '' or provide a declaration of 'strlen' 16 | #include "lha.h" +++ |+#include 17 | /* ------------------------------------------------------------------------ */ header.c:94:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=] 94 | printf("%02d %2d: ", get_ptr - start_ptr, len); | ~~~^ ~~~~~~~~~~~~~~~~~~~ | | | | int long int | %02ld lhext.c:92:21: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 92 | for (p = path + strlen(path); p > path; p--) | ^~~~~~ lhext.c:92:21: note: include '' or provide a declaration of 'strlen' slide.c:161:5: error: implicit declaration of function 'memmove' [-Wimplicit-function-declaration] 161 | memmove(&text[0], &text[dicsiz], txtsiz - dicsiz); | ^~~~~~~ slide.c:15:1: note: include '' or provide a declaration of 'memmove' 14 | #include "lha.h" +++ |+#include 15 | util.c: At top level: slide.c:161:5: warning: incompatible implicit declaration of built-in function 'memmove' [-Wbuiltin-declaration-mismatch] 161 | memmove(&text[0], &text[dicsiz], txtsiz - dicsiz); | ^~~~~~~ slide.c:161:5: note: include '' or provide a declaration of 'memmove' util.c:204:1: warning: 'xsnprintf' defined as variadic function without prototype 204 | xsnprintf(dest, size, fmt, va_alist) | ^~~~~~~~~ header.c: In function 'get_word': In file included from lha.h:378: prototypes.h:125:5: note: previous declaration of 'xsnprintf' with type 'int(char *, size_t, char *, ...)' {aka 'int(char *, long unsigned int, char *, ...)'} 125 | int xsnprintf P_((char *dest, size_t size, char *fmt, ...)); | ^~~~~~~~~ util.c: In function 'xsnprintf': header.c:112:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=] 112 | printf("%02d %2d: ", get_ptr - start_ptr, 2); | ~~~^ ~~~~~~~~~~~~~~~~~~~ | | | | int long int | %02ld util.c:207:5: error: expected declaration specifiers before 'va_dcl' 207 | va_dcl | ^~~~~~ util.c:232:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 232 | { | ^ util.c:247:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 247 | { | ^ util.c:261:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 261 | { | ^ util.c:275:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 275 | { | ^ header.c: In function 'get_longword': util.c:320:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 320 | { | ^ header.c:140:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=] 140 | printf("%02d %2d: ", get_ptr - start_ptr, 4); | ~~~^ ~~~~~~~~~~~~~~~~~~~ | | | | int long int | %02ld util.c:204:1: error: type of 'va_alist' defaults to 'int' [-Wimplicit-int] 204 | xsnprintf(dest, size, fmt, va_alist) | ^~~~~~~~~ lharc.c: In function 'main': util.c:335:1: error: number of arguments doesn't match prototype 335 | } | ^ prototypes.h:125:5: error: prototype declaration 125 | int xsnprintf P_((char *dest, size_t size, char *fmt, ...)); | ^~~~~~~~~ util.c:336: error: expected '{' at end of input lharc.c:598:17: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 598 | if (strlen(inpbuf) < 1) | ^~~~~~ lharc.c:598:17: note: include '' or provide a declaration of 'strlen' lharc.c:598:17: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] lharc.c:598:17: note: include '' or provide a declaration of 'strlen' make[2]: *** [Makefile:261: extract.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [Makefile:261: append.o] Error 1 make[2]: *** [Makefile:261: larc.o] Error 1 header.c: In function 'get_bytes': lharc.c: At top level: slide.c: In function 'encode': lharc.c:646:1: warning: 'message' defined as variadic function without prototype 646 | message(fmt, va_alist) | ^~~~~~~ header.c:173:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=] 173 | printf("%02d %2d: \"", get_ptr - start_ptr, len); | ~~~^ ~~~~~~~~~~~~~~~~~~~ | | | | int long int | %02ld In file included from lha.h:378: prototypes.h:73:6: note: previous declaration of 'message' with type 'void(char *, ...)' 73 | void message P_((char *fmt, ...)); | ^~~~~~~ lharc.c: In function 'message': slide.c:317:5: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 317 | memset(text, ' ', TXTSIZ); | ^~~~~~ slide.c:317:5: note: include '' or provide a declaration of 'memset' slide.c:317:5: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] slide.c:317:5: note: include '' or provide a declaration of 'memset' lhext.c: In function 'extract_one': lhadd.c: In function 'append_it': lharc.c:648:5: error: expected declaration specifiers before 'va_dcl' 648 | va_dcl | ^~~~~~ lhadd.c:108:56: error: implicit declaration of function 'strerror'; did you mean 'error'? [-Wimplicit-function-declaration] 108 | error("Cannot open file \"%s\": %s", name, strerror(errno)); | ^~~~~~~~ | error lhext.c:263:13: error: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration] 263 | if (memcmp(hdr->method, methods[method], 5) == 0) | ^~~~~~ lhext.c:263:13: note: include '' or provide a declaration of 'memcmp' lhext.c:263:50: warning: 'memcmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 263 | if (memcmp(hdr->method, methods[method], 5) == 0) | ^ lharc.c:671:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char' 671 | char *fmt; | ^~~~ : note: built-in 'memcmp' declared here lhadd.c:125:15: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 125 | cmp = strcmp(ahdr.name, hdr.name); | ^~~~~~ make[2]: *** [Makefile:261: crcio.o] Error 1 lhadd.c:125:15: note: include '' or provide a declaration of 'strcmp' make[2]: *** [Makefile:261: maketbl.o] Error 1 header.c: In function 'convert_filename': header.c:227:9: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 227 | strncpy(name, tmp, size); | ^~~~~~~ lharc.c:672:5: error: expected declaration specifiers before 'va_dcl' 672 | va_dcl | ^~~~~~ header.c:18:1: note: include '' or provide a declaration of 'strncpy' 17 | #include "lha.h" +++ |+#include 18 | header.c:227:9: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 227 | strncpy(name, tmp, size); | ^~~~~~~ header.c:227:9: note: include '' or provide a declaration of 'strncpy' slide.c: In function 'decode': lharc.c:695:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char' 695 | char *fmt; | ^~~~ header.c:229:15: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 229 | len = strlen(name); | ^~~~~~ header.c:229:15: note: include '' or provide a declaration of 'strlen' header.c:229:15: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] header.c:229:15: note: include '' or provide a declaration of 'strlen' slide.c:419:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 419 | memset(dtext, 0, dicsiz); | ^~~~~~ slide.c:419:9: note: include '' or provide a declaration of 'memset' lharc.c:696:5: error: expected declaration specifiers before 'va_dcl' 696 | va_dcl | ^~~~~~ lhadd.c: In function 'find_update_files': slide.c:421:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 421 | memset(dtext, ' ', dicsiz); | ^~~~~~ slide.c:421:9: note: include '' or provide a declaration of 'memset' lhadd.c:197:39: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 197 | add_sp(&sp, hdr.name, strlen(hdr.name) + 1); | ^~~~~~ header.c:243:9: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 243 | strncpy(name, tmp, size); | ^~~~~~~ lharc.c:720:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char' 720 | char *fmt; | ^~~~ lhadd.c:197:39: note: include '' or provide a declaration of 'strlen' header.c:243:9: note: include '' or provide a declaration of 'strncpy' lhadd.c:197:39: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] lhadd.c:197:39: note: include '' or provide a declaration of 'strlen' header.c:245:15: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 245 | len = strlen(name); | ^~~~~~ header.c:245:15: note: include '' or provide a declaration of 'strlen' lharc.c:721:5: error: expected declaration specifiers before 'va_dcl' 721 | va_dcl | ^~~~~~ lhadd.c:200:13: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 200 | strcpy(name, hdr.name); /* ok */ | ^~~~~~ lhadd.c:200:13: note: include '' or provide a declaration of 'strcpy' lhadd.c:200:13: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] lhadd.c:200:13: note: include '' or provide a declaration of 'strcpy' lharc.c:743:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 743 | { | ^ lhadd.c:201:19: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 201 | len = strlen(name); | ^~~~~~ lhadd.c:201:19: note: include '' or provide a declaration of 'strlen' header.c:255:9: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 255 | strncpy(name, tmp, size); | ^~~~~~~ header.c:255:9: note: include '' or provide a declaration of 'strncpy' lharc.c:763:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' 763 | int signo; | ^~~ header.c:257:15: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 257 | len = strlen(name); | ^~~~~~ header.c:257:15: note: include '' or provide a declaration of 'strlen' lharc.c:646:1: error: type of 'va_alist' defaults to 'int' [-Wimplicit-int] 646 | message(fmt, va_alist) | ^~~~~~~ lharc.c:764:1: error: number of arguments doesn't match prototype 764 | { | ^ prototypes.h:73:6: error: prototype declaration 73 | void message P_((char *fmt, ...)); | ^~~~~~~ make[2]: *** [Makefile:261: maketree.o] Error 1 header.c:289:13: error: implicit declaration of function 'memmove' [-Wimplicit-function-declaration] 289 | memmove(name + i, name + i + 1, len - i); | ^~~~~~~ header.c:289:13: note: include '' or provide a declaration of 'memmove' header.c:289:13: warning: incompatible implicit declaration of built-in function 'memmove' [-Wbuiltin-declaration-mismatch] header.c:289:13: note: include '' or provide a declaration of 'memmove' make[2]: *** [Makefile:261: bitio.o] Error 1 lhext.c: In function 'add_dirinfo': make[2]: *** [Makefile:261: indicator.o] Error 1 header.c:300:13: warning: incompatible implicit declaration of built-in function 'memmove' [-Wbuiltin-declaration-mismatch] 300 | memmove(name+i+1, name+i, len-i); | ^~~~~~~ header.c:300:13: note: include '' or provide a declaration of 'memmove' lhext.c:532:45: warning: 'memcmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 532 | if (memcmp(hdr->method, LZHDIRS_METHOD, 5) != 0) | ^ : note: built-in 'memcmp' declared here lhext.c:537:5: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 537 | memcpy(&p->hdr, hdr, sizeof(LzHeader)); | ^~~~~~ lhext.c:537:5: note: include '' or provide a declaration of 'memcpy' lhext.c:537:5: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] lhext.c:537:5: note: include '' or provide a declaration of 'memcpy' make[2]: *** [Makefile:261: util.o] Error 1 make[2]: *** [Makefile:261: shuf.o] Error 1 lharc.c:773:20: error: 'signo' undeclared (first use in this function); did you mean 'signal'? 773 | kill(getpid(), signo); | ^~~~~ | signal lharc.c:773:20: note: each undeclared identifier is reported only once for each function it appears in lhext.c:538:5: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 538 | strncpy(p->hdr.name, name, sizeof(p->hdr.name)); | ^~~~~~~ lhext.c:538:5: note: include '' or provide a declaration of 'strncpy' lhext.c:538:5: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] lhext.c:538:5: note: include '' or provide a declaration of 'strncpy' header.c:364:9: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 364 | strncpy(name, tmp, size); | ^~~~~~~ header.c:364:9: note: include '' or provide a declaration of 'strncpy' make[2]: *** [Makefile:261: lhlist.o] Error 1 header.c:366:15: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 366 | len = strlen(name); | ^~~~~~ header.c:366:15: note: include '' or provide a declaration of 'strlen' lharc.c: In function 'xstrdup': lharc.c:843:15: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 843 | int len = strlen(str); | ^~~~~~ lharc.c:843:15: note: include '' or provide a declaration of 'strlen' lharc.c:845:5: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 845 | strcpy(p, str); /* ok */ | ^~~~~~ lharc.c:845:5: note: include '' or provide a declaration of 'strcpy' lharc.c:845:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] lharc.c:845:5: note: include '' or provide a declaration of 'strcpy' make[2]: *** [Makefile:261: dhuf.o] Error 1 header.c: In function 'get_extended_header': lharc.c: In function 'add_sp': header.c:499:19: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 499 | name_length = strlen(hdr->name); | ^~~~~~ header.c:499:19: note: include '' or provide a declaration of 'strlen' lharc.c:889:5: error: implicit declaration of function 'memmove' [-Wimplicit-function-declaration] 889 | memmove(sp->buffer + sp->used, name, len); | ^~~~~~~ lharc.c:889:5: note: include '' or provide a declaration of 'memmove' lharc.c:889:5: warning: incompatible implicit declaration of built-in function 'memmove' [-Wbuiltin-declaration-mismatch] lharc.c:889:5: note: include '' or provide a declaration of 'memmove' lharc.c: In function 'finish_sp': make[2]: *** [Makefile:261: slide.o] Error 1 lharc.c:913:18: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 913 | p += strlen(p) + 1; | ^~~~~~ lharc.c:913:18: note: include '' or provide a declaration of 'strlen' make[2]: *** [Makefile:261: huf.o] Error 1 header.c:618:9: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 618 | strcat(dirname, hdr->name); /* ok */ | ^~~~~~ header.c:618:9: note: include '' or provide a declaration of 'strcat' header.c:618:9: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] header.c:618:9: note: include '' or provide a declaration of 'strcat' header.c:619:9: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 619 | strcpy(hdr->name, dirname); /* ok */ | ^~~~~~ header.c:619:9: note: include '' or provide a declaration of 'strcpy' header.c:619:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] header.c:619:9: note: include '' or provide a declaration of 'strcpy' lharc.c: In function 'cleaning_files': lharc.c:969:21: error: implicit declaration of function 'strerror'; did you mean 'error'? [-Wimplicit-function-declaration] 969 | strerror(errno)); | ^~~~~~~~ | error lharc.c: In function 'find_files': header.c: In function 'get_header': lharc.c:1045:13: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1045 | strcpy(&newname[len++], "/"); /* ok */ | ^~~~~~ lharc.c:1045:13: note: include '' or provide a declaration of 'strcpy' make[2]: *** [Makefile:261: lhext.o] Error 1 header.c:1044:5: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 1044 | memset(hdr, 0, sizeof(LzHeader)); | ^~~~~~ header.c:1044:5: note: include '' or provide a declaration of 'memset' lha.h:126:25: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 126 | # define NAMLEN(dirent) strlen((dirent)->d_name) | ^~~~~~ lharc.c:1062:13: note: in expansion of macro 'NAMLEN' 1062 | n = NAMLEN(dp); | ^~~~~~ header.c:1044:5: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] header.c:1044:5: note: include '' or provide a declaration of 'memset' lha.h:126:25: note: include '' or provide a declaration of 'strlen' 126 | # define NAMLEN(dirent) strlen((dirent)->d_name) | ^~~~~~ lharc.c:1062:13: note: in expansion of macro 'NAMLEN' 1062 | n = NAMLEN(dp); | ^~~~~~ make[2]: *** [Makefile:261: lhadd.o] Error 1 lharc.c:1065:13: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 1065 | if (strncmp(dp->d_name, ".", n) == 0 | ^~~~~~~ lharc.c:1065:13: note: include '' or provide a declaration of 'strncmp' header.c:1117:33: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1117 | convert_filename(hdr->name, strlen(hdr->name), sizeof(hdr->name), | ^~~~~~ header.c:1117:33: note: include '' or provide a declaration of 'strlen' lharc.c:1065:38: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 1065 | if (strncmp(dp->d_name, ".", n) == 0 | ^ : note: built-in 'strncmp' declared here lharc.c:1066:42: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 1066 | || strncmp(dp->d_name, "..", n) == 0) | ^ : note: built-in 'strncmp' declared here header.c:1130:13: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1130 | strcpy(hdr->realname, p+1); /* ok */ | ^~~~~~ header.c:1130:13: note: include '' or provide a declaration of 'strcpy' lharc.c:1081:9: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 1081 | strncpy(newname + len, dp->d_name, n); | ^~~~~~~ lharc.c:1081:9: note: include '' or provide a declaration of 'strncpy' lharc.c:1081:9: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] lharc.c:1081:9: note: include '' or provide a declaration of 'strncpy' header.c: In function 'remove_leading_dots': header.c:1187:9: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 1187 | if (strcmp(first, "..") == 0) { | ^~~~~~ header.c:1187:9: note: include '' or provide a declaration of 'strcmp' lharc.c: In function 'open_old_archive': lharc.c:1303:13: error: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration] 1303 | if (strcasecmp(".LZH", p) == 0 | ^~~~~~~~~~ header.c:1192:9: error: implicit declaration of function 'strstr' [-Wimplicit-function-declaration] 1192 | if (strstr(first, "..") == 0) | ^~~~~~ header.c:1192:9: note: include '' or provide a declaration of 'strstr' header.c:1192:9: warning: incompatible implicit declaration of built-in function 'strstr' [-Wbuiltin-declaration-mismatch] header.c:1192:9: note: include '' or provide a declaration of 'strstr' header.c:1199:18: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 1199 | else if (strncmp(path, "../", 3) == 0) | ^~~~~~~ header.c:1199:18: note: include '' or provide a declaration of 'strncmp' header.c:1199:39: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 1199 | else if (strncmp(path, "../", 3) == 0) | ^ : note: built-in 'strncmp' declared here header.c: In function 'init_header': header.c:1225:5: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 1225 | memset(hdr, 0, sizeof(LzHeader)); | ^~~~~~ header.c:1225:5: note: include '' or provide a declaration of 'memset' header.c:1229:5: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 1229 | memcpy(hdr->method, LZHUFF0_METHOD, METHOD_TYPE_STORAGE); | ^~~~~~ header.c:1229:5: note: include '' or provide a declaration of 'memcpy' header.c:1229:5: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] header.c:1229:5: note: include '' or provide a declaration of 'memcpy' header.c:1281:17: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1281 | strcpy(&hdr->name[len++], "/"); /* ok */ | ^~~~~~ header.c:1281:17: note: include '' or provide a declaration of 'strcpy' header.c: In function 'write_unix_info': header.c:1314:19: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1314 | int len = strlen(hdr->group); | ^~~~~~ header.c:1314:19: note: include '' or provide a declaration of 'strlen' header.c:1321:19: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1321 | int len = strlen(hdr->user); | ^~~~~~ header.c:1321:19: note: include '' or provide a declaration of 'strlen' header.c: In function 'write_header_level0': header.c:1344:5: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 1344 | memset(data, 0, LZHEADER_STORAGE); | ^~~~~~ header.c:1344:5: note: include '' or provide a declaration of 'memset' make[2]: *** [Makefile:261: lharc.o] Error 1 header.c:1356:19: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1356 | name_length = strlen(pathname); | ^~~~~~ header.c:1356:19: note: include '' or provide a declaration of 'strlen' header.c: In function 'write_header_level1': header.c:1406:23: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1406 | name_length = strlen(basename); | ^~~~~~ header.c:1406:23: note: include '' or provide a declaration of 'strlen' header.c:1412:23: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1412 | name_length = strlen(basename); | ^~~~~~ header.c:1412:23: note: include '' or provide a declaration of 'strlen' header.c:1418:5: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 1418 | memset(data, 0, LZHEADER_STORAGE); | ^~~~~~ header.c:1418:5: note: include '' or provide a declaration of 'memset' header.c: In function 'write_header_level2': header.c:1499:23: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1499 | name_length = strlen(basename); | ^~~~~~ header.c:1499:23: note: include '' or provide a declaration of 'strlen' header.c:1505:23: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1505 | name_length = strlen(basename); | ^~~~~~ header.c:1505:23: note: include '' or provide a declaration of 'strlen' header.c:1511:5: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 1511 | memset(data, 0, LZHEADER_STORAGE); | ^~~~~~ header.c:1511:5: note: include '' or provide a declaration of 'memset' header.c: In function 'write_header': header.c:1616:9: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 1616 | strncpy(pathname, hdr->name, sizeof(pathname)); | ^~~~~~~ header.c:1616:9: note: include '' or provide a declaration of 'strncpy' header.c:1620:32: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1620 | convert_filename(pathname, strlen(pathname), sizeof(pathname), | ^~~~~~ header.c:1620:32: note: include '' or provide a declaration of 'strlen' header.c: In function 'ConvertEncodingByIconv': header.c:1756:20: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1756 | sLen = (size_t)strlen(src); | ^~~~~~ header.c:1756:20: note: include '' or provide a declaration of 'strlen' header.c:1757:5: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 1757 | memset(szTmpBuf, 0, sizeof(szTmpBuf)); | ^~~~~~ header.c:1757:5: note: include '' or provide a declaration of 'memset' header.c:1762:43: error: implicit declaration of function 'strerror'; did you mean 'error'? [-Wimplicit-function-declaration] 1762 | error("iconv_open() failure: %s", strerror(errno)); | ^~~~~~~~ | error header.c:1772:5: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 1772 | strncpy(dst, szTmpBuf, dstsize); | ^~~~~~~ header.c:1772:5: note: include '' or provide a declaration of 'strncpy' header.c: In function 'sjis_to_utf8': header.c:1798:10: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 1798 | return strncpy(dst, src, dstsize-1); | ^~~~~~~ header.c:1798:10: note: include '' or provide a declaration of 'strncpy' header.c: In function 'utf8_to_sjis': header.c:1822:10: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 1822 | return strncpy(dst, src, dstsize-1); | ^~~~~~~ header.c:1822:10: note: include '' or provide a declaration of 'strncpy' header.c: In function 'cap_to_sjis': header.c:1894:18: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1894 | size_t len = strlen(src); | ^~~~~~ header.c:1894:18: note: include '' or provide a declaration of 'strlen' header.c:1910:13: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 1910 | strncpy(dst+j, src+i, dstsize-j); | ^~~~~~~ header.c:1910:13: note: include '' or provide a declaration of 'strncpy' header.c: In function 'sjis_to_cap': header.c:1927:18: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1927 | size_t len = strlen(src); | ^~~~~~ header.c:1927:18: note: include '' or provide a declaration of 'strlen' header.c:1932:13: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 1932 | strncpy(dst+j, ":3a", dstsize-j); | ^~~~~~~ header.c:1932:13: note: include '' or provide a declaration of 'strncpy' make[2]: *** [Makefile:261: header.o] Error 1 make[2]: Leaving directory '/home/buildozer/aports/community/lha/src/lha-1.14i-ac20050924p1/src' make[1]: *** [Makefile:228: all-recursive] Error 1 make[1]: Leaving directory '/home/buildozer/aports/community/lha/src/lha-1.14i-ac20050924p1' make: *** [Makefile:166: all] Error 2 >>> ERROR: lha: build failed >>> lha: Uninstalling dependencies... (1/2) Purging .makedepends-lha (20240910.060127) (2/2) Purging bash (5.2.32-r0) Executing bash-5.2.32-r0.pre-deinstall Executing busybox-1.36.1-r31.trigger OK: 251 MiB in 102 packages