Mock Version: 6.0 Mock Version: 6.0 Mock Version: 6.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/deepin-authentication.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-534772-81830/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'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/deepin-authentication.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: source_date_epoch_from_changelog set but %changelog is missing Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/deepin-authenticate-1.5.12-1.an23.06.src.rpm RPM build warnings: source_date_epoch_from_changelog set but %changelog is missing Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/deepin-authentication.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-534772-81830/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'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/deepin-authentication.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: source_date_epoch_from_changelog set but %changelog is missing Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Ij5caH + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf deepin-authenticate-1.5.12 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/deepin-authenticate_1.5.12.orig.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd deepin-authenticate-1.5.12 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/deepin-authenticate-mfa-enhance.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/modify-bool-to-int-to-fix-dbus-stack-overflow-issue.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.kMwg39 + 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 deepin-authenticate-1.5.12 + LOCAL_GOPATH=/builddir/build/BUILD/gopath + mkdir -p /builddir/build/BUILD/gopath/src/github.com/linuxdeepin + cp -a /usr/share/gocode/src/github.com/linuxdeepin/go-lib /builddir/build/BUILD/gopath/src/github.com/linuxdeepin/ + SM2_C=/builddir/build/BUILD/gopath/src/github.com/linuxdeepin/go-lib/gm/sm2/dde-sm2.c + '[' -f /builddir/build/BUILD/gopath/src/github.com/linuxdeepin/go-lib/gm/sm2/dde-sm2.c ']' + perl -i -0777 -pe 's/size_t\s+get_ciphertext_size\s*\([^)]*\)\s*\{.*?\}/size_t get_ciphertext_size(const SM2Context *context, const void *data, size_t len) { return 0; }/gs' /builddir/build/BUILD/gopath/src/github.com/linuxdeepin/go-lib/gm/sm2/dde-sm2.c + perl -i -0777 -pe 's/size_t\s+get_plaintext_size\s*\([^)]*\)\s*\{.*?\}/size_t get_plaintext_size(const SM2Context *context, const void *data, size_t len) { return 0; }/gs' /builddir/build/BUILD/gopath/src/github.com/linuxdeepin/go-lib/gm/sm2/dde-sm2.c + perl -i -0777 -pe 's/int\s+encrypt\s*\([^)]*\)\s*\{.*?\}/int encrypt(const SM2Context *context, const void *in, size_t inlen, void *out, size_t *outlen) { return -1; }/gs' /builddir/build/BUILD/gopath/src/github.com/linuxdeepin/go-lib/gm/sm2/dde-sm2.c + perl -i -0777 -pe 's/int\s+decrypt\s*\([^)]*\)\s*\{.*?\}/int decrypt(const SM2Context *context, const void *in, size_t inlen, void *out, size_t *outlen) { return -1; }/gs' /builddir/build/BUILD/gopath/src/github.com/linuxdeepin/go-lib/gm/sm2/dde-sm2.c + sed -i 's/ossl_sm2_ciphertext_size/\/\* ossl_sm2_ciphertext_size \*\//g' /builddir/build/BUILD/gopath/src/github.com/linuxdeepin/go-lib/gm/sm2/dde-sm2.c + sed -i 's/ossl_sm2_plaintext_size/\/\* ossl_sm2_plaintext_size \*\//g' /builddir/build/BUILD/gopath/src/github.com/linuxdeepin/go-lib/gm/sm2/dde-sm2.c + sed -i 's/ossl_sm2_encrypt/\/\* ossl_sm2_encrypt \*\//g' /builddir/build/BUILD/gopath/src/github.com/linuxdeepin/go-lib/gm/sm2/dde-sm2.c + sed -i 's/ossl_sm2_decrypt/\/\* ossl_sm2_decrypt \*\//g' /builddir/build/BUILD/gopath/src/github.com/linuxdeepin/go-lib/gm/sm2/dde-sm2.c + sed -i '/#include /d' /builddir/build/BUILD/gopath/src/github.com/linuxdeepin/go-lib/gm/sm2/dde-sm2.c + export GOPATH=/builddir/build/BUILD/gopath:/usr/share/gocode + GOPATH=/builddir/build/BUILD/gopath:/usr/share/gocode + export GO111MODULE=off + GO111MODULE=off ++ head -c20 /dev/urandom ++ od -An -tx1 ++ tr -d ' \n' + BUILDID=0x9eeedc00d491165074eaf5970d1ab496a522e6a0 + /usr/bin/make -O -j80 V=1 VERBOSE=1 GO_BUILD_FLAGS=-trimpath 'GOBUILD=go build -compiler gc -ldflags "-B 0x9eeedc00d491165074eaf5970d1ab496a522e6a0"' /usr/bin/make -C lib/src make[1]: Entering directory '/builddir/build/BUILD/deepin-authenticate-1.5.12/lib/src' cd ../misc/pkgconfig; \ cp libdeepin-authenticate.pc.in libdeepin-authenticate.pc.in.copy; \ sed -i 's?@libdir@?/usr/lib/?' libdeepin-authenticate.pc.in.copy; \ sed -i 's?@libappend@?-lgtk-x11-2.0 -ljson-c -ljson-glib-1.0 -lssl -lcrypto -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lpangocairo-1.0 -lharfbuzz -lfontconfig -lgdk_pixbuf-2.0 -lcairo -lfreetype -lpango-1.0 -lgio-2.0 -lglib-2.0 -lgobject-2.0?' libdeepin-authenticate.pc.in.copy; \ sed -i 's?@includedir@?/usr/include/libdeepin-authenticate?' libdeepin-authenticate.pc.in.copy; \ sed -i 's?@includeappend@?-I/usr/include/gio-unix-2.0 -I/usr/include/gtk-2.0 -I/usr/include/json-c -I/usr/include/json-glib-1.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/webp -I/usr/include/blkid -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/libmount -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-6 -pthread?' libdeepin-authenticate.pc.in.copy; \ mv libdeepin-authenticate.pc.in.copy libdeepin-authenticate.pc make[1]: Leaving directory '/builddir/build/BUILD/deepin-authenticate-1.5.12/lib/src' make[1]: dpkg-architecture: No such file or directory deepin-policy-ts-convert ts2policy misc/polkit-action/com.deepin.daemon.authenticate.Fingerprint.policy.in misc/ts/com.deepin.daemon.authenticate.Fingerprint.policy misc/polkit-action/com.deepin.daemon.authenticate.Fingerprint.policy; deepin-policy-ts-convert ts2policy misc/polkit-action/com.deepin.daemon.authenticate.Face.policy.in misc/ts/com.deepin.daemon.authenticate.Face.policy misc/polkit-action/com.deepin.daemon.authenticate.Face.policy; deepin-policy-ts-convert ts2policy misc/polkit-action/com.deepin.daemon.authenticate.Iris.policy.in misc/ts/com.deepin.daemon.authenticate.Iris.policy misc/polkit-action/com.deepin.daemon.authenticate.Iris.policy; policyFile: misc/polkit-action/com.deepin.daemon.authenticate.Fingerprint.policy.in tsDir: misc/ts/com.deepin.daemon.authenticate.Fingerprint.policy outputPolicyFile: misc/polkit-action/com.deepin.daemon.authenticate.Fingerprint.policy policyFile: misc/polkit-action/com.deepin.daemon.authenticate.Face.policy.in tsDir: misc/ts/com.deepin.daemon.authenticate.Face.policy outputPolicyFile: misc/polkit-action/com.deepin.daemon.authenticate.Face.policy policyFile: misc/polkit-action/com.deepin.daemon.authenticate.Iris.policy.in tsDir: misc/ts/com.deepin.daemon.authenticate.Iris.policy outputPolicyFile: misc/polkit-action/com.deepin.daemon.authenticate.Iris.policy gcc -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy -g -shared -Wall -D_GNU_SOURCE -o out/pam_deepin_session.so misc/pam-module/session/dbus_method.c misc/pam-module/session/session.c -lssl -lcrypto -lsystemd -ljson-c -lpam -I./misc/pam-module/common chmod -x out/pam_deepin_session.so misc/pam-module/session/dbus_method.c: In function 'dbus_method_get_terminal_locked': misc/pam-module/session/dbus_method.c:14:13: warning: implicit declaration of function 'pam_syslog'; did you mean 'vsyslog'? [-Wimplicit-function-declaration] 14 | pam_syslog(pamh, LOG_ERR, "Failed to connect to system bus: %s", strerror(-ret)); | ^~~~~~~~~~ | vsyslog misc/pam-module/session/dbus_method.c:6:11: warning: unused variable 'res' [-Wunused-variable] 6 | char *res = NULL; | ^~~ misc/pam-module/session/session.c: In function 'pam_sm_open_session': misc/pam-module/session/session.c:16:11: warning: implicit declaration of function 'execute_cmd' [-Wimplicit-function-declaration] 16 | ret = execute_cmd(cmd,result); | ^~~~~~~~~~~ misc/pam-module/session/session.c:19:9: warning: implicit declaration of function 'pam_syslog'; did you mean 'vsyslog'? [-Wimplicit-function-declaration] 19 | pam_syslog(pamh, LOG_ERR, "exec cmd :%s fail", cmd); | ^~~~~~~~~~ | vsyslog gcc -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy -g -shared -W -Wall -D_GNU_SOURCE -o out/pam_deepin_authentication.so misc/pam-module/auth/dbus.c misc/pam-module/auth/limit.c misc/pam-module/auth/mfa.c misc/pam-module/auth/pam.c misc/pam-module/auth/sfa.c misc/pam-module/auth/type.c misc/pam-module/auth/utils.c misc/pam-module/common/common.c misc/pam-module/common/debug.c -lssl -lcrypto -lsystemd -ljson-c -lpam -I./misc/pam-module/common chmod -x out/pam_deepin_authentication.so misc/pam-module/auth/dbus.c: In function 'dbus_method_get_error_echo_dconf_path': misc/pam-module/auth/dbus.c:667:17: warning: passing argument 1 of 'sprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 667 | sprintf(path, "%s", buf); | ^~~~ In file included from /usr/include/openssl/bio.h:26, from /usr/include/openssl/asn1.h:27, from /usr/include/openssl/ec.h:92, from ./misc/pam-module/common/common.h:6, from misc/pam-module/auth/dbus.h:4, from misc/pam-module/auth/dbus.c:1: /usr/include/stdio.h:363:38: note: expected 'char * restrict' but argument is of type 'const char *' 363 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ misc/pam-module/auth/limit.c: In function 'get_limit_prompt': misc/pam-module/auth/limit.c:27:42: warning: implicit declaration of function 'gettext' [-Wimplicit-function-declaration] 27 | snprintf(buff, MAX_BUF_SIZE, gettext("Please try again %d minutes later"), minutes); | ^~~~~~~ misc/pam-module/auth/limit.c:27:42: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] misc/pam-module/auth/limit.c:29:42: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] 29 | snprintf(buff, MAX_BUF_SIZE, gettext("Please try again %d minute later"), minutes); | ^~~~~~~ misc/pam-module/auth/mfa.c: In function 'mfa_signal_deal': misc/pam-module/auth/mfa.c:47:30: warning: implicit declaration of function 'gettext' [-Wimplicit-function-declaration] 47 | sprintf(msg, gettext("Verification successful")); | ^~~~~~~ misc/pam-module/auth/mfa.c:47:30: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] misc/pam-module/auth/mfa.c:119:49: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] 119 | snprintf(msg, MAX_BUF_SIZE, gettext("Password verification failed")); | ^~~~~~~ misc/pam-module/auth/mfa.c:128:30: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] 128 | gettext("%s verification failed"), | ^~~~~~~ misc/pam-module/auth/mfa.c:185:86: warning: comparison is always false due to limited range of data type [-Wtype-limits] 185 | (signalMsg[length - 1] == ':') || (signalMsg[length - 1] == -102)) { | ^~ In file included from misc/pam-module/auth/mfa.h:4, from misc/pam-module/auth/mfa.c:1: misc/pam-module/auth/mfa.c:241:35: warning: too many arguments for format [-Wformat-extra-args] 241 | D_DEBUG(ud->pamh, "must restart auth process", ud->pid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc/pam-module/common/common.h:63:37: note: in definition of macro 'D_DEBUG' 63 | pam_syslog(pamh, LOG_DEBUG, text, ##__VA_ARGS__); \ | ^~~~ misc/pam-module/auth/mfa.c:244:34: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] 244 | sprintf(msg, gettext("Verification Process msut be restart!")); | ^~~~~~~ misc/pam-module/auth/pam.c: In function 'clean_auth_data': misc/pam-module/auth/pam.c:73:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 73 | if (p->rsa) RSA_free(p->rsa); | ^~ In file included from /usr/include/openssl/x509.h:36, from /usr/include/openssl/pem.h:23, from ./misc/pam-module/common/common.h:8, from misc/pam-module/auth/pam.c:1: /usr/include/openssl/rsa.h:296:28: note: declared here 296 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ misc/pam-module/auth/pam.c:74:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 74 | if (p->eckey) EC_KEY_free(p->eckey); | ^~ In file included from ./misc/pam-module/common/common.h:6: /usr/include/openssl/ec.h:1003:28: note: declared here 1003 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ misc/pam-module/auth/pam.c: In function 'run_request_pw': misc/pam-module/auth/pam.c:192:25: warning: the comparison will always evaluate as 'true' for the address of 'path' will never be NULL [-Waddress] 192 | || NULL != ud->path)) { | ^~ ./misc/pam-module/common/common.h:142:10: note: 'path' declared here 142 | char path[MAX_BUF_SIZE]; | ^~~~ misc/pam-module/auth/pam.c: In function 'pam_sm_authenticate': misc/pam-module/auth/pam.c:410:5: warning: implicit declaration of function 'textdomain' [-Wimplicit-function-declaration] 410 | textdomain("deepin-authentication"); | ^~~~~~~~~~ misc/pam-module/auth/pam.c:446:29: warning: implicit declaration of function 'gettext' [-Wimplicit-function-declaration] 446 | gettext("Your password will expire in %d days, please change it " | ^~~~~~~ misc/pam-module/auth/pam.c:446:29: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] misc/pam-module/auth/sfa.c: In function 'sfa_signal_deal': misc/pam-module/auth/sfa.c:41:30: warning: implicit declaration of function 'gettext' [-Wimplicit-function-declaration] 41 | sprintf(msg, gettext("Verification successful")); | ^~~~~~~ misc/pam-module/auth/sfa.c:41:30: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] misc/pam-module/auth/sfa.c:85:34: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] 85 | gettext("%s locked, use password please"), | ^~~~~~~ misc/pam-module/auth/sfa.c:90:53: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] 90 | snprintf(msg, MAX_BUF_SIZE, gettext("Password locked, %s"), limit_buff); | ^~~~~~~ misc/pam-module/auth/sfa.c:98:38: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] 98 | gettext("Password verification failed, %d chances left"), | ^~~~~~~ misc/pam-module/auth/sfa.c:108:38: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] 108 | gettext("%s verification failed, %d chances left"), | ^~~~~~~ misc/pam-module/auth/sfa.c:116:38: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] 116 | gettext("Password verification failed, only one chance left")); | ^~~~~~~ misc/pam-module/auth/sfa.c:125:38: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] 125 | gettext("%s verification failed, only one chance left"), | ^~~~~~~ misc/pam-module/auth/type.c: In function 'type_to_tr': misc/pam-module/auth/type.c:18:16: warning: implicit declaration of function 'gettext' [-Wimplicit-function-declaration] 18 | return gettext("Fingerprint"); | ^~~~~~~ misc/pam-module/auth/type.c:18:16: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] misc/pam-module/auth/type.c:28:12: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] 28 | return gettext("Unknown"); | ^~~~~~~ misc/pam-module/auth/utils.c: In function 'resolve_verify_msg': misc/pam-module/auth/utils.c:53:38: warning: implicit declaration of function 'gettext' [-Wimplicit-function-declaration] 53 | sprintf(res_msg, gettext("Verification error")); | ^~~~~~~ misc/pam-module/auth/utils.c:53:38: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] misc/pam-module/auth/utils.c:82:38: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] 82 | sprintf(res_msg, gettext("Clean your finger and try again")); | ^~~~~~~ misc/pam-module/auth/utils.c:112:34: warning: incompatible implicit declaration of built-in function 'gettext' [-Wbuiltin-declaration-mismatch] 112 | sprintf(res_msg, gettext("Password")); | ^~~~~~~ misc/pam-module/auth/utils.c: In function 'gen_rsa_pubkey': misc/pam-module/auth/utils.c:387:9: warning: 'PEM_read_bio_RSA_PUBKEY' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 387 | PEM_read_bio_RSA_PUBKEY(bio, rsa, NULL, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from ./misc/pam-module/common/common.h:8, from misc/pam-module/auth/utils.h:4, from misc/pam-module/auth/utils.c:1: /usr/include/openssl/pem.h:449:1: note: declared here 449 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) | ^~~~~~~~~~~~~~~~~~~ misc/pam-module/auth/utils.c:389:9: warning: 'PEM_read_bio_RSAPublicKey' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 389 | PEM_read_bio_RSAPublicKey(bio, rsa, NULL, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:448:1: note: declared here 448 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSAPublicKey, RSA) | ^~~~~~~~~~~~~~~~~~~ misc/pam-module/auth/utils.c: In function 'gen_sm2_pubkey': misc/pam-module/auth/utils.c:412:9: warning: 'PEM_read_bio_EC_PUBKEY' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 412 | PEM_read_bio_EC_PUBKEY(bio, ec_key, NULL, NULL); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:463:1: note: declared here 463 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ misc/pam-module/auth/utils.c: In function 'rsa_encrypt_data': misc/pam-module/auth/utils.c:518:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 518 | int clipSize = RSA_size(ud->key->rsa); | ^~~ In file included from /usr/include/openssl/x509.h:36, from /usr/include/openssl/pem.h:23: /usr/include/openssl/rsa.h:207:27: note: declared here 207 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ misc/pam-module/auth/utils.c:522:5: warning: 'RSA_public_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 522 | int ret = RSA_public_encrypt(strlen(origin_data), | ^~~ /usr/include/openssl/rsa.h:285:5: note: declared here 285 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, | ^~~~~~~~~~~~~~~~~~ misc/pam-module/auth/utils.c: In function 'aes_cbc_encrypt': misc/pam-module/auth/utils.c:599:5: warning: 'AES_set_encrypt_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 599 | if (AES_set_encrypt_key((unsigned char *)key, keyLen * 8, &aes) < 0) { | ^~ In file included from misc/pam-module/auth/utils.c:6: /usr/include/openssl/aes.h:51:5: note: declared here 51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits, | ^~~~~~~~~~~~~~~~~~~ misc/pam-module/auth/utils.c:602:5: warning: 'AES_cbc_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 602 | AES_cbc_encrypt((unsigned char *)in, | ^~~~~~~~~~~~~~~ /usr/include/openssl/aes.h:66:6: note: declared here 66 | void AES_cbc_encrypt(const unsigned char *in, unsigned char *out, | ^~~~~~~~~~~~~~~ make[1]: Entering directory '/builddir/build/BUILD/deepin-authenticate-1.5.12/lib/src' gcc -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy -g -shared -D_GNU_SOURCE -W -Wall -Wl,-soname,libdeepin-authenticate.so.1 -o libdeepin-authenticate.so.1 auth/auth.c auth/com.deepin.daemon.Authenticate.Session.c auth/com.deepin.daemon.Authenticate.c auth/text.c encrypt/aes.c encrypt/rsa.c shm-comm/shm_notifier.c shm-comm/shmn_image.c -I../encrypt/ -lgtk-x11-2.0 -ljson-c -ljson-glib-1.0 -lssl -lcrypto -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lpangocairo-1.0 -lharfbuzz -lfontconfig -lgdk_pixbuf-2.0 -lcairo -lfreetype -lpango-1.0 -lgio-2.0 -lglib-2.0 -lgobject-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/gtk-2.0 -I/usr/include/json-c -I/usr/include/json-glib-1.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/webp -I/usr/include/blkid -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/libmount -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-6 -pthread mv libdeepin-authenticate.so.1 ../../out/lib make[1]: Leaving directory '/builddir/build/BUILD/deepin-authenticate-1.5.12/lib/src' auth/auth.c: In function 'da_get_auth_limit_info': auth/auth.c:151:13: warning: the comparison will always evaluate as 'true' for the pointer operand in 'dli + (sizetype)((long unsigned int)i * 148)' must not be NULL [-Waddress] 151 | if (&dli[i]) { | ^ auth/com.deepin.daemon.Authenticate.Session.c: In function 'com_deepin_daemon_authenticate_session_complete_encrypt_key': auth/com.deepin.daemon.Authenticate.Session.c:2441:41: warning: unused parameter 'object' [-Wunused-parameter] 2441 | ComDeepinDaemonAuthenticateSession *object, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ auth/com.deepin.daemon.Authenticate.Session.c: In function 'com_deepin_daemon_authenticate_session_complete_end': auth/com.deepin.daemon.Authenticate.Session.c:2466:41: warning: unused parameter 'object' [-Wunused-parameter] 2466 | ComDeepinDaemonAuthenticateSession *object, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ auth/com.deepin.daemon.Authenticate.Session.c: In function 'com_deepin_daemon_authenticate_session_complete_get_result': auth/com.deepin.daemon.Authenticate.Session.c:2487:41: warning: unused parameter 'object' [-Wunused-parameter] 2487 | ComDeepinDaemonAuthenticateSession *object, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ auth/com.deepin.daemon.Authenticate.Session.c: In function 'com_deepin_daemon_authenticate_session_complete_privileges_disable': auth/com.deepin.daemon.Authenticate.Session.c:2507:41: warning: unused parameter 'object' [-Wunused-parameter] 2507 | ComDeepinDaemonAuthenticateSession *object, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ auth/com.deepin.daemon.Authenticate.Session.c: In function 'com_deepin_daemon_authenticate_session_complete_privileges_enable': auth/com.deepin.daemon.Authenticate.Session.c:2526:41: warning: unused parameter 'object' [-Wunused-parameter] 2526 | ComDeepinDaemonAuthenticateSession *object, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ auth/com.deepin.daemon.Authenticate.Session.c: In function 'com_deepin_daemon_authenticate_session_complete_quit': auth/com.deepin.daemon.Authenticate.Session.c:2546:41: warning: unused parameter 'object' [-Wunused-parameter] 2546 | ComDeepinDaemonAuthenticateSession *object, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ auth/com.deepin.daemon.Authenticate.Session.c: In function 'com_deepin_daemon_authenticate_session_complete_set_quit_flag': auth/com.deepin.daemon.Authenticate.Session.c:2564:41: warning: unused parameter 'object' [-Wunused-parameter] 2564 | ComDeepinDaemonAuthenticateSession *object, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ auth/com.deepin.daemon.Authenticate.Session.c: In function 'com_deepin_daemon_authenticate_session_complete_set_token': auth/com.deepin.daemon.Authenticate.Session.c:2582:41: warning: unused parameter 'object' [-Wunused-parameter] 2582 | ComDeepinDaemonAuthenticateSession *object, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ auth/com.deepin.daemon.Authenticate.Session.c: In function 'com_deepin_daemon_authenticate_session_complete_start': auth/com.deepin.daemon.Authenticate.Session.c:2601:41: warning: unused parameter 'object' [-Wunused-parameter] 2601 | ComDeepinDaemonAuthenticateSession *object, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ auth/com.deepin.daemon.Authenticate.Session.c: In function 'com_deepin_daemon_authenticate_session_complete_set_symmetric_key': auth/com.deepin.daemon.Authenticate.Session.c:2621:41: warning: unused parameter 'object' [-Wunused-parameter] 2621 | ComDeepinDaemonAuthenticateSession *object, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ auth/com.deepin.daemon.Authenticate.c: In function 'com_deepin_daemon_authenticate_complete_authenticate': auth/com.deepin.daemon.Authenticate.c:1081:34: warning: unused parameter 'object' [-Wunused-parameter] 1081 | ComDeepinDaemonAuthenticate *object, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ auth/com.deepin.daemon.Authenticate.c: In function 'com_deepin_daemon_authenticate_complete_get_limits': auth/com.deepin.daemon.Authenticate.c:1102:34: warning: unused parameter 'object' [-Wunused-parameter] 1102 | ComDeepinDaemonAuthenticate *object, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ auth/com.deepin.daemon.Authenticate.c: In function 'com_deepin_daemon_authenticate_complete_pre_one_key_login': auth/com.deepin.daemon.Authenticate.c:1123:34: warning: unused parameter 'object' [-Wunused-parameter] 1123 | ComDeepinDaemonAuthenticate *object, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ encrypt/aes.c: In function 'aes_cbc_encrypt': encrypt/aes.c:34:5: warning: 'AES_set_encrypt_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 34 | if (AES_set_encrypt_key((unsigned char *)key, keyLen * 8, &aes) < 0) | ^~ In file included from encrypt/aes.c:3: /usr/include/openssl/aes.h:51:5: note: declared here 51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits, | ^~~~~~~~~~~~~~~~~~~ encrypt/aes.c:44:5: warning: 'AES_cbc_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 44 | AES_cbc_encrypt((unsigned char *)in, | ^~~~~~~~~~~~~~~ /usr/include/openssl/aes.h:66:6: note: declared here 66 | void AES_cbc_encrypt(const unsigned char *in, unsigned char *out, | ^~~~~~~~~~~~~~~ encrypt/aes.c: In function 'aes_cbc_decrypt': encrypt/aes.c:64:3: warning: 'AES_set_decrypt_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 64 | if (AES_set_decrypt_key((unsigned char *)key, key_len * 8, &aes) < 0) { | ^~ /usr/include/openssl/aes.h:54:5: note: declared here 54 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits, | ^~~~~~~~~~~~~~~~~~~ encrypt/aes.c:69:3: warning: 'AES_cbc_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 69 | AES_cbc_encrypt((unsigned char *)src, (unsigned char *)tmp, src_len, &aes, iv, | ^~~~~~~~~~~~~~~ /usr/include/openssl/aes.h:66:6: note: declared here 66 | void AES_cbc_encrypt(const unsigned char *in, unsigned char *out, | ^~~~~~~~~~~~~~~ encrypt/rsa.c: In function 'gen_rsa_pubkey': encrypt/rsa.c:38:9: warning: 'PEM_read_bio_RSA_PUBKEY' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 38 | PEM_read_bio_RSA_PUBKEY(bio, &pk->rsa, NULL, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from encrypt/rsa.c:3: /usr/include/openssl/pem.h:449:1: note: declared here 449 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) | ^~~~~~~~~~~~~~~~~~~ encrypt/rsa.c:42:9: warning: 'PEM_read_bio_RSAPublicKey' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 42 | PEM_read_bio_RSAPublicKey(bio, &pk->rsa, NULL, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:448:1: note: declared here 448 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSAPublicKey, RSA) | ^~~~~~~~~~~~~~~~~~~ encrypt/rsa.c: In function 'rsa_encrypt_data': encrypt/rsa.c:69:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 69 | int clipSize = RSA_size(pk->rsa); | ^~~ In file included from encrypt/rsa.c:2: /usr/include/openssl/rsa.h:207:27: note: declared here 207 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ encrypt/rsa.c:72:5: warning: 'RSA_public_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 72 | int ret = RSA_public_encrypt(strlen(origin_data), | ^~~ /usr/include/openssl/rsa.h:285:5: note: declared here 285 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, | ^~~~~~~~~~~~~~~~~~ encrypt/rsa.c: In function 'pub_key_free': encrypt/rsa.c:93:13: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 93 | RSA_free(pk->rsa); | ^~~~~~~~ /usr/include/openssl/rsa.h:296:28: note: declared here 296 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ env GOPATH="/builddir/build/BUILD/deepin-authenticate-1.5.12/gopath:/builddir/build/BUILD/gopath:/usr/share/gocode" go build -compiler gc -ldflags "-B 0x9eeedc00d491165074eaf5970d1ab496a522e6a0" -o out/bin/app-type-tool pkg.deepin.io/dde/authentication/cmd/app-type-tool env GOPATH="/builddir/build/BUILD/deepin-authenticate-1.5.12/gopath:/builddir/build/BUILD/gopath:/usr/share/gocode" go build -compiler gc -ldflags "-B 0x9eeedc00d491165074eaf5970d1ab496a522e6a0" -o out/bin/deepin-authentication pkg.deepin.io/dde/authentication/cmd/deepin-authentication # github.com/linuxdeepin/go-lib/gm/sm2 dde-sm2.c: In function 'gen_ec_key': dde-sm2.c:24:5: warning: 'EC_KEY_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 24 | if (NULL == (ec_key = EC_KEY_new())) { | ^~ In file included from /usr/include/openssl/x509.h:33, from /usr/include/openssl/pem.h:23, from dde-sm2.c:6: /usr/include/openssl/ec.h:968:31: note: declared here 968 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); | ^~~~~~~~~~ dde-sm2.c:29:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 29 | EC_KEY_free(ec_key); | ^~~~~~~~~~~ /usr/include/openssl/ec.h:1003:28: note: declared here 1003 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ dde-sm2.c:33:5: warning: 'EC_KEY_set_group' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 33 | if (1 != EC_KEY_set_group(ec_key, ec_group)) { | ^~ /usr/include/openssl/ec.h:1042:27: note: declared here 1042 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); | ^~~~~~~~~~~~~~~~ dde-sm2.c:35:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 35 | EC_KEY_free(ec_key); | ^~~~~~~~~~~ /usr/include/openssl/ec.h:1003:28: note: declared here 1003 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ dde-sm2.c:39:5: warning: 'EC_KEY_generate_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 39 | if (!EC_KEY_generate_key(ec_key)) { | ^~ /usr/include/openssl/ec.h:1101:27: note: declared here 1101 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_generate_key(EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~ dde-sm2.c:41:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 41 | EC_KEY_free(ec_key); | ^~~~~~~~~~~ /usr/include/openssl/ec.h:1003:28: note: declared here 1003 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ dde-sm2.c: In function 'get_public_key': dde-sm2.c:54:5: warning: 'PEM_write_bio_EC_PUBKEY' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 54 | PEM_write_bio_EC_PUBKEY(bio, key); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:463:1: note: declared here 463 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ dde-sm2.c: In function 'get_private_key': dde-sm2.c:74:5: warning: 'PEM_write_bio_ECPrivateKey' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 74 | PEM_write_bio_ECPrivateKey(bio, key, NULL, NULL, 0, NULL, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:462:1: note: declared here 462 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, ECPrivateKey, EC_KEY) | ^~~~~~~~~~~~~~~~~~~~~~ dde-sm2.c: In function 'new_sm2_context': dde-sm2.c:96:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 96 | EC_KEY_free(key); | ^~~~~~~~~~~ /usr/include/openssl/ec.h:1003:28: note: declared here 1003 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ dde-sm2.c: In function 'free_sm2_context': dde-sm2.c:108:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 108 | EC_KEY_free(context->key); | ^~~~~~~~~~~ /usr/include/openssl/ec.h:1003:28: note: declared here 1003 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ dde-sm2.c: In function 'get_ciphertext_size': dde-sm2.c:129:14: warning: implicit declaration of function 'sm2_ciphertext_size'; did you mean 'get_ciphertext_size'? [-Wimplicit-function-declaration] 129 | if (1 == sm2_ciphertext_size(context->key, EVP_sm3(), plen, &ret)) { | ^~~~~~~~~~~~~~~~~~~ | get_ciphertext_size dde-sm2.c: In function 'get_plaintext_size': dde-sm2.c:138:14: warning: implicit declaration of function 'sm2_plaintext_size'; did you mean 'get_plaintext_size'? [-Wimplicit-function-declaration] 138 | if (1 == sm2_plaintext_size(ctext, clen, &ret)) { | ^~~~~~~~~~~~~~~~~~ | get_plaintext_size dde-sm2.c: At top level: dde-sm2.c:145:19: error: unknown type name 'SM2Context' 145 | int encrypt(const SM2Context *context, const void *in, size_t inlen, void *out, size_t *outlen) { return -1; } | ^~~~~~~~~~ dde-sm2.c:145:5: error: conflicting types for 'encrypt'; have 'int(const int *, const void *, size_t, void *, size_t *)' {aka 'int(const int *, const void *, long unsigned int, void *, long unsigned int *)'} 145 | int encrypt(const SM2Context *context, const void *in, size_t inlen, void *out, size_t *outlen) { return -1; } | ^~~~~~~ In file included from dde-sm2.c:12: dde-sm2.h:22:5: note: previous declaration of 'encrypt' with type 'int(const sm2_context *, const uint8_t *, size_t, uint8_t *, size_t)' {aka 'int(const struct _sm2_context *, const unsigned char *, long unsigned int, unsigned char *, long unsigned int)'} 22 | int encrypt(const sm2_context *context, const uint8_t *ptext, size_t psize, uint8_t *ctext, size_t csize); | ^~~~~~~ dde-sm2.c:147:5: error: expected identifier or '(' before 'return' 147 | return -1; | ^~~~~~ dde-sm2.c:148:1: error: expected identifier or '(' before '}' token 148 | } | ^ dde-sm2.c:150:19: error: unknown type name 'SM2Context' 150 | int decrypt(const SM2Context *context, const void *in, size_t inlen, void *out, size_t *outlen) { return -1; } | ^~~~~~~~~~ dde-sm2.c:150:5: error: conflicting types for 'decrypt'; have 'int(const int *, const void *, size_t, void *, size_t *)' {aka 'int(const int *, const void *, long unsigned int, void *, long unsigned int *)'} 150 | int decrypt(const SM2Context *context, const void *in, size_t inlen, void *out, size_t *outlen) { return -1; } | ^~~~~~~ dde-sm2.h:23:5: note: previous declaration of 'decrypt' with type 'int(const sm2_context *, const uint8_t *, size_t, uint8_t *, size_t)' {aka 'int(const struct _sm2_context *, const unsigned char *, long unsigned int, unsigned char *, long unsigned int)'} 23 | int decrypt(const sm2_context *context, const uint8_t *ctext, size_t csize, uint8_t *ptext, size_t psize); | ^~~~~~~ dde-sm2.c:152:5: error: expected identifier or '(' before 'return' 152 | return -1; | ^~~~~~ dde-sm2.c:153:1: error: expected identifier or '(' before '}' token 153 | } | ^ # github.com/linuxdeepin/go-gir/gobject-2.0 fix_gobject.c: In function '_g_type_param_value_array': fix_gobject.c:74:13: warning: Deprecated pre-processor symbol 74 | GType _g_type_param_value_array() { return G_TYPE_PARAM_VALUE_ARRAY; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:26: out/bin/deepin-authentication] Error 1 RPM build warnings: RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.kMwg39 (%build) source_date_epoch_from_changelog set but %changelog is missing Bad exit status from /var/tmp/rpm-tmp.kMwg39 (%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/deepin-authentication.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 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/deepin-authentication.spec'