D: [iurt_root_command] chroot warning: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/compface-1.5.2-19.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.MLLKjs + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf compface-1.5.2 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/compface-1.5.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd compface-1.5.2 + rm -rf /home/pterjan/rpmbuild/BUILD/compface-1.5.2-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/compface-1.5.2-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (libcompface_1.5.2-5.diff):' Patch #0 (libcompface_1.5.2-5.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file t.xbm patching file t.pbm patching file compface.c patching file t2.pbm patching file semantic.cache patching file Makefile patching file t2.xbm patching file file.c patching file compface.3 patching file compface.1 patching file compface.h patching file debian/libcompface1.shlibs patching file debian/control patching file debian/compat patching file debian/libcompfaceg1.files patching file debian/control.common patching file debian/compface.files patching file debian/shlibs.local patching file debian/libcompface1.files patching file debian/semantic.cache patching file debian/p patching file debian/libcompface1.postinst patching file debian/libcompfaceg1.postinst patching file debian/libcompface1-altdev.files patching file debian/changelog patching file debian/dirs patching file debian/changelog.old patching file debian/libcompfaceg1-dev.files patching file debian/rules patching file debian/copyright patching file debian/libcompfaceg1.shlibs patching file debian/control.old patching file debian/control.libc5 patching file debian/README.debian + echo 'Patch #2 (compface-1.5.2-build.patch):' Patch #2 (compface-1.5.2-build.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file Makefile.in + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.CqbnrN + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd compface-1.5.2 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking whether make sets $(MAKE)... yes checking for x86_64-mageia-linux-gnu-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 x86_64-mageia-linux-gnu-ranlib... no checking for ranlib... ranlib checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E 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 errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for strings.h... (cached) yes checking for strerror... yes configure: creating ./config.status config.status: creating Makefile + /usr/bin/make -O -j8 V=1 VERBOSE=1 gcc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRERROR=1 -DHAVE_CONFIG_H -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC file.c In file included from file.c:18: config.h:9:14: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 9 | extern char *malloc (); | ^~~~~~ config.h:7:1: note: 'malloc' is declared in header '' 6 | #include +++ |+#include 7 | #endif file.c: In function 'ReadFace': file.c:83:18: error: type defaults to 'int' in declaration of 'inc' [-Wimplicit-int] 83 | register inc = 0; /* optionally swap nimmles */ | ^~~ file.c:100:43: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 100 | (!strcmp(type1, "char") || | ^~~~~~ file.c:22:1: note: include '' or provide a declaration of 'strcmp' 21 | #include "compface.h" +++ |+#include 22 | file.c:116:17: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 116 | for(i = strlen(s); i > 0; i--) | ^~~~~~ file.c:116:17: note: include '' or provide a declaration of 'strlen' file.c:116:17: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] file.c:116:17: note: include '' or provide a declaration of 'strlen' make: *** [Makefile:101: file.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRERROR=1 -DHAVE_CONFIG_H -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC cmain.c In file included from cmain.c:19: config.h:9:14: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 9 | extern char *malloc (); | ^~~~~~ config.h:7:1: note: 'malloc' is declared in header '' 6 | #include +++ |+#include 7 | #endif cmain.c: In function 'main': cmain.c:52:27: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:75:7: note: in expansion of macro 'INITERR' 75 | INITERR("usage: ") | ^~~~~~~ cmain.c:23:1: note: include '' or provide a declaration of 'strcpy' 22 | #include "compface.h" +++ |+#include 23 | cmain.c:52:27: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:75:7: note: in expansion of macro 'INITERR' 75 | INITERR("usage: ") | ^~~~~~~ cmain.c:52:27: note: include '' or provide a declaration of 'strcpy' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:75:7: note: in expansion of macro 'INITERR' 75 | INITERR("usage: ") | ^~~~~~~ cmain.c:52:56: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:75:7: note: in expansion of macro 'INITERR' 75 | INITERR("usage: ") | ^~~~~~~ cmain.c:52:56: note: include '' or provide a declaration of 'strcat' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:75:7: note: in expansion of macro 'INITERR' 75 | INITERR("usage: ") | ^~~~~~~ cmain.c:52:56: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:75:7: note: in expansion of macro 'INITERR' 75 | INITERR("usage: ") | ^~~~~~~ cmain.c:52:56: note: include '' or provide a declaration of 'strcat' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:75:7: note: in expansion of macro 'INITERR' 75 | INITERR("usage: ") | ^~~~~~~ cmain.c:54:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 54 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ cmain.c:76:7: note: in expansion of macro 'ADDERR' 76 | ADDERR(cmdname) | ^~~~~~ cmain.c:54:25: note: include '' or provide a declaration of 'strcat' 54 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ cmain.c:76:7: note: in expansion of macro 'ADDERR' 76 | ADDERR(cmdname) | ^~~~~~ cmain.c:56:39: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~ cmain.c:78:7: note: in expansion of macro 'ERROR' 78 | ERROR | ^~~~~ cmain.c:56:54: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ cmain.c:78:7: note: in expansion of macro 'ERROR' 78 | ERROR | ^~~~~ cmain.c:56:54: note: include '' or provide a declaration of 'strlen' 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ cmain.c:78:7: note: in expansion of macro 'ERROR' 78 | ERROR | ^~~~~ cmain.c:56:54: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ cmain.c:78:7: note: in expansion of macro 'ERROR' 78 | ERROR | ^~~~~ cmain.c:56:54: note: include '' or provide a declaration of 'strlen' 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ cmain.c:78:7: note: in expansion of macro 'ERROR' 78 | ERROR | ^~~~~ cmain.c:81:21: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 81 | if ((argc > 1) && strcmp(*++argv, "-")) | ^~~~~~ cmain.c:81:21: note: include '' or provide a declaration of 'strcmp' cmain.c:52:27: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:86:11: note: in expansion of macro 'INITERR' 86 | INITERR(inname) | ^~~~~~~ cmain.c:52:27: note: include '' or provide a declaration of 'strcpy' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:86:11: note: in expansion of macro 'INITERR' 86 | INITERR(inname) | ^~~~~~~ cmain.c:52:56: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:86:11: note: in expansion of macro 'INITERR' 86 | INITERR(inname) | ^~~~~~~ cmain.c:52:56: note: include '' or provide a declaration of 'strcat' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:86:11: note: in expansion of macro 'INITERR' 86 | INITERR(inname) | ^~~~~~~ cmain.c:54:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 54 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ cmain.c:87:11: note: in expansion of macro 'ADDERR' 87 | ADDERR(": ") | ^~~~~~ cmain.c:54:25: note: include '' or provide a declaration of 'strcat' 54 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ cmain.c:87:11: note: in expansion of macro 'ADDERR' 87 | ADDERR(": ") | ^~~~~~ cmain.c:56:54: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ cmain.c:89:11: note: in expansion of macro 'ERROR' 89 | ERROR | ^~~~~ cmain.c:56:54: note: include '' or provide a declaration of 'strlen' 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ cmain.c:89:11: note: in expansion of macro 'ERROR' 89 | ERROR | ^~~~~ cmain.c:52:27: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:98:11: note: in expansion of macro 'INITERR' 98 | INITERR(outname) | ^~~~~~~ cmain.c:52:27: note: include '' or provide a declaration of 'strcpy' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:98:11: note: in expansion of macro 'INITERR' 98 | INITERR(outname) | ^~~~~~~ cmain.c:52:56: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:98:11: note: in expansion of macro 'INITERR' 98 | INITERR(outname) | ^~~~~~~ cmain.c:52:56: note: include '' or provide a declaration of 'strcat' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:98:11: note: in expansion of macro 'INITERR' 98 | INITERR(outname) | ^~~~~~~ cmain.c:54:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 54 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ cmain.c:99:11: note: in expansion of macro 'ADDERR' 99 | ADDERR(": ") | ^~~~~~ cmain.c:54:25: note: include '' or provide a declaration of 'strcat' 54 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ cmain.c:99:11: note: in expansion of macro 'ADDERR' 99 | ADDERR(": ") | ^~~~~~ cmain.c:56:54: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ cmain.c:101:11: note: in expansion of macro 'ERROR' 101 | ERROR | ^~~~~ cmain.c:56:54: note: include '' or provide a declaration of 'strlen' 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ cmain.c:101:11: note: in expansion of macro 'ERROR' 101 | ERROR | ^~~~~ cmain.c:52:27: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:108:17: note: in expansion of macro 'INITERR' 108 | case -2 : INITERR("internal error") | ^~~~~~~ cmain.c:52:27: note: include '' or provide a declaration of 'strcpy' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:108:17: note: in expansion of macro 'INITERR' 108 | case -2 : INITERR("internal error") | ^~~~~~~ cmain.c:52:56: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:108:17: note: in expansion of macro 'INITERR' 108 | case -2 : INITERR("internal error") | ^~~~~~~ cmain.c:52:56: note: include '' or provide a declaration of 'strcat' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:108:17: note: in expansion of macro 'INITERR' 108 | case -2 : INITERR("internal error") | ^~~~~~~ cmain.c:55:22: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 55 | #define ERROR {(void)strcat(fbuf, "\n");\ | ^~~~~~ cmain.c:109:17: note: in expansion of macro 'ERROR' 109 | ERROR | ^~~~~ cmain.c:55:22: note: include '' or provide a declaration of 'strcat' 55 | #define ERROR {(void)strcat(fbuf, "\n");\ | ^~~~~~ cmain.c:109:17: note: in expansion of macro 'ERROR' 109 | ERROR | ^~~~~ cmain.c:56:54: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ cmain.c:109:17: note: in expansion of macro 'ERROR' 109 | ERROR | ^~~~~ cmain.c:56:54: note: include '' or provide a declaration of 'strlen' 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ cmain.c:109:17: note: in expansion of macro 'ERROR' 109 | ERROR | ^~~~~ cmain.c:52:27: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:110:17: note: in expansion of macro 'INITERR' 110 | case -1 : INITERR(inname) | ^~~~~~~ cmain.c:52:27: note: include '' or provide a declaration of 'strcpy' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:110:17: note: in expansion of macro 'INITERR' 110 | case -1 : INITERR(inname) | ^~~~~~~ cmain.c:52:56: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:110:17: note: in expansion of macro 'INITERR' 110 | case -1 : INITERR(inname) | ^~~~~~~ cmain.c:52:56: note: include '' or provide a declaration of 'strcat' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:110:17: note: in expansion of macro 'INITERR' 110 | case -1 : INITERR(inname) | ^~~~~~~ cmain.c:54:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 54 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ cmain.c:111:17: note: in expansion of macro 'ADDERR' 111 | ADDERR(": insufficient or invalid data") | ^~~~~~ cmain.c:54:25: note: include '' or provide a declaration of 'strcat' 54 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ cmain.c:111:17: note: in expansion of macro 'ADDERR' 111 | ADDERR(": insufficient or invalid data") | ^~~~~~ cmain.c:56:54: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ cmain.c:112:17: note: in expansion of macro 'ERROR' 112 | ERROR | ^~~~~ cmain.c:56:54: note: include '' or provide a declaration of 'strlen' 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ cmain.c:112:17: note: in expansion of macro 'ERROR' 112 | ERROR | ^~~~~ cmain.c:57:28: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 57 | #define INITWARN(s) {(void)strcpy(fbuf, cmdname);\ | ^~~~~~ cmain.c:113:17: note: in expansion of macro 'INITWARN' 113 | case 1 : INITWARN(inname) | ^~~~~~~~ cmain.c:57:28: note: include '' or provide a declaration of 'strcpy' 57 | #define INITWARN(s) {(void)strcpy(fbuf, cmdname);\ | ^~~~~~ cmain.c:113:17: note: in expansion of macro 'INITWARN' 113 | case 1 : INITWARN(inname) | ^~~~~~~~ cmain.c:61:62: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 61 | #define WARN {(void)strcat(fbuf, "\n"); (void)write(2, fbuf, strlen(fbuf));} | ^~~~~~ cmain.c:115:17: note: in expansion of macro 'WARN' 115 | WARN | ^~~~ cmain.c:61:62: note: include '' or provide a declaration of 'strlen' 61 | #define WARN {(void)strcat(fbuf, "\n"); (void)write(2, fbuf, strlen(fbuf));} | ^~~~~~ cmain.c:115:17: note: in expansion of macro 'WARN' 115 | WARN | ^~~~ cmain.c: In function 'WriteBuf': cmain.c:131:17: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 131 | t = s + strlen(s); | ^~~~~~ cmain.c:131:17: note: include '' or provide a declaration of 'strlen' cmain.c:52:27: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:136:25: note: in expansion of macro 'INITERR' 136 | INITERR(outname) | ^~~~~~~ cmain.c:52:27: note: include '' or provide a declaration of 'strcpy' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:136:25: note: in expansion of macro 'INITERR' 136 | INITERR(outname) | ^~~~~~~ cmain.c:52:56: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:136:25: note: in expansion of macro 'INITERR' 136 | INITERR(outname) | ^~~~~~~ cmain.c:52:56: note: include '' or provide a declaration of 'strcat' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:136:25: note: in expansion of macro 'INITERR' 136 | INITERR(outname) | ^~~~~~~ cmain.c:54:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 54 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ cmain.c:137:25: note: in expansion of macro 'ADDERR' 137 | ADDERR(": ") | ^~~~~~ cmain.c:54:25: note: include '' or provide a declaration of 'strcat' 54 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ cmain.c:137:25: note: in expansion of macro 'ADDERR' 137 | ADDERR(": ") | ^~~~~~ cmain.c: In function 'ReadBuf': cmain.c:155:22: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 155 | while (len = read(infile, t, FACEBUFLEN - count)) | ^~~~ | fread cmain.c:52:27: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:159:25: note: in expansion of macro 'INITERR' 159 | INITERR(inname) | ^~~~~~~ cmain.c:52:27: note: include '' or provide a declaration of 'strcpy' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:159:25: note: in expansion of macro 'INITERR' 159 | INITERR(inname) | ^~~~~~~ cmain.c:52:56: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:159:25: note: in expansion of macro 'INITERR' 159 | INITERR(inname) | ^~~~~~~ cmain.c:52:56: note: include '' or provide a declaration of 'strcat' 52 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ cmain.c:159:25: note: in expansion of macro 'INITERR' 159 | INITERR(inname) | ^~~~~~~ cmain.c:54:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 54 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ cmain.c:160:25: note: in expansion of macro 'ADDERR' 160 | ADDERR(": ") | ^~~~~~ cmain.c:54:25: note: include '' or provide a declaration of 'strcat' 54 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ cmain.c:160:25: note: in expansion of macro 'ADDERR' 160 | ADDERR(": ") | ^~~~~~ cmain.c:56:54: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ cmain.c:162:25: note: in expansion of macro 'ERROR' 162 | ERROR | ^~~~~ cmain.c:56:54: note: include '' or provide a declaration of 'strlen' 56 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ cmain.c:162:25: note: in expansion of macro 'ERROR' 162 | ERROR | ^~~~~ cmain.c:57:28: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 57 | #define INITWARN(s) {(void)strcpy(fbuf, cmdname);\ | ^~~~~~ cmain.c:167:25: note: in expansion of macro 'INITWARN' 167 | INITWARN(inname) | ^~~~~~~~ cmain.c:57:28: note: include '' or provide a declaration of 'strcpy' 57 | #define INITWARN(s) {(void)strcpy(fbuf, cmdname);\ | ^~~~~~ cmain.c:167:25: note: in expansion of macro 'INITWARN' 167 | INITWARN(inname) | ^~~~~~~~ cmain.c:58:47: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 58 | (void)strcat(fbuf, ": (warning) ");\ | ^~~~~~ cmain.c:167:25: note: in expansion of macro 'INITWARN' 167 | INITWARN(inname) | ^~~~~~~~ cmain.c:58:47: note: include '' or provide a declaration of 'strcat' 58 | (void)strcat(fbuf, ": (warning) ");\ | ^~~~~~ cmain.c:167:25: note: in expansion of macro 'INITWARN' 167 | INITWARN(inname) | ^~~~~~~~ cmain.c:60:26: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 60 | #define ADDWARN(s) (void)strcat(fbuf, (s)); | ^~~~~~ cmain.c:168:25: note: in expansion of macro 'ADDWARN' 168 | ADDWARN(" exceeds internal buffer size. Data may be lost") | ^~~~~~~ cmain.c:60:26: note: include '' or provide a declaration of 'strcat' 60 | #define ADDWARN(s) (void)strcat(fbuf, (s)); | ^~~~~~ cmain.c:168:25: note: in expansion of macro 'ADDWARN' 168 | ADDWARN(" exceeds internal buffer size. Data may be lost") | ^~~~~~~ cmain.c:61:62: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 61 | #define WARN {(void)strcat(fbuf, "\n"); (void)write(2, fbuf, strlen(fbuf));} | ^~~~~~ cmain.c:169:25: note: in expansion of macro 'WARN' 169 | WARN | ^~~~ cmain.c:61:62: note: include '' or provide a declaration of 'strlen' 61 | #define WARN {(void)strcat(fbuf, "\n"); (void)write(2, fbuf, strlen(fbuf));} | ^~~~~~ cmain.c:169:25: note: in expansion of macro 'WARN' 169 | WARN | ^~~~ cmain.c: In function 'strerrorwrap': cmain.c:181:19: error: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] 181 | char *c = strerror(err); | ^~~~~~~~ | perror cmain.c:181:19: error: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] make: *** [Makefile:101: cmain.o] Error 1 gcc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRERROR=1 -DHAVE_CONFIG_H -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC uncmain.c In file included from uncmain.c:19: config.h:9:14: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 9 | extern char *malloc (); | ^~~~~~ config.h:7:1: note: 'malloc' is declared in header '' 6 | #include +++ |+#include 7 | #endif uncmain.c: In function 'main': uncmain.c:69:20: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 69 | if (argc > 1 && !strcmp(argv[1], "-X")) | ^~~~~~ uncmain.c:23:1: note: include '' or provide a declaration of 'strcmp' 22 | #include "compface.h" +++ |+#include 23 | uncmain.c:48:27: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:78:7: note: in expansion of macro 'INITERR' 78 | INITERR("usage: ") | ^~~~~~~ uncmain.c:48:27: note: include '' or provide a declaration of 'strcpy' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:78:7: note: in expansion of macro 'INITERR' 78 | INITERR("usage: ") | ^~~~~~~ uncmain.c:48:27: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:78:7: note: in expansion of macro 'INITERR' 78 | INITERR("usage: ") | ^~~~~~~ uncmain.c:48:27: note: include '' or provide a declaration of 'strcpy' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:78:7: note: in expansion of macro 'INITERR' 78 | INITERR("usage: ") | ^~~~~~~ uncmain.c:48:56: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:78:7: note: in expansion of macro 'INITERR' 78 | INITERR("usage: ") | ^~~~~~~ uncmain.c:48:56: note: include '' or provide a declaration of 'strcat' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:78:7: note: in expansion of macro 'INITERR' 78 | INITERR("usage: ") | ^~~~~~~ uncmain.c:48:56: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:78:7: note: in expansion of macro 'INITERR' 78 | INITERR("usage: ") | ^~~~~~~ uncmain.c:48:56: note: include '' or provide a declaration of 'strcat' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:78:7: note: in expansion of macro 'INITERR' 78 | INITERR("usage: ") | ^~~~~~~ uncmain.c:50:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 50 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ uncmain.c:79:7: note: in expansion of macro 'ADDERR' 79 | ADDERR(cmdname) | ^~~~~~ uncmain.c:50:25: note: include '' or provide a declaration of 'strcat' 50 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ uncmain.c:79:7: note: in expansion of macro 'ADDERR' 79 | ADDERR(cmdname) | ^~~~~~ uncmain.c:52:39: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~ uncmain.c:81:7: note: in expansion of macro 'ERROR' 81 | ERROR | ^~~~~ uncmain.c:52:54: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ uncmain.c:81:7: note: in expansion of macro 'ERROR' 81 | ERROR | ^~~~~ uncmain.c:52:54: note: include '' or provide a declaration of 'strlen' 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ uncmain.c:81:7: note: in expansion of macro 'ERROR' 81 | ERROR | ^~~~~ uncmain.c:52:54: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ uncmain.c:81:7: note: in expansion of macro 'ERROR' 81 | ERROR | ^~~~~ uncmain.c:52:54: note: include '' or provide a declaration of 'strlen' 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ uncmain.c:81:7: note: in expansion of macro 'ERROR' 81 | ERROR | ^~~~~ uncmain.c:48:27: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:89:11: note: in expansion of macro 'INITERR' 89 | INITERR(inname) | ^~~~~~~ uncmain.c:48:27: note: include '' or provide a declaration of 'strcpy' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:89:11: note: in expansion of macro 'INITERR' 89 | INITERR(inname) | ^~~~~~~ uncmain.c:48:56: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:89:11: note: in expansion of macro 'INITERR' 89 | INITERR(inname) | ^~~~~~~ uncmain.c:48:56: note: include '' or provide a declaration of 'strcat' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:89:11: note: in expansion of macro 'INITERR' 89 | INITERR(inname) | ^~~~~~~ uncmain.c:50:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 50 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ uncmain.c:90:11: note: in expansion of macro 'ADDERR' 90 | ADDERR(": ") | ^~~~~~ uncmain.c:50:25: note: include '' or provide a declaration of 'strcat' 50 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ uncmain.c:90:11: note: in expansion of macro 'ADDERR' 90 | ADDERR(": ") | ^~~~~~ uncmain.c:52:54: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ uncmain.c:92:11: note: in expansion of macro 'ERROR' 92 | ERROR | ^~~~~ uncmain.c:52:54: note: include '' or provide a declaration of 'strlen' 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ uncmain.c:92:11: note: in expansion of macro 'ERROR' 92 | ERROR | ^~~~~ uncmain.c:48:27: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:101:11: note: in expansion of macro 'INITERR' 101 | INITERR(outname) | ^~~~~~~ uncmain.c:48:27: note: include '' or provide a declaration of 'strcpy' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:101:11: note: in expansion of macro 'INITERR' 101 | INITERR(outname) | ^~~~~~~ uncmain.c:48:56: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:101:11: note: in expansion of macro 'INITERR' 101 | INITERR(outname) | ^~~~~~~ uncmain.c:48:56: note: include '' or provide a declaration of 'strcat' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:101:11: note: in expansion of macro 'INITERR' 101 | INITERR(outname) | ^~~~~~~ uncmain.c:50:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 50 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ uncmain.c:102:11: note: in expansion of macro 'ADDERR' 102 | ADDERR(": ") | ^~~~~~ uncmain.c:50:25: note: include '' or provide a declaration of 'strcat' 50 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ uncmain.c:102:11: note: in expansion of macro 'ADDERR' 102 | ADDERR(": ") | ^~~~~~ uncmain.c:52:54: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ uncmain.c:104:11: note: in expansion of macro 'ERROR' 104 | ERROR | ^~~~~ uncmain.c:52:54: note: include '' or provide a declaration of 'strlen' 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ uncmain.c:104:11: note: in expansion of macro 'ERROR' 104 | ERROR | ^~~~~ uncmain.c:48:27: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:111:17: note: in expansion of macro 'INITERR' 111 | case -2 : INITERR("internal error") | ^~~~~~~ uncmain.c:48:27: note: include '' or provide a declaration of 'strcpy' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:111:17: note: in expansion of macro 'INITERR' 111 | case -2 : INITERR("internal error") | ^~~~~~~ uncmain.c:48:56: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:111:17: note: in expansion of macro 'INITERR' 111 | case -2 : INITERR("internal error") | ^~~~~~~ uncmain.c:48:56: note: include '' or provide a declaration of 'strcat' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:111:17: note: in expansion of macro 'INITERR' 111 | case -2 : INITERR("internal error") | ^~~~~~~ uncmain.c:51:22: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 51 | #define ERROR {(void)strcat(fbuf, "\n");\ | ^~~~~~ uncmain.c:112:17: note: in expansion of macro 'ERROR' 112 | ERROR | ^~~~~ uncmain.c:51:22: note: include '' or provide a declaration of 'strcat' 51 | #define ERROR {(void)strcat(fbuf, "\n");\ | ^~~~~~ uncmain.c:112:17: note: in expansion of macro 'ERROR' 112 | ERROR | ^~~~~ uncmain.c:52:54: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ uncmain.c:112:17: note: in expansion of macro 'ERROR' 112 | ERROR | ^~~~~ uncmain.c:52:54: note: include '' or provide a declaration of 'strlen' 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ uncmain.c:112:17: note: in expansion of macro 'ERROR' 112 | ERROR | ^~~~~ uncmain.c:48:27: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:113:17: note: in expansion of macro 'INITERR' 113 | case -1 : INITERR(inname) | ^~~~~~~ uncmain.c:48:27: note: include '' or provide a declaration of 'strcpy' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:113:17: note: in expansion of macro 'INITERR' 113 | case -1 : INITERR(inname) | ^~~~~~~ uncmain.c:48:56: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:113:17: note: in expansion of macro 'INITERR' 113 | case -1 : INITERR(inname) | ^~~~~~~ uncmain.c:48:56: note: include '' or provide a declaration of 'strcat' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:113:17: note: in expansion of macro 'INITERR' 113 | case -1 : INITERR(inname) | ^~~~~~~ uncmain.c:50:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 50 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ uncmain.c:114:17: note: in expansion of macro 'ADDERR' 114 | ADDERR(": insufficient or invalid data") | ^~~~~~ uncmain.c:50:25: note: include '' or provide a declaration of 'strcat' 50 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ uncmain.c:114:17: note: in expansion of macro 'ADDERR' 114 | ADDERR(": insufficient or invalid data") | ^~~~~~ uncmain.c:52:54: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ uncmain.c:115:17: note: in expansion of macro 'ERROR' 115 | ERROR | ^~~~~ uncmain.c:52:54: note: include '' or provide a declaration of 'strlen' 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ uncmain.c:115:17: note: in expansion of macro 'ERROR' 115 | ERROR | ^~~~~ uncmain.c:53:28: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 53 | #define INITWARN(s) {(void)strcpy(fbuf, cmdname);\ | ^~~~~~ uncmain.c:116:17: note: in expansion of macro 'INITWARN' 116 | case 1 : INITWARN(inname) | ^~~~~~~~ uncmain.c:53:28: note: include '' or provide a declaration of 'strcpy' 53 | #define INITWARN(s) {(void)strcpy(fbuf, cmdname);\ | ^~~~~~ uncmain.c:116:17: note: in expansion of macro 'INITWARN' 116 | case 1 : INITWARN(inname) | ^~~~~~~~ uncmain.c:57:62: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 57 | #define WARN {(void)strcat(fbuf, "\n"); (void)write(2, fbuf, strlen(fbuf));} | ^~~~~~ uncmain.c:118:17: note: in expansion of macro 'WARN' 118 | WARN | ^~~~ uncmain.c:57:62: note: include '' or provide a declaration of 'strlen' 57 | #define WARN {(void)strcat(fbuf, "\n"); (void)write(2, fbuf, strlen(fbuf));} | ^~~~~~ uncmain.c:118:17: note: in expansion of macro 'WARN' 118 | WARN | ^~~~ uncmain.c: In function 'WriteBuf': uncmain.c:134:17: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 134 | t = s + strlen(s); | ^~~~~~ uncmain.c:134:17: note: include '' or provide a declaration of 'strlen' uncmain.c:48:27: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:139:25: note: in expansion of macro 'INITERR' 139 | INITERR(outname) | ^~~~~~~ uncmain.c:48:27: note: include '' or provide a declaration of 'strcpy' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:139:25: note: in expansion of macro 'INITERR' 139 | INITERR(outname) | ^~~~~~~ uncmain.c:48:56: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:139:25: note: in expansion of macro 'INITERR' 139 | INITERR(outname) | ^~~~~~~ uncmain.c:48:56: note: include '' or provide a declaration of 'strcat' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:139:25: note: in expansion of macro 'INITERR' 139 | INITERR(outname) | ^~~~~~~ uncmain.c:50:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 50 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ uncmain.c:140:25: note: in expansion of macro 'ADDERR' 140 | ADDERR(": ") | ^~~~~~ uncmain.c:50:25: note: include '' or provide a declaration of 'strcat' 50 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ uncmain.c:140:25: note: in expansion of macro 'ADDERR' 140 | ADDERR(": ") | ^~~~~~ uncmain.c: In function 'ReadBuf': uncmain.c:158:22: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 158 | while (len = read(infile, t, FACEBUFLEN - count)) | ^~~~ | fread uncmain.c:48:27: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:162:25: note: in expansion of macro 'INITERR' 162 | INITERR(inname) | ^~~~~~~ uncmain.c:48:27: note: include '' or provide a declaration of 'strcpy' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:162:25: note: in expansion of macro 'INITERR' 162 | INITERR(inname) | ^~~~~~~ uncmain.c:48:56: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:162:25: note: in expansion of macro 'INITERR' 162 | INITERR(inname) | ^~~~~~~ uncmain.c:48:56: note: include '' or provide a declaration of 'strcat' 48 | #define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\ | ^~~~~~ uncmain.c:162:25: note: in expansion of macro 'INITERR' 162 | INITERR(inname) | ^~~~~~~ uncmain.c:50:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 50 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ uncmain.c:163:25: note: in expansion of macro 'ADDERR' 163 | ADDERR(": ") | ^~~~~~ uncmain.c:50:25: note: include '' or provide a declaration of 'strcat' 50 | #define ADDERR(s) (void)strcat(fbuf, (s)); | ^~~~~~ uncmain.c:163:25: note: in expansion of macro 'ADDERR' 163 | ADDERR(": ") | ^~~~~~ uncmain.c:52:54: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ uncmain.c:165:25: note: in expansion of macro 'ERROR' 165 | ERROR | ^~~~~ uncmain.c:52:54: note: include '' or provide a declaration of 'strlen' 52 | (void)write(2, fbuf, strlen(fbuf)); exit(1);} | ^~~~~~ uncmain.c:165:25: note: in expansion of macro 'ERROR' 165 | ERROR | ^~~~~ uncmain.c:53:28: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 53 | #define INITWARN(s) {(void)strcpy(fbuf, cmdname);\ | ^~~~~~ uncmain.c:170:25: note: in expansion of macro 'INITWARN' 170 | INITWARN(inname) | ^~~~~~~~ uncmain.c:53:28: note: include '' or provide a declaration of 'strcpy' 53 | #define INITWARN(s) {(void)strcpy(fbuf, cmdname);\ | ^~~~~~ uncmain.c:170:25: note: in expansion of macro 'INITWARN' 170 | INITWARN(inname) | ^~~~~~~~ uncmain.c:54:47: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 54 | (void)strcat(fbuf, ": (warning) ");\ | ^~~~~~ uncmain.c:170:25: note: in expansion of macro 'INITWARN' 170 | INITWARN(inname) | ^~~~~~~~ uncmain.c:54:47: note: include '' or provide a declaration of 'strcat' 54 | (void)strcat(fbuf, ": (warning) ");\ | ^~~~~~ uncmain.c:170:25: note: in expansion of macro 'INITWARN' 170 | INITWARN(inname) | ^~~~~~~~ uncmain.c:56:26: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 56 | #define ADDWARN(s) (void)strcat(fbuf, (s)); | ^~~~~~ uncmain.c:171:25: note: in expansion of macro 'ADDWARN' 171 | ADDWARN(" exceeds internal buffer size. Data may be lost") | ^~~~~~~ uncmain.c:56:26: note: include '' or provide a declaration of 'strcat' 56 | #define ADDWARN(s) (void)strcat(fbuf, (s)); | ^~~~~~ uncmain.c:171:25: note: in expansion of macro 'ADDWARN' 171 | ADDWARN(" exceeds internal buffer size. Data may be lost") | ^~~~~~~ uncmain.c:57:62: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 57 | #define WARN {(void)strcat(fbuf, "\n"); (void)write(2, fbuf, strlen(fbuf));} | ^~~~~~ uncmain.c:172:25: note: in expansion of macro 'WARN' 172 | WARN | ^~~~ uncmain.c:57:62: note: include '' or provide a declaration of 'strlen' 57 | #define WARN {(void)strcat(fbuf, "\n"); (void)write(2, fbuf, strlen(fbuf));} | ^~~~~~ uncmain.c:172:25: note: in expansion of macro 'WARN' 172 | WARN | ^~~~ uncmain.c: In function 'strerrorwrap': uncmain.c:184:14: error: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] 184 | char *c = strerror(err); | ^~~~~~~~ | perror uncmain.c:184:14: error: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] make: *** [Makefile:101: uncmain.o] Error 1 gcc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRERROR=1 -DHAVE_CONFIG_H -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC compface.c In file included from compface.c:19: config.h:9:14: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 9 | extern char *malloc (); | ^~~~~~ config.h:7:1: note: 'malloc' is declared in header '' 6 | #include +++ |+#include 7 | #endif gcc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRERROR=1 -DHAVE_CONFIG_H -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC uncompface.c In file included from uncompface.c:18: config.h:9:14: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 9 | extern char *malloc (); | ^~~~~~ config.h:7:1: note: 'malloc' is declared in header '' 6 | #include +++ |+#include 7 | #endif gcc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRERROR=1 -DHAVE_CONFIG_H -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC gen.c In file included from gen.c:18: config.h:9:14: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 9 | extern char *malloc (); | ^~~~~~ config.h:7:1: note: 'malloc' is declared in header '' 6 | #include +++ |+#include 7 | #endif gcc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRERROR=1 -DHAVE_CONFIG_H -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC arith.c In file included from arith.c:17: config.h:9:14: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 9 | extern char *malloc (); | ^~~~~~ config.h:7:1: note: 'malloc' is declared in header '' 6 | #include +++ |+#include 7 | #endif gcc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRERROR=1 -DHAVE_CONFIG_H -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC compress.c In file included from compress.c:18: config.h:9:14: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 9 | extern char *malloc (); | ^~~~~~ config.h:7:1: note: 'malloc' is declared in header '' 6 | #include +++ |+#include 7 | #endif error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.CqbnrN (%build) RPM build warnings: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.CqbnrN (%build) I: [iurt_root_command] ERROR: chroot