Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/sudo.spec'], chrootPath='/var/lib/mock/dist-an23-build-295289-65781/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/sudo.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 warning: %patchN is deprecated (26 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1673395200 Wrote: /builddir/build/SRPMS/sudo-1.8.29-10.an23.src.rpm RPM build warnings: %patchN is deprecated (26 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/sudo.spec'], chrootPath='/var/lib/mock/dist-an23-build-295289-65781/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/sudo.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 warning: %patchN is deprecated (26 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1673395200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.r65k8z + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sudo-1.8.29 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/sudo-1.8.29.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd sudo-1.8.29 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (sudo-1.6.7p5-strip.patch):' Patch #1 (sudo-1.6.7p5-strip.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .strip --fuzz=0 patching file install-sh Hunk #1 succeeded at 147 (offset 9 lines). + echo 'Patch #2 (sudo-1.8.23-sudoldapconfman.patch):' Patch #2 (sudo-1.8.23-sudoldapconfman.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .sudoldapconfman --fuzz=0 patching file doc/Makefile.in Hunk #1 succeeded at 289 (offset -56 lines). Hunk #2 succeeded at 313 (offset -56 lines). + echo 'Patch #3 (sudo-1.7.2p1-envdebug.patch):' Patch #3 (sudo-1.7.2p1-envdebug.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .env-debug --fuzz=0 patching file configure.ac Hunk #1 succeeded at 1427 (offset 37 lines). + echo 'Patch #4 (sudo-1.8.23-legacy-group-processing.patch):' Patch #4 (sudo-1.8.23-legacy-group-processing.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .legacy-processing --fuzz=0 patching file plugins/sudoers/cvtsudoers.c patching file plugins/sudoers/defaults.c patching file plugins/sudoers/def_data.c patching file plugins/sudoers/def_data.h patching file plugins/sudoers/def_data.in patching file plugins/sudoers/sudoers.c + echo 'Patch #5 (sudo-1.8.23-nowaitopt.patch):' Patch #5 (sudo-1.8.23-nowaitopt.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .nowait --fuzz=0 patching file plugins/sudoers/def_data.c patching file plugins/sudoers/def_data.h patching file plugins/sudoers/def_data.in patching file plugins/sudoers/sudoers.c + echo 'Patch #6 (sudo-1.8.6p7-logsudouser.patch):' Patch #6 (sudo-1.8.6p7-logsudouser.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .logsudouser --fuzz=0 patching file plugins/sudoers/logging.c Hunk #1 succeeded at 118 (offset 14 lines). Hunk #2 succeeded at 134 (offset 14 lines). Hunk #3 succeeded at 142 (offset 14 lines). Hunk #4 succeeded at 193 (offset 14 lines). Hunk #5 succeeded at 905 (offset 159 lines). patching file plugins/sudoers/sudoers.h Hunk #1 succeeded at 190 (offset 10 lines). Patch #7 (sudo-1.8.29-CVE-2019-19232.patch): + echo 'Patch #7 (sudo-1.8.29-CVE-2019-19232.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .CVE-2019-19232 --fuzz=0 patching file doc/sudoers.man.in patching file doc/sudoers.mdoc.in patching file plugins/sudoers/defaults.c patching file plugins/sudoers/def_data.c patching file plugins/sudoers/def_data.h patching file plugins/sudoers/def_data.in patching file plugins/sudoers/sudoers.c + echo 'Patch #8 (sudo-1.8.29-CVE-2019-19234.patch):' Patch #8 (sudo-1.8.29-CVE-2019-19234.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .target-shell --fuzz=0 patching file config.h.in patching file configure.ac patching file configure patching file doc/sudoers.man.in patching file doc/sudoers.mdoc.in patching file include/sudo_compat.h patching file lib/util/getusershell.c patching file lib/util/Makefile.in patching file MANIFEST patching file mkdep.pl patching file plugins/sudoers/check.c patching file plugins/sudoers/def_data.c patching file plugins/sudoers/def_data.h patching file plugins/sudoers/def_data.in patching file plugins/sudoers/sudoers.c patching file plugins/sudoers/sudoers.h + echo 'Patch #9 (sudo-1.8.29-CVE-2019-18634.patch):' Patch #9 (sudo-1.8.29-CVE-2019-18634.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .CVE-2019-18634 --fuzz=0 patching file src/tgetpass.c + echo 'Patch #10 (sudo-1.8.29-expired-password-part1.patch):' Patch #10 (sudo-1.8.29-expired-password-part1.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .expired1 --fuzz=0 patching file plugins/sudoers/check.c + echo 'Patch #11 (sudo-1.8.29-expired-password-part2.patch):' Patch #11 (sudo-1.8.29-expired-password-part2.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .expired2 --fuzz=0 patching file plugins/sudoers/check.c Patch #12 (sudo-1.8.31-CVE-2021-3156.patch): + echo 'Patch #12 (sudo-1.8.31-CVE-2021-3156.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .heap-buffer --fuzz=0 patching file plugins/sudoers/policy.c patching file plugins/sudoers/sudoers.c patching file plugins/sudoers/timestamp.c patching file src/parse_args.c + echo 'Patch #13 (sudo-1.9.5-CVE-2021-23239.patch):' Patch #13 (sudo-1.9.5-CVE-2021-23239.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .sudoedit-race --fuzz=0 patching file src/sudo_edit.c Hunk #1 succeeded at 569 (offset 28 lines). + echo 'Patch #14 (sudo-1.9.5-CVE-2021-23240-1.patch):' Patch #14 (sudo-1.9.5-CVE-2021-23240-1.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .symbolic-link-attack-1 --fuzz=0 patching file src/sudo_edit.c Hunk #2 succeeded at 688 (offset 38 lines). Hunk #3 succeeded at 791 (offset 38 lines). Hunk #4 succeeded at 1163 (offset 38 lines). Patch #15 (sudo-1.9.5-CVE-2021-23240-2.patch): + echo 'Patch #15 (sudo-1.9.5-CVE-2021-23240-2.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .symbolic-link-attack-2 --fuzz=0 patching file src/copy_file.c patching file src/Makefile.in patching file src/sesh.c patching file src/sudo_edit.c patching file src/sudo_exec.h + echo 'Patch #16 (sudo-1.9.5-CVE-2021-23240-3.patch):' Patch #16 (sudo-1.9.5-CVE-2021-23240-3.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .symbolic-link-attack-3 --fuzz=0 patching file src/exec_monitor.c patching file src/exec_nopty.c patching file src/selinux.c patching file src/sudo.c patching file src/sudo_edit.c patching file src/sudo_exec.h patching file src/sudo.h + echo 'Patch #17 (sudo-1.9.5-CVE-2021-23240-4.patch):' Patch #17 (sudo-1.9.5-CVE-2021-23240-4.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .symbolic-link-attack-4 --fuzz=0 patching file src/copy_file.c patching file src/sesh.c patching file src/sudo_edit.c patching file src/sudo_exec.h + echo 'Patch #18 (sudo-1.9.5-CVE-2021-23240-5.patch):' Patch #18 (sudo-1.9.5-CVE-2021-23240-5.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .symbolic-link-attack-5 --fuzz=0 patching file src/copy_file.c patching file src/sudo_edit.c + echo 'Patch #19 (sudo-1.9.5-sudoedit-selinux.patch):' Patch #19 (sudo-1.9.5-sudoedit-selinux.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .sudoedit-selinux --fuzz=0 patching file src/sudo_edit.c Patch #20 (sudo-1.9.7-sigchild.patch): + echo 'Patch #20 (sudo-1.9.7-sigchild.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .sigchild --fuzz=0 patching file src/signal.c Hunk #1 succeeded at 144 (offset 11 lines). + echo 'Patch #21 (sudo-1.9.7-krb5ccname.patch):' Patch #21 (sudo-1.9.7-krb5ccname.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .krb5ccname --fuzz=0 patching file plugins/sudoers/auth/pam.c Patch #22 (sudo-1.9.7-utmp-leak.patch): + echo 'Patch #22 (sudo-1.9.7-utmp-leak.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .utmp-leak --fuzz=0 patching file src/utmp.c Hunk #1 succeeded at 218 (offset 8 lines). + echo 'Patch #23 (sha-digest-calc.patch):' Patch #23 (sha-digest-calc.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .sha-digest --fuzz=0 patching file lib/util/sha2.c Hunk #1 succeeded at 499 (offset 9 lines). Patch #24 (sudo-1.9.12-CVE-2023-22809-whitelist.patch): + echo 'Patch #24 (sudo-1.9.12-CVE-2023-22809-whitelist.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .whitelist --fuzz=0 patching file plugins/sudoers/editor.c Patch #25 (sudo-1.9.12-CVE-2023-22809-backports.patch): + echo 'Patch #25 (sudo-1.9.12-CVE-2023-22809-backports.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .backports --fuzz=0 patching file plugins/sudoers/editor.c + echo 'Patch #26 (sudo-1.9.12-CVE-2023-22809.patch):' Patch #26 (sudo-1.9.12-CVE-2023-22809.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .cve --fuzz=0 patching file plugins/sudoers/editor.c patching file plugins/sudoers/sudoers.c patching file plugins/sudoers/visudo.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.STJxot + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 sudo-1.8.29 + rm -rf zlib/ + autoreconf -I m4 -fv --install autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal -I m4 --force autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: aclocal -I m4 --force autoreconf: running: /usr/bin/autoconf --include=m4 --force configure.ac:22: warning: The macro `AC_CONFIG_HEADER' is obsolete. configure.ac:22: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:22: the top level configure.ac:2355: warning: The macro `AC_PROG_CC_STDC' is obsolete. configure.ac:2355: You should run autoupdate. ./lib/autoconf/c.m4:1666: AC_PROG_CC_STDC is expanded from... configure.ac:2355: the top level configure.ac:3184: warning: The macro `AC_CONFIG_HEADER' is obsolete. configure.ac:3184: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:3184: the top level configure.ac:3783: warning: AC_CHECK_FUNCS($shadow_funcs): you should use literals ./lib/autoconf/functions.m4:117: AC_CHECK_FUNCS is expanded from... configure.ac:3783: the top level configure.ac:3938: warning: AC_CHECK_HEADERS($found): you should use literals ./lib/autoconf/headers.m4:217: AC_CHECK_HEADERS is expanded from... configure.ac:3938: the top level autoreconf: running: /usr/bin/autoheader --include=m4 --force autoreconf: configure.ac: not using Automake autoreconf: './config.sub' is updated autoreconf: './config.guess' is updated autoreconf: Leaving directory '.' + F_PIE=-fpie + export '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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fpie' 'LDFLAGS=-pie -Wl,-z,relro -Wl,-z,now' + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fpie' + LDFLAGS='-pie -Wl,-z,relro -Wl,-z,now' + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fpie' + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-pie -Wl,-z,relro -Wl,-z,now' + 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 2023-08-24 16:16:12.360181068 +0800 +++ ./configure 2023-08-24 16:16:13.070184759 +0800 @@ -2114,7 +2114,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 2023-08-24 16:16:13.070184759 +0800 +++ ./configure 2023-08-24 16:16:13.090184863 +0800 @@ -10112,7 +10112,7 @@ # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" @@ -28614,7 +28614,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_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 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"`' + '[' 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/anolis/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.sub ./config.sub '/usr/lib/rpm/anolis/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/anolis/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.guess ./config.guess '/usr/lib/rpm/anolis/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-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/anolis/anolis-hardened-ld"~' ./ltmain.sh ++ dirname ./configure + /usr/lib/rpm/anolis/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/anolis/fix-libtool-ltmain-from-overlinking Fixing libtool's ltmain.sh to prevent overlinking ++ dirname ./configure + /usr/lib/rpm/anolis/fix-libtool-from-moving-options-after-libs . Fixing libtool inside configure to pass -Wl,xxx options before libraries + /usr/lib/rpm/anolis/fix-dlsearch-path-in-libtool . lib64 + ./configure --build=aarch64-Anolis-linux --host=aarch64-Anolis-linux --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 --prefix=/usr --sbindir=/usr/sbin --libdir=/usr/lib64 --docdir=/usr/share/doc/sudo --disable-root-mailer --with-logging=syslog --with-logfac=authpriv --with-pam --with-pam-login --with-editor=/bin/vi --with-env-editor --with-ignore-dot --with-tty-tickets --with-ldap --with-ldap-conf-file=/etc/sudo-ldap.conf --with-selinux '--with-passprompt=[sudo] password for %p: ' --with-linux-audit --with-sssd configure: WARNING: unrecognized options: --disable-dependency-tracking configure: Configuring Sudo version 1.8.29 checking for aarch64-Anolis-linux-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 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 wchar.h... yes checking for minix/config.h... no checking for netgroup.h... no checking for paths.h... yes checking for spawn.h... yes checking for wordexp.h... yes checking for sys/sockio.h... no checking for sys/bsdtypes.h... no checking for sys/select.h... yes checking for sys/stropts.h... no checking for sys/sysmacros.h... yes checking for sys/syscall.h... yes checking for sys/statvfs.h... yes checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking whether to lecture users the first time they run sudo... yes checking whether sudo should log via syslog or to a file by default... syslog checking at which syslog priority to log commands... notice checking at which syslog priority to log failures... alert checking how long a line in the log file should be... 80 checking whether sudo should ignore '.' or '' in $PATH... yes checking whether to send mail when a user is not in sudoers... yes checking whether to send mail when user listed but not for this host... no checking whether to send mail when a user tries a disallowed command... no checking who should get the mail that sudo sends... root checking for bad password prompt... [sudo] password for %p: checking for bad password message... Sorry, try again. checking whether to expect fully qualified hosts in sudoers... no checking for umask programs should be run with... 0022 checking for default user to run commands as... root checking for editor that visudo should use... /bin/vi checking whether to obey EDITOR and VISUAL environment variables... yes checking number of tries a user gets to enter their password... 3 checking time in minutes after which sudo will ask for a password again... 5 checking time in minutes after the password prompt will time out... 5 checking whether to include insults... no checking whether to use sudoers from LDAP... yes checking whether to override the user's path... no checking whether to get ip addresses from the network interfaces... yes checking whether to use an askpass helper... no checking whether to do user authentication by default... yes checking whether to disable running the mailer as root... yes checking whether to disable shadow password support... no checking whether root should be allowed to use sudo... yes checking whether to log the hostname in the log file... no checking whether to invoke a shell if sudo is given no arguments... no checking whether to set $HOME to target user in shell mode... no checking whether to disable 'command not found' messages... no checking whether to enable environment debugging... no checking whether to enable environment resetting by default... yes checking for setkeycreatecon in -lselinux... yes checking for library containing strerror... none required checking how to run the C preprocessor... gcc -E checking for aarch64-Anolis-linux-ar... no checking for ar... ar checking for aarch64-Anolis-linux-ranlib... no checking for ranlib... ranlib checking build system type... aarch64-Anolis-linux-gnu checking host system type... aarch64-Anolis-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 how to convert aarch64-Anolis-linux-gnu file names to aarch64-Anolis-linux-gnu format... func_convert_file_noop checking how to convert aarch64-Anolis-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-Anolis-linux-file... no checking for file... file checking for aarch64-Anolis-linux-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for aarch64-Anolis-linux-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for aarch64-Anolis-linux-ar... ar checking for archiver @FILE support... @ checking for aarch64-Anolis-linux-strip... no checking for strip... strip checking for aarch64-Anolis-linux-ranlib... ranlib checking for gawk... gawk checking command to parse /usr/bin/nm -B output from gcc object... ./configure: line 10118: -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p': No such file or directory ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for aarch64-Anolis-linux-mt... no checking for mt... no checking if : is a manifest tool... no 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 for shl_load... no checking for shl_load in -ldld... no checking for dlopen... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... yes 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... yes checking path to sudo_noexec.so... /usr/libexec/sudo/sudo_noexec.so checking for uname... /usr/bin/uname checking for tr... /usr/bin/tr checking for mandoc... mandoc checking for nroff... /usr/bin/nroff checking which macro set to use for manual pages... mdoc checking whether SECCOMP_SET_MODE_FILTER is declared... yes checking for linux/random.h... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for working volatile... yes checking for variadic macro support in cpp... yes checking for gawk... (cached) gawk checking for bison... bison -y checking for flex... /usr/bin/flex checking for mv... /usr/bin/mv checking for sh... /usr/bin/sh checking for sendmail... /usr/sbin/sendmail checking for vi... no checking which syslog facility sudo should log with... authpriv checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for _Bool... yes checking for stdbool.h that conforms to C99... yes checking for sys/mkdev.h... no checking for sys/sysmacros.h... (cached) yes checking for utmps.h... no checking for utmpx.h... yes checking for endian.h... yes checking for procfs.h... no checking for sys/procfs.h... yes checking for struct psinfo.pr_ttydev... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking POSIX termios... yes checking for mode_t... yes checking for uid_t in sys/types.h... yes checking for clockid_t... yes checking for sig_atomic_t... yes checking for struct in6_addr... yes checking for unsigned long long int... yes checking for long long int... yes checking for intmax_t... yes checking for uintmax_t... yes checking for uint8_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for socklen_t... yes checking for rsize_t... no checking for errno_t... no checking max length of uid_t... 10 checking for struct sockaddr.sa_len... no checking for struct sockaddr_in.sin_len... no checking size of id_t... 4 checking size of long long... 8 checking size of time_t... 8 checking for struct utmpx.ut_id... yes checking for struct utmpx.ut_pid... yes checking for struct utmpx.ut_tv... yes checking for struct utmpx.ut_type... yes checking for struct utmpx.ut_exit.__e_termination... no checking for struct utmpx.ut_exit.e_termination... yes checking type of array argument to getgroups... gid_t checking for size_t... yes checking for getgroups... yes checking for working getgroups... yes checking for fexecve... yes checking for killpg... yes checking for nl_langinfo... yes checking for pread... yes checking for pwrite... yes checking for openat... yes checking for faccessat... yes checking for wordexp... yes checking for getauxval... yes checking for seteuid... yes checking for getgrouplist... yes checking for getdelim... yes checking for getusershell... yes checking for reallocarray... yes