<86>Oct 18 15:22:18 userdel[69033]: delete user 'rooter' <86>Oct 18 15:22:18 userdel[69033]: removed group 'rooter' owned by 'rooter' <86>Oct 18 15:22:18 userdel[69033]: removed shadow group 'rooter' owned by 'rooter' <86>Oct 18 15:22:18 groupadd[69081]: group added to /etc/group: name=rooter, GID=1826 <86>Oct 18 15:22:18 groupadd[69081]: group added to /etc/gshadow: name=rooter <86>Oct 18 15:22:18 groupadd[69081]: new group: name=rooter, GID=1826 <86>Oct 18 15:22:18 useradd[69123]: new user: name=rooter, UID=1826, GID=1826, home=/root, shell=/bin/bash, from=none <86>Oct 18 15:22:18 userdel[69177]: delete user 'builder' <86>Oct 18 15:22:18 userdel[69177]: removed group 'builder' owned by 'builder' <86>Oct 18 15:22:18 userdel[69177]: removed shadow group 'builder' owned by 'builder' <86>Oct 18 15:22:18 groupadd[69224]: group added to /etc/group: name=builder, GID=1827 <86>Oct 18 15:22:18 groupadd[69224]: group added to /etc/gshadow: name=builder <86>Oct 18 15:22:18 groupadd[69224]: new group: name=builder, GID=1827 <86>Oct 18 15:22:18 useradd[69256]: new user: name=builder, UID=1827, GID=1827, home=/usr/src, shell=/bin/bash, from=none /usr/src/in/srpm/lha-1.14i-alt3.src.rpm: license not found in '/usr/share/license' directory: freeware warning: user mike does not exist - using root warning: group mike does not exist - using root warning: user mike does not exist - using root warning: group mike does not exist - using root warning: user mike does not exist - using root warning: group mike does not exist - using root Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/lha-1.14i-alt3.nosrc.rpm (w1.gzdio) Installing lha-1.14i-alt3.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.71572 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf lha-1.14i-ac20050924p1 + echo 'Source #0 (lha-1.14i-ac20050924p1.tar.gz):' Source #0 (lha-1.14i-ac20050924p1.tar.gz): + /usr/bin/gzip -dc /usr/src/RPM/SOURCES/lha-1.14i-ac20050924p1.tar.gz + /bin/tar -xf - + cd lha-1.14i-ac20050924p1 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #0 (lha-1.14i-fix-includes.patch.bz2):' Patch #0 (lha-1.14i-fix-includes.patch.bz2): + /usr/bin/bzip2 -dc /usr/src/RPM/SOURCES/lha-1.14i-fix-includes.patch.bz2 + /usr/bin/patch -p1 patching file src/lha.h Hunk #1 succeeded at 22 with fuzz 2 (offset 4 lines). + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.71572 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd lha-1.14i-ac20050924p1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer' + export FFLAGS + FCFLAGS='-pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer' + export FCFLAGS + '[' -n '' ']' ++ printf %s '-pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer' ++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g' + ASFLAGS= + export ASFLAGS + export lt_cv_deplibs_check_method=pass_all + lt_cv_deplibs_check_method=pass_all + readlink -e -- ./configure + xargs -ri dirname -- '{}' + xargs -ri find '{}' -type f '(' -name config.sub -or -name config.guess ')' -printf '%h/\n' + sort -u + xargs -rn1 install -pm755 -- /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess + configure_runstatedir_flags= + grep -qF runstatedir=DIR ./configure + echo 'rpm-build: warning: ./configure script does not support --runstatedir' rpm-build: warning: ./configure script does not support --runstatedir + ./configure --build=x86_64-alt-linux --host=x86_64-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --disable-silent-rules --without-included-gettext checking build system type... x86_64-alt-linux-gnu checking host system type... x86_64-alt-linux-gnu checking target system type... x86_64-alt-linux-gnu checking for a BSD-compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-alt-linux-gcc... x86_64-alt-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 x86_64-alt-linux-gcc accepts -g... yes checking for x86_64-alt-linux-gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of x86_64-alt-linux-gcc... none checking how to run the C preprocessor... x86_64-alt-linux-gcc -E checking for egrep... grep -E checking whether x86_64-alt-linux-gcc needs -traditional... no checking for a BSD-compatible install... /usr/bin/ginstall -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... yes checking for tzset... yes checking for ftime... yes checking for gettimeofday... yes checking for utime... yes checking for ftruncate... yes checking for chsize... yes 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 -j16 'OPTIMIZE=-pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer' make all-recursive Making all in man make[2]: Nothing to be done for 'all'. Making all in olddoc make[2]: Nothing to be done for 'all'. Making all in src make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c append.c In file included from lha.h:71, from append.c:9: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ 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' make[2]: *** [Makefile:265: append.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c extract.c In file included from lha.h:71, from extract.c:9: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ make[2]: *** [Makefile:265: extract.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c bitio.c In file included from lha.h:71, from bitio.c:10: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ make[2]: *** [Makefile:265: bitio.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c crcio.c In file included from lha.h:71, from crcio.c:9: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ make[2]: *** [Makefile:265: crcio.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c larc.c In file included from lha.h:71, from larc.c:9: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/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' make[2]: *** [Makefile:265: larc.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c huf.c In file included from lha.h:71, from huf.c:10: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ huf.c:19:14: error: conflicting types for 'malloc'; have 'char *()' 19 | extern char *malloc (); | ^~~~~~ In file included from lha.h:55: /usr/include/stdlib.h:672:14: note: previous declaration of 'malloc' with type 'void *(long unsigned int)' 672 | extern void *malloc (size_t __size) __THROW __attribute_malloc__ | ^~~~~~ make[2]: *** [Makefile:265: huf.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c indicator.c In file included from lha.h:71, from indicator.c:10: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ 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' make[2]: *** [Makefile:265: indicator.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c dhuf.c In file included from lha.h:71, from dhuf.c:9: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ make[2]: *** [Makefile:265: dhuf.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c lhadd.c In file included from lha.h:71, from lhadd.c:10: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ lhadd.c: In function 'add_one': lhadd.c:67:9: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 67 | memcpy(hdr->method, LZHUFF0_METHOD, METHOD_TYPE_STORAGE); | ^~~~~~ 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' lhadd.c: In function 'append_it': 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 lhadd.c:125:15: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 125 | cmp = strcmp(ahdr.name, hdr.name); | ^~~~~~ lhadd.c:125:15: note: include '' or provide a declaration of 'strcmp' lhadd.c: In function 'find_update_files': lhadd.c:197:39: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 197 | add_sp(&sp, hdr.name, strlen(hdr.name) + 1); | ^~~~~~ lhadd.c:197:39: note: include '' or provide a declaration of 'strlen' 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' 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' 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' lhadd.c: In function 'set_archive_file_mode': lhadd.c:358:9: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result] 358 | chown(new_archive_name, getuid(), archive_file_gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:265: lhadd.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c lhext.c In file included from lha.h:71, from lhext.c:16: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ lhext.c: In function 'make_parent_path': lhext.c:92:21: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 92 | for (p = path + strlen(path); p > path; p--) | ^~~~~~ lhext.c:17:1: note: include '' or provide a declaration of 'strlen' 16 | #include "lha.h" +++ |+#include 17 | /* ------------------------------------------------------------------------ */ 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' lhext.c: In function 'extract_one': 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) | ^ : note: built-in 'memcmp' declared here lhext.c: In function 'add_dirinfo': 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' 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' lhext.c: In function 'adjust_info': lhext.c:192:17: warning: ignoring return value of 'lchown' declared with attribute 'warn_unused_result' [-Wunused-result] 192 | lchown(name, uid, gid); | ^~~~~~~~~~~~~~~~~~~~~~ lhext.c:195:17: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result] 195 | chown(name, uid, gid); | ^~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:265: lhext.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c lhlist.c In file included from lha.h:71, from lhlist.c:15: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ 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' make[2]: *** [Makefile:265: lhlist.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c patmatch.c patmatch.c: In function 'patmatch': patmatch.c:23:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 23 | while (pc = ((f && islower(*p)) ? toupper(*p++) : *p++)) { | ^~ make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c lharc.c In file included from lha.h:71, from lharc.c:45: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ lharc.c: In function 'parse_suboption': lharc.c:370:17: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 370 | if (strcmp(optarg, "euc") == 0) { | ^~~~~~ lharc.c:189:1: note: include '' or provide a declaration of 'strcmp' 188 | #include "getopt_long.h" +++ |+#include 189 | lharc.c: In function 'main': 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' lharc.c: At top level: lharc.c:646:1: warning: 'message' defined as variadic function without prototype 646 | message(fmt, va_alist) | ^~~~~~~ In file included from lha.h:379: prototypes.h:73:6: note: previous declaration of 'message' with type 'void(char *, ...)' 73 | void message P_((char *fmt, ...)); | ^~~~~~~ lharc.c: In function 'message': lharc.c:648:5: error: expected declaration specifiers before 'va_dcl' 648 | va_dcl | ^~~~~~ lharc.c:671:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char' 671 | char *fmt; | ^~~~ lharc.c:672:5: error: expected declaration specifiers before 'va_dcl' 672 | va_dcl | ^~~~~~ lharc.c:695:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char' 695 | char *fmt; | ^~~~ lharc.c:696:5: error: expected declaration specifiers before 'va_dcl' 696 | va_dcl | ^~~~~~ lharc.c:720:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char' 720 | char *fmt; | ^~~~ lharc.c:721:5: error: expected declaration specifiers before 'va_dcl' 721 | va_dcl | ^~~~~~ lharc.c:743:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 743 | { | ^ lharc.c:763:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' 763 | int signo; | ^~~ 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, ...)); | ^~~~~~~ lharc.c:773:20: error: 'signo' undeclared (first use in this function) 773 | kill(getpid(), signo); | ^~~~~ lharc.c:773:20: note: each undeclared identifier is reported only once for each function it appears in 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' lharc.c: In function 'add_sp': 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': 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' 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': 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' lha.h:127:25: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 127 | # define NAMLEN(dirent) strlen((dirent)->d_name) | ^~~~~~ lharc.c:1062:13: note: in expansion of macro 'NAMLEN' 1062 | n = NAMLEN(dp); | ^~~~~~ lha.h:127:25: note: include '' or provide a declaration of 'strlen' 127 | # define NAMLEN(dirent) strlen((dirent)->d_name) | ^~~~~~ lharc.c:1062:13: note: in expansion of macro 'NAMLEN' 1062 | n = NAMLEN(dp); | ^~~~~~ 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' 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 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' 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 | ^~~~~~~~~~ lharc.c: In function 'inquire': lharc.c:1355:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 1355 | fgets(buffer, 1024, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:265: lharc.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c maketbl.c In file included from lha.h:71, from maketbl.c:9: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ make[2]: *** [Makefile:265: maketbl.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c maketree.c In file included from lha.h:71, from maketree.c:9: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ 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)); | ^~~~~~ maketree.c:10:1: note: include '' or provide a declaration of 'memset' 9 | #include "lha.h" +++ |+#include 10 | 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' make[2]: *** [Makefile:265: maketree.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[2]: Entering directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DEUC -DSUPPORT_LH7 -pipe -frecord-gcc-switches -Wall -g -O3 -flto=auto -fomit-frame-pointer -c header.c In file included from lha.h:71, from header.c:17: /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:4:2: error: #error "GCC no longer implements ." 4 | #error "GCC no longer implements ." | ^~~~~ /usr/lib64/gcc/x86_64-alt-linux/14/include/varargs.h:5:2: error: #error "Revise your code to use ." 5 | #error "Revise your code to use ." | ^~~~~ 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 header.c: In function 'dump_skip_bytes': 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 header.c: In function 'get_word': 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 header.c: In function 'get_longword': 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 header.c: In function 'get_bytes': 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 header.c: In function 'convert_filename': header.c:227:9: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 227 | strncpy(name, tmp, size); | ^~~~~~~ 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' 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' header.c:243:9: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 243 | strncpy(name, tmp, size); | ^~~~~~~ header.c:243:9: note: include '' or provide a declaration of 'strncpy' 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' 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' 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' 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' 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' 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' 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' header.c: In function 'get_extended_header': 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' header.c:602:36: warning: pointer targets in passing argument 2 of 'calccrc' differ in signedness [-Wpointer-sign] 602 | *hcrc = calccrc(*hcrc, data, header_size); | ^~~~ | | | char * In file included from lha.h:379: prototypes.h:19:59: note: expected 'unsigned char *' but argument is of type 'char *' 19 | unsigned int calccrc P_((unsigned int crc, unsigned char *p, unsigned int n)); | ~~~~~~~~~~~~~~~^ prototypes.h:3:15: note: in definition of macro 'P_' 3 | #define P_(s) s | ^ 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' header.c: In function 'get_header_level2': header.c:932:26: warning: pointer targets in passing argument 2 of 'calccrc' differ in signedness [-Wpointer-sign] 932 | hcrc = calccrc(hcrc, data, get_ptr - data); | ^~~~ | | | char * prototypes.h:19:59: note: expected 'unsigned char *' but argument is of type 'char *' 19 | unsigned int calccrc P_((unsigned int crc, unsigned char *p, unsigned int n)); | ~~~~~~~~~~~~~~~^ prototypes.h:3:15: note: in definition of macro 'P_' 3 | #define P_(s) s | ^ header.c: In function 'get_header_level3': header.c:1013:26: warning: pointer targets in passing argument 2 of 'calccrc' differ in signedness [-Wpointer-sign] 1013 | hcrc = calccrc(hcrc, data, get_ptr - data); | ^~~~ | | | char * prototypes.h:19:59: note: expected 'unsigned char *' but argument is of type 'char *' 19 | unsigned int calccrc P_((unsigned int crc, unsigned char *p, unsigned int n)); | ~~~~~~~~~~~~~~~^ prototypes.h:3:15: note: in definition of macro 'P_' 3 | #define P_(s) s | ^ header.c: In function 'get_header': 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' 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' 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' 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' header.c: In function 'seek_lha_header': header.c:1158:50: warning: pointer targets in passing argument 1 of 'calc_sum' differ in signedness [-Wpointer-sign] 1158 | && p[I_HEADER_CHECKSUM] == calc_sum(p+2, p[I_HEADER_SIZE])) { | ~^~ | | | unsigned char * header.c:60:11: note: expected 'char *' but argument is of type 'unsigned char *' 60 | char *p; | ^ 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' 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' 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:1569:26: warning: pointer targets in passing argument 2 of 'calccrc' differ in signedness [-Wpointer-sign] 1569 | hcrc = calccrc(hcrc, data, (unsigned int) header_size); | ^~~~ | | | char * prototypes.h:19:59: note: expected 'unsigned char *' but argument is of type 'char *' 19 | unsigned int calccrc P_((unsigned int crc, unsigned char *p, unsigned int n)); | ~~~~~~~~~~~~~~~^ prototypes.h:3:15: note: in definition of macro 'P_' 3 | #define P_(s) s | ^ header.c:1492:11: warning: variable 'extend_header_top' set but not used [-Wunused-but-set-variable] 1492 | char *extend_header_top; | ^~~~~~~~~~~~~~~~~ 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' header.c: In function 'init_header': header.c:1293:9: warning: ignoring return value of 'readlink' declared with attribute 'warn_unused_result' [-Wunused-result] 1293 | readlink(name, hdr->realname, sizeof(hdr->realname)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:265: header.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/lha-1.14i-ac20050924p1/src' make[1]: *** [Makefile:228: all-recursive] Error 1 make: *** [Makefile:166: all] Error 2 error: Bad exit status from /usr/src/tmp/rpm-tmp.71572 (%build) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.71572 (%build) Command exited with non-zero status 1 2.13user 3.65system 0:05.63elapsed 102%CPU (0avgtext+0avgdata 23276maxresident)k 0inputs+0outputs (0major+784857minor)pagefaults 0swaps hsh-rebuild: rebuild of `lha-1.14i-alt3.src.rpm' failed. Command exited with non-zero status 1 0.53user 1.72system 0:09.86elapsed 22%CPU (0avgtext+0avgdata 12416maxresident)k 0inputs+0outputs (0major+84275minor)pagefaults 0swaps