Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/mailx.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-30696-1191/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 --noclean --target aarch64 --nodeps /builddir/build/SPECS/mailx.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 Wrote: /builddir/build/SRPMS/mailx-12.5-3.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/mailx.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-30696-1191/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 --noclean --target aarch64 --nodeps /builddir/build/SPECS/mailx.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.O8bdat + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mailx-12.5 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/mailx-12.5.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd mailx-12.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/mailx-12.5-outof-Introduce-expandaddr-flag.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/mailx-12.5-fio.c-Unconditionally-require-wordexp-support.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/mailx-12.5-globname-Invoke-wordexp-with-WRDE_NOCMD-CVE-2004-277.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/mailx-12.5-unpack-Disable-option-processing-for-email-addresses.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/work-round-openssl-build-error.patch + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.UoVFaE + umask 022 + cd /builddir/build/BUILD + 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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -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/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd mailx-12.5 + /usr/bin/make -O -j32 V=1 VERBOSE=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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64' IPv6=-DHAVE_IPv6_FUNCS SENDMAIL=/usr/sbin/sendmail MAILSPOOL=/var/mail MAILRC=/etc/mail.rc PREFIX=/usr SYSCONFDIR=/etc /bin/sh ./makeconfig checking if a hello world program can be built ... okay checking for ... okay checking for alloca() ... okay checking for ssize_t ... okay checking for snprintf() ... okay checking for fchdir() ... okay checking for mmap() ... okay checking for mremap() ... okay checking for iconv functionality ... okay checking for wctype functionality ... okay checking for wcwidth() ... okay checking for mbtowc() ... okay checking for setlocale() ... okay checking for nl_langinfo() ... okay checking for mkstemp() ... okay checking for fpathconf() ... okay checking for wordexp() ... okay checking for ... okay checking for socket functionality in libc ... okay checking for Network Security Services (NSS) ... no checking for sufficiently recent OpenSSL ... okay checking for STACK_OF() ... okay checking for GSSAPI in libgss ... no checking for GSSAPI in libgssapi_krb5 ... no checking for GSSAPI in libgssapi_krb5, old-style ... no checking for GSSAPI in libgssapi ... no The following optional features are enabled: + Locale support: Printable characters depend on the environment + Multibyte character support + Character set conversion using iconv() + Automatic detection of terminal character set + Networking support (IMAP, POP3, and SMTP) + S/MIME and SSL/TLS using Network Security Services (NSS) + S/MIME and SSL/TLS using OpenSSL The following optional features are disabled: - IMAP GSSAPI authentication Remarks: /bin/sh ./makeconfig checking if a hello world program can be built ... okay checking for ... okay checking for alloca() ... okay checking for ssize_t ... okay checking for snprintf() ... okay checking for fchdir() ... okay checking for mmap() ... okay checking for mremap() ... okay checking for iconv functionality ... okay checking for wctype functionality ... okay checking for wcwidth() ... okay checking for mbtowc() ... okay checking for setlocale() ... okay checking for nl_langinfo() ... okay checking for mkstemp() ... okay checking for fpathconf() ... okay checking for wordexp() ... okay checking for ... okay checking for socket functionality in libc ... okay checking for Network Security Services (NSS) ... no checking for sufficiently recent OpenSSL ... okay checking for STACK_OF() ... okay checking for GSSAPI in libgss ... no checking for GSSAPI in libgssapi_krb5 ... no checking for GSSAPI in libgssapi_krb5, old-style ... no checking for GSSAPI in libgssapi ... no The following optional features are enabled: + Locale support: Printable characters depend on the environment + Multibyte character support + Character set conversion using iconv() + Automatic detection of terminal character set + Networking support (IMAP, POP3, and SMTP) + S/MIME and SSL/TLS using Network Security Services (NSS) + S/MIME and SSL/TLS using OpenSSL The following optional features are disabled: - IMAP GSSAPI authentication Remarks: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c base64.c In file included from rcv.h:48, from base64.c:36: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c cmdtab.c In file included from rcv.h:48, from cmdtab.c:45: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c aux.c In file included from rcv.h:48, from aux.c:45: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | In file included from cache.c:45: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | In file included from rcv.h:48, from cache.c:49: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | cache.c: In function 'putcache': cache.c:313:17: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 313 | ftruncate(fileno(obuf), 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cache.c: In function 'dequeue1': cache.c:797:25: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 797 | ftruncate(fileno(fp), 0); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from rcv.h:48, from cmd1.c:45: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | In file included from rcv.h:65: cmd1.c: In function 'headers': def.h:409:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 409 | dot==(mp) && (mp)->m_flag&MKILL) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ cmd1.c:107:29: note: in expansion of macro 'visible' 107 | if (visible(mp)) { | ^~~~~~~ cmd1.c:114:41: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 114 | if (n>0 && mp==&message[n-1] || | ~~~~^~~~~~~~~~~~~~~~~~~~ cmd1.c:116:68: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 116 | n==-2 && g==k+size && lastmq || | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ cmd1.c:117:61: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 117 | n<0 && g>=k && mp->m_flag&fl) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ cmd1.c:121:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 121 | if (lastmq && (n==-2 || n==-1 && mp==&message[msgCount])) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ def.h:409:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 409 | dot==(mp) && (mp)->m_flag&MKILL) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ cmd1.c:130:37: note: in expansion of macro 'visible' 130 | if (visible(mq)) { | ^~~~~~~ def.h:409:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 409 | dot==(mp) && (mp)->m_flag&MKILL) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ cmd1.c:139:30: note: in expansion of macro 'visible' 139 | if (!visible(mp)) | ^~~~~~~ def.h:409:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 409 | dot==(mp) && (mp)->m_flag&MKILL) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ cmd1.c:149:29: note: in expansion of macro 'visible' 149 | if (visible(mp) && (mp->m_collapsed <= 0 || | ^~~~~~~ cmd1.c:157:41: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 157 | if (n>0 && mp==&message[n-1] || | ~~~~^~~~~~~~~~~~~~~~~~~~ cmd1.c:159:68: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 159 | n==-2 && g==k+size && lastmq || | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ cmd1.c:160:61: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 160 | n<0 && g>=k && mp->m_flag&fl) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ cmd1.c:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 164 | if (lastmq && (n==-2 || n==-1 && mp==&message[msgCount])) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ def.h:409:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 409 | dot==(mp) && (mp)->m_flag&MKILL) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ cmd1.c:172:37: note: in expansion of macro 'visible' 172 | if (visible(mq) && mq->m_collapsed <= 0) { | ^~~~~~~ def.h:409:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 409 | dot==(mp) && (mp)->m_flag&MKILL) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ cmd1.c:178:29: note: in expansion of macro 'visible' 178 | if (visible(mp) && (mp->m_collapsed <= 0 || | ^~~~~~~ In file included from rcv.h:48, from cmd2.c:45: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c cache.c gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c cmd1.c gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c cmd2.c gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c fio.c In file included from rcv.h:48, from fio.c:45: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | fio.c:59:10: fatal error: ssl.h: No such file or directory 59 | #include | ^~~~~~~ compilation terminated. make: *** [Makefile:80: fio.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c getname.c In file included from rcv.h:48, from getname.c:45: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c getopt.c In file included from getopt.c:9: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c dotlock.c In file included from rcv.h:48, from dotlock.c:41: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | dotlock.c: In function 'create_exclusive': dotlock.c:143:17: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] 143 | setgid(realgid); | ^~~~~~~~~~~~~~~ dotlock.c:146:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 146 | write(fd, apid, strlen(apid)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dotlock.c:160:9: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] 160 | setgid(realgid); | ^~~~~~~~~~~~~~~ dotlock.c:174:9: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] 174 | setgid(realgid); | ^~~~~~~~~~~~~~~ dotlock.c: In function 'dot_unlock': dotlock.c:277:9: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] 277 | setgid(realgid); | ^~~~~~~~~~~~~~~ gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c hmac.c In file included from rcv.h:48, from hmac.c:35: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c edit.c In file included from rcv.h:48, from edit.c:45: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c cmd3.c In file included from rcv.h:48, from cmd3.c:47: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | cmd3.c: In function 'cfile': cmd3.c:838:9: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] 838 | strncpy(mboxname, expand("&"), sizeof mboxname)[sizeof mboxname-1]='\0'; | ^ cmd3.c: In function 'account': cmd3.c:1347:9: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] 1347 | strncpy(mboxname, expand("&"), sizeof mboxname)[sizeof mboxname-1]='\0'; | ^ gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c imap_search.c In file included from imap_search.c:45: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | In file included from rcv.h:48, from imap_search.c:47: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c head.c In file included from rcv.h:48, from head.c:45: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c collect.c In file included from rcv.h:48, from collect.c:52: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | collect.c: In function 'read_attachment_data': collect.c:281:62: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 281 | (cp = value("sendcharsets")) != NULL && | ^ collect.c: In function 'collect': collect.c:650:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 650 | if (linebuf[0] != escape || (value("interactive") == NULL && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 651 | tildeflag == 0 || | ~~~~~~~~~~~~~~ gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DMAILRC='"/etc/mail.rc"' -DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/sbin/sendmail"' -DHAVE_IPv6_FUNCS -c imap.c RPM build errors: In file included from imap.c:45: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | In file included from rcv.h:48, from imap.c:53: config.h:84:1: warning: "/*" within comment [-Wcomment] 84 | /* #define USE_SSL | imap.c: In function 'imap_update': imap.c:1871:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 1871 | !edit && (!(m->m_flag&(MBOXED|MSAVED|MDELETED)) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1872 | || (m->m_flag & | ~~~~~~~~~~~~~~~ 1873 | (MBOXED|MPRESERVE|MTOUCH)) == | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1874 | (MPRESERVE|MTOUCH)) || | ~~~~~~~~~~~~~~~~~~~ imap.c:1875:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 1875 | edit && !(m->m_flag & MDELETED)) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ imap.c: In function 'imap_appenduid': imap.c:2782:25: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 2782 | xm.m_flag = flag&MREAD | MNEW; | ~~~~^~~~~~ imap.c: In function 'imap_dequeue': imap.c:3184:9: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 3184 | ftruncate(fileno(fp), 0); | ^~~~~~~~~~~~~~~~~~~~~~~~ imap.c: In function 'imap_make_date_time': imap.c:3555:62: warning: '%+03d' directive output may be truncated writing between 3 and 7 bytes into a region of size between 4 and 11 [-Wformat-truncation=] 3555 | snprintf(s, sizeof s, "\"%02d-%s-%04d %02d:%02d:%02d %+03d%02d\"", | ^~~~~ imap.c:3555:31: note: directive argument in the range [-596523, 596524] 3555 | snprintf(s, sizeof s, "\"%02d-%s-%04d %02d:%02d:%02d %+03d%02d\"", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap.c:3555:31: note: directive argument in the range [-59, 59] In file included from /usr/include/stdio.h:906, from rcv.h:51: In function 'snprintf', inlined from 'imap_make_date_time' at imap.c:3555:2: /usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output 26 or more bytes (assuming 38) into a destination of size 30 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ error: Bad exit status from /var/tmp/rpm-tmp.UoVFaE (%build) Bad exit status from /var/tmp/rpm-tmp.UoVFaE (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/mailx.spec\n', 1)] 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 597, 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 --noclean --target aarch64 --nodeps /builddir/build/SPECS/mailx.spec