Mock Version: 3.0 Mock Version: 3.0 Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/libotr.spec'], chrootPath='/var/lib/mock/dist-circle9-build-78901-24831/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/libotr.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1628467200 Wrote: /builddir/build/SRPMS/libotr-4.1.1-13.el9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/libotr.spec'], chrootPath='/var/lib/mock/dist-circle9-build-78901-24831/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/libotr.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1628467200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.AbZukR + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libotr-4.1.1 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/libotr-4.1.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libotr-4.1.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.woChRK + umask 022 + cd /builddir/build/BUILD + cd libotr-4.1.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2016-03-07 22:08:49.000000000 +0800 +++ ./configure 2022-07-05 20:47:45.219825648 +0800 @@ -1745,7 +1745,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2022-07-05 20:47:45.219825648 +0800 +++ ./configure 2022-07-05 20:47:45.399825783 +0800 @@ -13306,7 +13306,7 @@ compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' @@ -15690,7 +15690,7 @@ compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config/config.sub ++ basename ./config/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config/config.sub '/usr/lib/rpm/redhat/config.sub' -> './config/config.sub' '/usr/lib/rpm/redhat/config.guess' -> './config/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config/config.guess ++ basename ./config/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config/config.guess + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./config/ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh + ./configure --build=aarch64-redhat-linux-gnu --host=aarch64-redhat-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 --with-pic --disable-rpath --disable-static configure: WARNING: unrecognized options: --disable-rpath checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes /builddir/build/BUILD/libotr-4.1.1/config/missing: Unknown `--is-lightweight' option Try `/builddir/build/BUILD/libotr-4.1.1/config/missing --help' for more information configure: WARNING: 'missing' script is too old or missing checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for aarch64-redhat-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 we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... none checking build system type... aarch64-redhat-linux-gnu checking host system type... aarch64-redhat-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert aarch64-redhat-linux-gnu file names to aarch64-redhat-linux-gnu format... func_convert_file_noop checking how to convert aarch64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for aarch64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for aarch64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for aarch64-redhat-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for aarch64-redhat-linux-gnu-strip... no checking for strip... strip checking for aarch64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for aarch64-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes 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 for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for aarch64-redhat-linux-gnu-libgcrypt-config... no checking for libgcrypt-config... /usr/bin/libgcrypt-config checking for LIBGCRYPT - version >= 1.2.0... yes (1.10.0-unknown) checking LIBGCRYPT API version... okay checking for win32... no checking whether the compiler accepts -fstack-protector-all... yes checking whether the compiler accepts -Wstack-protector... yes checking whether the compiler accepts -fwrapv... yes checking whether the compiler accepts -fno-strict-overflow... yes checking whether the compiler accepts -Wall... yes checking whether the compiler accepts -Wextra -Wno-unused-parameter... yes checking whether the compiler accepts -Wformat-security... yes checking whether the compiler accepts --param ssp-buffer-size=1... yes checking whether the compiler accepts -fPIE... yes checking whether the linker accepts -pie... yes checking whether the linker accepts -z relro -z now... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating toolkit/Makefile config.status: creating tests/Makefile config.status: creating tests/utils/Makefile config.status: creating libotr.pc config.status: creating tests/utils/tap/Makefile config.status: creating tests/unit/Makefile config.status: creating tests/regression/Makefile config.status: creating tests/regression/client/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands configure: WARNING: unrecognized options: --disable-rpath checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating toolkit/Makefile config.status: creating tests/Makefile config.status: creating tests/utils/Makefile config.status: creating libotr.pc config.status: creating tests/utils/tap/Makefile config.status: creating tests/unit/Makefile config.status: creating tests/regression/Makefile config.status: creating tests/regression/client/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands configure: WARNING: unrecognized options: --disable-rpath + sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool + sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + make -j16 all make all-recursive make[1]: Entering directory '/builddir/build/BUILD/libotr-4.1.1' Making all in src make[2]: Entering directory '/builddir/build/BUILD/libotr-4.1.1/src' CC privkey.lo CC context.lo CC proto.lo CC b64.lo CC dh.lo CC mem.lo CC message.lo CC userstate.lo CC tlv.lo CC auth.lo CC sm.lo CC context_priv.lo CC instag.lo dh.c:43:18: warning: 'DH1536_MOD_LEN_BYTES' defined but not used [-Wunused-const-variable=] 43 | static const int DH1536_MOD_LEN_BYTES = 192; | ^~~~~~~~~~~~~~~~~~~~ CCLD libotr.la make[2]: Leaving directory '/builddir/build/BUILD/libotr-4.1.1/src' Making all in toolkit make[2]: Entering directory '/builddir/build/BUILD/libotr-4.1.1/toolkit' CC otr_parse.o CC readotr.o CC parse.o CC sha1hmac.o CC otr_sesskeys.o CC sesskeys.o CC otr_mackey.o CC aes.o CC otr_readforge.o CC ctrmode.o CC otr_modify.o CC otr_remac.o CCLD otr_parse CCLD otr_sesskeys CCLD otr_mackey CCLD otr_modify CCLD otr_remac CCLD otr_readforge make[2]: Leaving directory '/builddir/build/BUILD/libotr-4.1.1/toolkit' Making all in tests make[2]: Entering directory '/builddir/build/BUILD/libotr-4.1.1/tests' Making all in utils make[3]: Entering directory '/builddir/build/BUILD/libotr-4.1.1/tests/utils' Making all in tap make[4]: Entering directory '/builddir/build/BUILD/libotr-4.1.1/tests/utils/tap' CC tap.lo CCLD libtap.la make[4]: Leaving directory '/builddir/build/BUILD/libotr-4.1.1/tests/utils/tap' make[4]: Entering directory '/builddir/build/BUILD/libotr-4.1.1/tests/utils' make[4]: Nothing to be done for 'all-am'. make[4]: Leaving directory '/builddir/build/BUILD/libotr-4.1.1/tests/utils' make[3]: Leaving directory '/builddir/build/BUILD/libotr-4.1.1/tests/utils' Making all in unit make[3]: Entering directory '/builddir/build/BUILD/libotr-4.1.1/tests/unit' CC test_auth.o CC test_proto.o CC test_dh.o CC test_b64.o CC test_context.o CC test_userstate.o CC test_tlv.o CC test_mem.o CC test_sm.o CC test_instag.o CC test_privkey.o CCLD test_auth test_instag.c: In function 'main': test_instag.c:211:70: warning: '%s' directive output may be truncated writing 10 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 211 | (void) snprintf(instag_filepath, sizeof(instag_filepath), "%s%s", curdir, | ^~ 212 | "instag.txt"); | ~~~~~~~~~~~~ In file included from /usr/include/stdio.h:888, from /usr/include/gpg-error.h:64, from /usr/include/gcrypt.h:31, from test_instag.c:18: /usr/include/bits/stdio2.h:71:10: note: '__snprintf_chk' output between 11 and 4106 bytes into a destination of size 4096 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ CCLD test_b64 CCLD test_context CCLD test_userstate CCLD test_proto CCLD test_dh CCLD test_mem CCLD test_tlv CCLD test_instag CCLD test_sm CCLD test_privkey make[3]: Leaving directory '/builddir/build/BUILD/libotr-4.1.1/tests/unit' Making all in regression make[3]: Entering directory '/builddir/build/BUILD/libotr-4.1.1/tests/regression' Making all in client make[4]: Entering directory '/builddir/build/BUILD/libotr-4.1.1/tests/regression/client' CC client.o client.c: In function 'ops_inject_msg': client.c:151:15: warning: implicit declaration of function 'send' [-Wimplicit-function-declaration] 151 | ret = send(oinfo->sock, &msg, sizeof(msg), 0); | ^~~~ client.c: In function 'recv_otr_msg': client.c:553:15: warning: implicit declaration of function 'recv' [-Wimplicit-function-declaration] 553 | ret = recv(sock, &omsg, sizeof(omsg), 0); | ^~~~ client.c: In function 'alice_thread': client.c:624:23: warning: implicit declaration of function 'socket' [-Wimplicit-function-declaration] 624 | sock_to_bob = socket(PF_UNIX, SOCK_STREAM, 0); | ^~~~~~ client.c:624:30: error: 'PF_UNIX' undeclared (first use in this function) 624 | sock_to_bob = socket(PF_UNIX, SOCK_STREAM, 0); | ^~~~~~~ client.c:624:30: note: each undeclared identifier is reported only once for each function it appears in client.c:624:39: error: 'SOCK_STREAM' undeclared (first use in this function) 624 | sock_to_bob = socket(PF_UNIX, SOCK_STREAM, 0); | ^~~~~~~~~~~ client.c:638:15: warning: implicit declaration of function 'connect' [-Wimplicit-function-declaration] 638 | ret = connect(sock_to_bob, (struct sockaddr *) &bob_sun, | ^~~~~~~ client.c:725:57: warning: implicit declaration of function 'accept'; did you mean 'acct'? [-Wimplicit-function-declaration] 725 | sock_from_bob = accept(fd, (struct sockaddr *) &sun, | ^~~~~~ | acct client.c: In function 'bob_thread': client.c:776:32: error: 'PF_UNIX' undeclared (first use in this function) 776 | sock_to_alice = socket(PF_UNIX, SOCK_STREAM, 0); | ^~~~~~~ client.c:776:41: error: 'SOCK_STREAM' undeclared (first use in this function) 776 | sock_to_alice = socket(PF_UNIX, SOCK_STREAM, 0); | ^~~~~~~~~~~ client.c: In function 'create_unix_socket': client.c:979:28: error: 'PF_UNIX' undeclared (first use in this function) 979 | if ((sock = socket(PF_UNIX, SOCK_STREAM, 0)) < 0) { | ^~~~~~~ client.c:979:37: error: 'SOCK_STREAM' undeclared (first use in this function) 979 | if ((sock = socket(PF_UNIX, SOCK_STREAM, 0)) < 0) { | ^~~~~~~~~~~ client.c:986:27: error: 'AF_UNIX' undeclared (first use in this function) 986 | sun->sun_family = AF_UNIX; | ^~~~~~~ client.c:990:15: warning: implicit declaration of function 'bind' [-Wimplicit-function-declaration] 990 | ret = bind(sock, (struct sockaddr *) sun, sizeof(struct sockaddr_un)); | ^~~~ client.c:996:15: warning: implicit declaration of function 'listen' [-Wimplicit-function-declaration] 996 | ret = listen(sock, 10); | ^~~~~~ make[4]: Leaving directory '/builddir/build/BUILD/libotr-4.1.1/tests/regression/client' make[4]: *** [Makefile:356: client.o] Error 1 make[3]: Leaving directory '/builddir/build/BUILD/libotr-4.1.1/tests/regression' make[3]: *** [Makefile:345: all-recursive] Error 1 make[2]: *** [Makefile:348: all-recursive] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/libotr-4.1.1/tests' make[1]: *** [Makefile:476: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/libotr-4.1.1' make: *** [Makefile:363: all] Error 2 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.woChRK (%build) Bad exit status from /var/tmp/rpm-tmp.woChRK (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/libotr.spec