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/pgaudit.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-284636-27555/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/pgaudit.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/pgaudit-17.0-1.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/pgaudit.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-284636-27555/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/pgaudit.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.df7Kor + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pgaudit-17.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pgaudit-17.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pgaudit-17.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.1rKYYZ + 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 pgaudit-17.0 + /usr/bin/make -O -j32 V=1 VERBOSE=1 USE_PGXS=1 PG_CONFIG=/usr/bin/pg_server_config gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -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 -fPIC -I. -I./ -I/usr/include/pgsql/server -I/usr/include/pgsql/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o pgaudit.o pgaudit.c pgaudit.c: In function 'log_select_dml': pgaudit.c:1111:15: error: unknown type name 'RTEPermissionInfo' 1111 | const RTEPermissionInfo *perminfo; | ^~~~~~~~~~~~~~~~~ pgaudit.c:1117:16: error: 'RangeTblEntry' has no member named 'perminfoindex' 1117 | if (rte->perminfoindex == 0) | ^~ pgaudit.c:1168:20: warning: implicit declaration of function 'getRTEPermissionInfo' [-Wimplicit-function-declaration] 1168 | perminfo = getRTEPermissionInfo(permInfos, rte); | ^~~~~~~~~~~~~~~~~~~~ pgaudit.c:1168:18: warning: assignment to 'const int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1168 | perminfo = getRTEPermissionInfo(permInfos, rte); | ^ pgaudit.c:1170:21: error: request for member 'requiredPerms' in something not a structure or union 1170 | if (perminfo->requiredPerms & ACL_INSERT) | ^~ pgaudit.c:1176:26: error: request for member 'requiredPerms' in something not a structure or union 1176 | else if (perminfo->requiredPerms & ACL_UPDATE && | ^~ pgaudit.c:1183:26: error: request for member 'requiredPerms' in something not a structure or union 1183 | else if (perminfo->requiredPerms & ACL_DELETE) | ^~ pgaudit.c:1189:26: error: request for member 'requiredPerms' in something not a structure or union 1189 | else if (perminfo->requiredPerms & ACL_SELECT) | ^~ pgaudit.c:1254:25: error: request for member 'requiredPerms' in something not a structure or union 1254 | perminfo->requiredPerms; | ^~ pgaudit.c:1275:56: error: request for member 'selectedCols' in something not a structure or union 1275 | perminfo->selectedCols, | ^~ pgaudit.c:1285:56: error: request for member 'insertedCols' in something not a structure or union 1285 | perminfo->insertedCols, | ^~ pgaudit.c:1295:56: error: request for member 'updatedCols' in something not a structure or union 1295 | perminfo->updatedCols, | ^~ pgaudit.c: In function 'pgaudit_ExecutorCheckPerms_hook': pgaudit.c:1523:11: error: too many arguments to function 'next_ExecutorCheckPerms_hook' 1523 | !(*next_ExecutorCheckPerms_hook) (rangeTabls, permInfos, abort)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pgaudit.c: In function 'check_pgaudit_log': pgaudit.c:1970:26: warning: implicit declaration of function 'guc_malloc' [-Wimplicit-function-declaration] 1970 | if (!(flags = (int *)guc_malloc(FATAL, sizeof(int)))) | ^~~~~~~~~~ pgaudit.c:1970:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1970 | if (!(flags = (int *)guc_malloc(FATAL, sizeof(int)))) | ^ pgaudit.c:2009:13: warning: implicit declaration of function 'guc_free' [-Wimplicit-function-declaration] 2009 | guc_free(flags); | ^~~~~~~~ pgaudit.c: In function 'check_pgaudit_log_level': pgaudit.c:2054:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2054 | if (!(logLevel = (int *)guc_malloc(FATAL, sizeof(int)))) | ^ pgaudit.c: In function '_PG_init': pgaudit.c:2312:29: warning: assignment to 'ExecutorCheckPerms_hook_type' {aka '_Bool (*)(List *, _Bool)'} from incompatible pointer type '_Bool (*)(List *, List *, _Bool)' [-Wincompatible-pointer-types] 2312 | ExecutorCheckPerms_hook = pgaudit_ExecutorCheckPerms_hook; | ^ make: *** [: pgaudit.o] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.1rKYYZ (%build) Bad exit status from /var/tmp/rpm-tmp.1rKYYZ (%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/pgaudit.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/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/pgaudit.spec