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/asterisk.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-173140-79855/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/asterisk.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 (4 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/asterisk-18.12.1-2.oc9.src.rpm RPM build warnings: %patchN is deprecated (4 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/asterisk.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-173140-79855/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/asterisk.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 (4 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.QFaUUq + umask 022 + cd /builddir/build/BUILD + rpm -q libgcrypt libgcrypt-1.10.2-6.oc9.aarch64 + gpgv2 --keyring /builddir/build/SOURCES/asterisk-gpgkeys.gpg /builddir/build/SOURCES/asterisk-18.12.1.tar.gz.asc /builddir/build/SOURCES/asterisk-18.12.1.tar.gz gpgv: can't allocate lock for '/builddir/build/SOURCES/asterisk-gpgkeys.gpg' gpgv: Signature made Thu May 19 23:52:44 2022 CST gpgv: using RSA key 5D984BE337191CE7 gpgv: Good signature from "Asterisk Development Team " + cd /builddir/build/BUILD + rm -rf asterisk-18.12.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/asterisk-18.12.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd asterisk-18.12.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mkdir cache + cp /builddir/build/SOURCES/pjproject-2.12.tar.bz2 cache/ + echo '*************************************************************************' ************************************************************************* + ls -altr cache/ total 7896 -rw-r--r-- 1 mockbuild mock 8074708 Jul 1 11:59 pjproject-2.12.tar.bz2 drwxr-xr-x 32 mockbuild mock 4096 Jul 1 11:59 .. drwxr-xr-x 2 mockbuild mock 4096 Jul 1 11:59 . /builddir/build/BUILD/asterisk-18.12.1 ************************************************************************* Patch #0 (asterisk-mariadb.patch): + pwd + echo '*************************************************************************' + echo 'Patch #0 (asterisk-mariadb.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file addons/cdr_mysql.c Hunk #1 succeeded at 45 (offset 2 lines). Hunk #2 succeeded at 651 (offset 149 lines). patching file addons/res_config_mysql.c + echo 'Patch #1 (asterisk-16.1.0-explicit-python3.patch):' Patch #1 (asterisk-16.1.0-explicit-python3.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file build_tools/get_documentation.py patching file build_tools/post_process_documentation.py patching file contrib/scripts/refcounter.py patching file contrib/scripts/reflocks.py patching file contrib/scripts/refstats.py patching file contrib/scripts/sip_to_pjsip/sip_to_pjsip.py patching file contrib/scripts/sip_to_pjsip/sip_to_pjsql.py patching file contrib/scripts/spandspflow2pcap.py patching file contrib/scripts/voicemailpwcheck.py patching file rest-api-templates/make_ari_stubs.py patching file contrib/scripts/ast_coredumper Hunk #1 succeeded at 375 (offset 4 lines). + echo 'Patch #2 (asterisk-18.4.0-astmm_ignore_for_console_board.patch):' Patch #2 (asterisk-18.4.0-astmm_ignore_for_console_board.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file channels/console_board.c Patch #3 (asterisk-18.12.1-ilbc_macros.patch): + echo 'Patch #3 (asterisk-18.12.1-ilbc_macros.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file codecs/codec_ilbc.c + cp /builddir/build/SOURCES/menuselect.makedeps menuselect.makedeps + cp /builddir/build/SOURCES/menuselect.makeopts menuselect.makeopts + /usr/bin/perl -pi -e 's/^all:.*$/all:/' sounds/Makefile + /usr/bin/perl -pi -e 's/^install:.*$/install:/' sounds/Makefile + mv main/fskmodem.c main/fskmodem.c.old + iconv -f iso-8859-1 -t utf-8 -o main/fskmodem.c main/fskmodem.c.old + touch -r main/fskmodem.c.old main/fskmodem.c + rm main/fskmodem.c.old + chmod -x contrib/scripts/dbsep.cgi + /usr/bin/perl -pi -e 's/^MENUSELECT_CHANNELS=(.*)$/MENUSELECT_CHANNELS=\1 chan_misdn/g' menuselect.makeopts + /usr/bin/perl -pi -e 's/^MENUSELECT_APPS=(.*)$/MENUSELECT_APPS=\1 app_ices/g' menuselect.makeopts + /usr/bin/perl -pi -e 's/^MENUSELECT_APPS=(.*)$/MENUSELECT_APPS=\1 app_jack/g' menuselect.makeopts + /usr/bin/perl -pi -e 's/^MENUSELECT_RES=(.*)$/MENUSELECT_RES=\1 res_xmpp/g' menuselect.makeopts + /usr/bin/perl -pi -e 's/^MENUSELECT_CHANNELS=(.*)$/MENUSELECT_CHANNELS=\1 chan_motif/g' menuselect.makeopts + /usr/bin/perl -pi -e 's/^MENUSELECT_APPS=(.*)$/MENUSELECT_APPS=\1 app_meetme/g' menuselect.makeopts + /usr/bin/perl -pi -e 's/^MENUSELECT_ADDONS=(.*)$/MENUSELECT_ADDONS=\1 chan_ooh323/g' menuselect.makeopts + /usr/bin/perl -pi -e 's/^MENUSELECT_APPS=(.*)$/MENUSELECT_APPS=\1 app_voicemail_imap/g' menuselect.makeopts + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.wUUGk5 + 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 -Werror-implicit-function-declaration -DLUA_COMPAT_MODULE -fPIC' + 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 -Werror-implicit-function-declaration -DLUA_COMPAT_MODULE -fPIC' + 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 -Werror-implicit-function-declaration -DLUA_COMPAT_MODULE -fPIC -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 -Werror-implicit-function-declaration -DLUA_COMPAT_MODULE -fPIC -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 asterisk-18.12.1 + 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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -Werror-implicit-function-declaration -DLUA_COMPAT_MODULE -fPIC' + 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 -Werror-implicit-function-declaration -DLUA_COMPAT_MODULE -fPIC' + export '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 -Werror-implicit-function-declaration -DLUA_COMPAT_MODULE -fPIC' + 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 -Werror-implicit-function-declaration -DLUA_COMPAT_MODULE -fPIC' + export '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 -Werror-implicit-function-declaration -DLUA_COMPAT_MODULE -fPIC' + 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 -Werror-implicit-function-declaration -DLUA_COMPAT_MODULE -fPIC' + export 'LDFLAGS=-Wl,--as-needed,--library-path=/usr/lib64 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + LDFLAGS='-Wl,--as-needed,--library-path=/usr/lib64 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export 'ASTCFLAGS= ' + ASTCFLAGS=' ' + sed -i '1s/env python/python3/' contrib/scripts/refcounter.py + ./bootstrap.sh Generating the configure script for Asterisk ... configure.ac:27: warning: The macro `AC_CONFIG_HEADER' is obsolete. configure.ac:27: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:27: the top level configure.ac:389: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... autoconf/ax_pthread.m4:88: AX_PTHREAD is expanded from... configure.ac:389: the top level configure.ac:818: warning: The macro `AC_HEADER_TIME' is obsolete. configure.ac:818: You should run autoupdate. ./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from... configure.ac:818: the top level Generating the configure script for menuselect ... configure.ac:13: warning: The macro `AC_CONFIG_HEADER' is obsolete. configure.ac:13: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:13: the top level + pushd menuselect ~/build/BUILD/asterisk-18.12.1/menuselect ~/build/BUILD/asterisk-18.12.1 + '[' '-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 2025-07-01 11:59:06.733001776 +0800 +++ ./configure 2025-07-01 11:59:07.189004033 +0800 @@ -1750,7 +1750,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 + mv ./configure.backup ./configure + '[' 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.guess + '[' -f /usr/lib/rpm/OpenCloudOS/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.guess ./config.guess '/usr/lib/rpm/OpenCloudOS/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/OpenCloudOS/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.sub ./config.sub '/usr/lib/rpm/OpenCloudOS/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=aarch64-opencloudos-linux-gnu --host=aarch64-opencloudos-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 configure: WARNING: unrecognized options: --disable-dependency-tracking checking build system type... aarch64-opencloudos-linux-gnu checking host system type... aarch64-opencloudos-linux-gnu checking for aarch64-opencloudos-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 for GNU make... make checking for aarch64-opencloudos-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes 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 size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for asprintf... yes checking for getloadavg... yes checking for setenv... yes checking for strcasestr... yes checking for strndup... yes checking for strnlen... yes checking for strsep... yes checking for unsetenv... yes checking for vasprintf... yes checking for newtBell in -lnewt... yes checking for newt.h... yes checking for initscr in -lncurses... yes checking for ncurses.h... yes checking for keypad in -ltinfo... yes checking for ncurses.h... (cached) yes checking for libxml-2.0... yes ./configure: line 5027: -e: command not found checking for a sed that does not truncate output... /usr/bin/sed checking for gtk+-2.0... yes configure: creating ./config.status config.status: creating makeopts config.status: creating autoconfig.h configure: WARNING: unrecognized options: --disable-dependency-tracking configure: Menuselect build configuration successfully completed + popd ~/build/BUILD/asterisk-18.12.1 + '[' '-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' ./menuselect/configure + diff -u ./menuselect/configure.backup ./menuselect/configure + mv ./menuselect/configure.backup ./menuselect/configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./menuselect/configure + diff -u ./menuselect/configure.backup ./menuselect/configure + mv ./menuselect/configure.backup ./menuselect/configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./menuselect/configure + diff -u ./menuselect/configure.backup ./menuselect/configure + mv ./menuselect/configure.backup ./menuselect/configure + /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' ./menuselect/configure + diff -u ./menuselect/configure.backup ./menuselect/configure + mv ./menuselect/configure.backup ./menuselect/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'\''"#' ./menuselect/configure + diff -u ./menuselect/configure.backup ./menuselect/configure + mv ./menuselect/configure.backup ./menuselect/configure + 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 2025-07-01 11:59:02.528980968 +0800 +++ ./configure 2025-07-01 11:59:09.193013951 +0800 @@ -2682,7 +2682,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 + mv ./configure.backup ./configure + '[' 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 ./menuselect/config.guess + '[' -f /usr/lib/rpm/OpenCloudOS/config.guess ']' + /usr/bin/rm -f ./menuselect/config.guess ++ basename ./menuselect/config.guess + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.guess ./menuselect/config.guess '/usr/lib/rpm/OpenCloudOS/config.guess' -> './menuselect/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./menuselect/config.sub + '[' -f /usr/lib/rpm/OpenCloudOS/config.sub ']' + /usr/bin/rm -f ./menuselect/config.sub ++ basename ./menuselect/config.sub + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.sub ./menuselect/config.sub '/usr/lib/rpm/OpenCloudOS/config.sub' -> './menuselect/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/OpenCloudOS/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.guess ./config.guess '/usr/lib/rpm/OpenCloudOS/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/OpenCloudOS/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.sub ./config.sub '/usr/lib/rpm/OpenCloudOS/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=aarch64-opencloudos-linux-gnu --host=aarch64-opencloudos-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 --without-imap --with-gsm=/usr --with-ilbc=/usr --with-libedit=yes --with-srtp --with-pjproject-bundled --with-externals-cache=/builddir/build/BUILD/asterisk-18.12.1/cache 'LDFLAGS=-Wl,--as-needed,--library-path=/usr/lib64 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' NOISY_BUILD=1 CPPFLAGS=-fPIC configure: WARNING: unrecognized options: --disable-dependency-tracking checking build system type... aarch64-opencloudos-linux-gnu checking host system type... aarch64-opencloudos-linux-gnu checking for aarch64-opencloudos-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 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 sys/time.h... yes checking for sys/param.h... yes checking for sys/select.h... yes checking for sys/socket.h... yes checking for utime.h... yes checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking whether char is unsigned... yes checking for aarch64-opencloudos-linux-gnu-uname... no checking for uname... /usr/bin/uname checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking how to run the C preprocessor... gcc -E checking how to run the C++ preprocessor... g++ -E checking for a sed that does not truncate output... /usr/bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for gawk... gawk checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for aarch64-opencloudos-linux-gnu-ranlib... no checking for ranlib... ranlib checking for GNU make... make checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for aarch64-opencloudos-linux-gnu-strip... no checking for aarch64-opencloudos-linux-gnu-gstrip... no checking for strip... strip checking for aarch64-opencloudos-linux-gnu-ar... no checking for aarch64-opencloudos-linux-gnu-gar... no checking for ar... ar checking for bison... : checking for cmp... /usr/bin/cmp checking for cat... /usr/bin/cat checking for cut... /usr/bin/cut checking for flex... : checking for grep... (cached) /usr/bin/grep checking for python2.7... no checking for python2... no checking for python... no checking for python3... /usr/bin/python3 checking for find... /usr/bin/find checking for basename... /usr/bin/basename checking for dirname... /usr/bin/dirname checking for sh... /bin/sh checking for ln... /usr/bin/ln checking for doxygen... /usr/bin/doxygen checking for dot... /usr/bin/dot checking for wget... : checking for curl... /usr/bin/curl checking for xmllint... /usr/bin/xmllint checking for xmlstarlet... no checking for xml... no checking for bash... /bin/sh checking for git... : checking for alembic... : checking for bzip2... /usr/bin/bzip2 checking for tar... /usr/bin/tar checking for patch... /usr/bin/patch checking for sed... (cached) /usr/bin/sed checking for nm... /usr/bin/nm checking for realpath... /usr/bin/realpath checking for ldconfig... /usr/sbin/ldconfig checking for sha1sum... /usr/bin/sha1sum checking for openssl... : checking for aarch64-opencloudos-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for bison that supports parse-param... checking for aarch64-opencloudos-linux-gnu-soxmix... no checking for soxmix... no checking for md5... no checking for md5sum... md5sum checking for a sed that does not truncate output... (cached) /usr/bin/sed checking whether gcc is Clang... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking whether more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... yes checking for RAII support... checking for gcc -fnested-functions... no checking for clang strsep/strcmp optimization... no configure: checking OPENSSL with pkg-config configure: checking whether system openssl > 1.1.0 checking for openssl >= 1.1.0... yes checking for embedded pjproject (may have to download)... configuring [pjproject] Verifying /builddir/build/BUILD/asterisk-18.12.1/cache/pjproject-2.12.tar.bz2 [pjproject] Verify successful [pjproject] Unpacking /builddir/build/BUILD/asterisk-18.12.1/cache/pjproject-2.12.tar.bz2 Applying patch 0100-allow_multiple_auth_headers.patch Applying patch 0000-remove-third-party.patch Applying patch 0000-configure-ssl-library-path.patch Makefile:1: build.mak: No such file or directory make[2]: *** No rule to make target 'build.mak'. Stop. checking build system type... aarch64-opencloudos-linux-gnu checking host system type... aarch64-opencloudos-linux-gnu checking target system type... aarch64-opencloudos-linux-gnu checking for aarch64-opencloudos-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 the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking for aarch64-opencloudos-linux-gnu-ranlib... no checking for ranlib... ranlib checking for aarch64-opencloudos-linux-gnu-ar... no checking for aarch64-opencloudos-linux-gnu-gar... no checking for ar... ar checking for pthread_create in -lpthread... yes checking for puts in -lwsock32... no checking for puts in -lws2_32... no checking for puts in -lole32... no checking for puts in -lwinmm... no checking for puts in -lsocket... no checking for puts in -lrt... yes checking for sin in -lm... yes checking for uuid_generate in -luuid... yes checking for uuid_generate in -luuid... (cached) yes checking for library containing gethostbyname... none required Setting PJ_M_NAME to aarch64 checking memory alignment... 8 bytes 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 whether byte ordering is bigendian... no Checking if floating point is disabled... no checking for arpa/inet.h... yes checking for assert.h... yes checking for ctype.h... yes checking for errno.h... yes checking for fcntl.h... yes checking for linux/socket.h... yes checking for limits.h... yes checking for malloc.h... yes checking for netdb.h... yes checking for netinet/in_systm.h... yes checking for netinet/in.h... yes checking for netinet/ip.h... yes checking for netinet/tcp.h... yes checking for ifaddrs.h... yes checking for getifaddrs... yes checking for semaphore.h... yes checking for setjmp.h... yes checking for stdarg.h... yes checking for stddef.h... yes checking for stdio.h... (cached) yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/ioctl.h... yes checking for sys/select.h... yes checking for sys/socket.h... yes checking for sys/time.h... yes checking for sys/timeb.h... yes checking for sys/types.h... (cached) yes checking for sys/filio.h... no checking for sys/sockio.h... no checking for sys/utsname.h... yes checking for time.h... yes checking for unistd.h... (cached) yes checking for winsock.h... no checking for winsock2.h... no checking for mswsock.h... no checking for ws2tcpip.h... no checking for uuid/uuid.h... yes checking for net/if.h... yes checking for localtime_r... yes Setting PJ_OS_NAME to aarch64-opencloudos-linux-gnu Setting PJ_HAS_ERRNO_VAR to 1 Setting PJ_HAS_HIGH_RES_TIMER to 1 Setting PJ_HAS_MALLOC to 1 Setting PJ_NATIVE_STRING_IS_UNICODE to 0 Setting PJ_ATOMIC_VALUE_TYPE to long checking if inet_aton() is available... yes checking if inet_pton() is available... yes checking if inet_ntop() is available... yes checking if getaddrinfo() is available... yes checking if sockaddr_in has sin_len member... no checking if socklen_t is available... yes checking if IPV6_V6ONLY is available... yes checking if SO_ERROR is available... yes checking if pthread_rwlock_t is available... yes checking if pthread_mutexattr_settype() is available... no checking if pthread_mutexattr_t has recursive member... no checking ioqueue backend... /dev/epoll Building shared libraries... no Building pjsua2 library and application... yes Checking if resampling is disabled...yes Checking if sound is disabled... yes checking for sys/soundcard.h... yes checking for linux/soundcard.h... yes checking for machine/soundcard.h... no Video is disabled Checking if small filter is disabled... no Checking if large filter is disabled... no Checking if Speex AEC is disabled...yes Checking if G.711 codec is disabled...yes Checking if L16 codecs are disabled...yes Checking if GSM codec is disabled...yes Checking if G.722 codec is disabled...yes Checking if G.722.1 codec is disabled...yes Checking if Speex codec is disabled...yes Checking if iLBC codec is disabled...yes Checking if libsamplerate is enabled...no Building libresample as shared library... no Checking if Speex resample is enabled... no Checking if SDL is disabled... yes Checking if ffmpeg is disabled... yes Checking if V4L2 is disabled... yes Checking if OpenH264 is disabled... yes Checking if VPX is disabled... yes Skipping Intel IPP settings (not wanted) checking for OpenSSL installations.. checking for openssl/ssl.h... yes checking for ERR_load_BIO_strings in -lcrypto... yes checking for SSL_CTX_new in -lssl... yes OpenSSL library found, SSL support enabled checking for EVP_aes_128_gcm in -lcrypto... yes OpenSSL has AES GCM support, SRTP will use OpenSSL Checking if OpenCORE AMR support is disabled... yes Checking if SILK support is disabled... yes Checking if OPUS support is disabled... yes Checking if bcg729 is disabled... yes Checking if libyuv is disabled...yes Checking if libwebrtc is disabled...yes Checking if libwebrtc-aec3 is enabled...no checking if select() needs correct nfds... no (default) ** Decided that select() doesn't need correct nfds (please check) checking if pj_thread_create() should enforce stack size... no (default) checking if pj_thread_create() should allocate stack... no (default) ** Setting non-blocking recv() retval to EAGAIN (please check) ** Setting non-blocking connect() retval to EINPROGRESS (please check) aconfigure: creating ./config.status config.status: creating build.mak config.status: creating build/os-auto.mak config.status: creating build/cc-auto.mak config.status: creating pjlib/build/os-auto.mak config.status: creating pjlib-util/build/os-auto.mak config.status: creating pjmedia/build/os-auto.mak config.status: creating pjsip/build/os-auto.mak config.status: creating third_party/build/os-auto.mak config.status: creating pjlib/include/pj/compat/os_auto.h config.status: creating pjlib/include/pj/compat/m_auto.h config.status: creating pjmedia/include/pjmedia/config_auto.h config.status: creating pjmedia/include/pjmedia-codec/config_auto.h config.status: creating pjsip/include/pjsip/sip_autoconf.h Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h. Further customizations can be put in: - 'user.mak' - 'pjlib/include/pj/config_site.h' The next step now is to run 'make dep' and 'make'. checking for bundled pjproject... yes checking for gawk... (cached) gawk checking for curl-config... /usr/bin/curl-config checking for the version of libcurl... 8.4.0 checking for libcurl >= version 7.10.1... yes checking whether libcurl is usable... yes checking for curl_free... yes checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for dirent.h that defines DIR... yes