D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 warning: /home/pterjan/rpmbuild/SPECS/unrtf.spec line 20: autopatch: no matching patches in range sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/unrtf-0.21.10-3.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.qblxKh sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.IlUIIO + umask 022 + cd /home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build + rm -rf unrtf-0.21.10 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/unrtf-0.21.10.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd unrtf-0.21.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i -e s#/usr/local/lib/unrtf/#/usr/share/unrtf/# src/main.h + sed -i -e s#/usr/local/lib/unrtf/#/usr/share/unrtf/# src/path.h + sed -i -e s#/usr/local/lib/unrtf/#/usr/share/unrtf/# src/my_iconv.h + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.JSg5hQ + umask 022 + cd /home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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 -Cstrip=none --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 -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd unrtf-0.21.10 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + autoreconf -fi configure.ac:8: warning: The macro 'AC_CONFIG_HEADER' is obsolete. configure.ac:8: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:8: the top level configure.ac:32: warning: The macro 'AC_HEADER_STDC' is obsolete. configure.ac:32: You should run autoupdate. ./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from... configure.ac:32: the top level + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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 -Cstrip=none --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 -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + 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 + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config/config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./config/config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./config/config.guess + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config/config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./config/config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./config/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 for a BSD-compatible install... /usr/bin/install -c checking whether sleep supports fractional seconds... yes checking filesystem timestamp resolution... 0.01 checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking xargs -n works... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for x86_64-mageia-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for stdlib.h... (cached) yes checking for stdio.h... (cached) yes checking for ctype.h... yes checking for string.h... (cached) yes checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking for GNU libc compatible malloc... yes checking for memset... yes checking for strchr... yes checking for strstr... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating outputs/Makefile config.status: creating patches/Makefile config.status: creating src/Makefile config.status: creating tests/Makefile config.status: creating config.h config.status: executing depfiles commands + /usr/bin/make -O -j48 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in src make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/share/unrtf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o malloc.o malloc.c malloc.c:168:7: error: conflicting types for 'malloc'; have 'void *(void)' 168 | void *malloc(); | ^~~~~~ In file included from malloc.c:50: /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__ | ^~~~~~ malloc.c: In function 'rpl_malloc': malloc.c:180:16: error: too many arguments to function 'malloc'; expected 0, have 1 180 | return malloc(n); | ^~~~~~ ~ malloc.c:168:7: note: declared here 168 | void *malloc(); | ^~~~~~ make[2]: *** [Makefile:406: malloc.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/share/unrtf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o error.o error.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/share/unrtf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o hash.o hash.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/share/unrtf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o util.o util.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/share/unrtf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o unicode.o unicode.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/share/unrtf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o path.o path.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/share/unrtf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o my_iconv.o my_iconv.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/share/unrtf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o main.o main.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/share/unrtf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o word.o word.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/share/unrtf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o parse.o parse.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/share/unrtf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o output.o output.c output.c: In function 'op_translate_char': output.c:195:24: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 195 | result = get_alias(op, unicode); /* Try for ie, entity */ | ^ output.c: In function 'op_translate_buffer': output.c:290:33: warning: passing argument 1 of 'my_free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 290 | my_free(result); | ^~~~~~ In file included from output.c:65: malloc.h:36:21: note: expected 'char *' but argument is of type 'const char *' 36 | extern void my_free(char *); | ^~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/share/unrtf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o attr.o attr.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/share/unrtf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o user.o user.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/share/unrtf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o convert.o convert.c convert.c: In function 'cmd_field': convert.c:1522:81: warning: passing argument 1 of 'my_free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1522 | my_free(string); | ^~~~~~ In file included from convert.c:115: malloc.h:36:21: note: expected 'char *' but argument is of type 'const char *' 36 | extern void my_free(char *); | ^~~~~~ convert.c: In function 'print_with_special_exprs': convert.c:3795:41: warning: passing argument 1 of 'my_free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 3795 | my_free(post_trans); | ^~~~~~~~~~ malloc.h:36:21: note: expected 'char *' but argument is of type 'const char *' 36 | extern void my_free(char *); | ^~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/unrtf-0.21.10-build/unrtf-0.21.10/src' make[1]: *** [Makefile:382: all-recursive] Error 1 make: *** [Makefile:323: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.JSg5hQ (%build) RPM build warnings: /home/pterjan/rpmbuild/SPECS/unrtf.spec line 20: autopatch: no matching patches in range RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.JSg5hQ (%build) I: [iurt_root_command] ERROR: chroot