Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-jsonlib.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1683320177.558993/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-jsonlib.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-jsonlib-1.6.1-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-jsonlib.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1683320177.558993/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-jsonlib.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-jsonlib-1.6.1-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-jsonlib.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1683320177.558993/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-jsonlib.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.vtpzC3 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf jsonlib-1.6.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/jsonlib-1.6.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd jsonlib-1.6.1 + /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.EYXCZf + umask 022 + cd /builddir/build/BUILD + cd jsonlib-1.6.1 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib.linux-x86_64-3.9 copying jsonlib.py -> build/lib.linux-x86_64-3.9 running build_ext building '_jsonlib' extension creating build/temp.linux-x86_64-3.9 gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -D_GNU_SOURCE -fPIC -fwrapv -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.9 -c _jsonlib.c -o build/temp.linux-x86_64-3.9/_jsonlib.o _jsonlib.c: In function ‘jsonlib_read’: _jsonlib.c:98:2: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 98 | parser.start = PyUnicode_AsUnicode (text); | ^~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ _jsonlib.c:99:2: warning: ‘PyUnicode_GetSize’ is deprecated [-Wdeprecated-declarations] 99 | parser.end = parser.start + PyUnicode_GetSize (text); | ^~~~~~ In file included from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/unicodeobject.h:177:43: note: declared here 177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( | ^~~~~~~~~~~~~~~~~ _jsonlib.c: In function ‘parse_string’: _jsonlib.c:310:3: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations] 310 | return PyUnicode_FromUnicode (NULL, 0); | ^~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ _jsonlib.c:348:2: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations] 348 | if ((unicode = PyUnicode_FromUnicode (start + 1, ii - 1))) | ^~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ _jsonlib.c: In function ‘parse_string_full’: _jsonlib.c:366:20: warning: variable ‘existing_size’ set but not used [-Wunused-but-set-variable] 366 | size_t new_size, existing_size; | ^~~~~~~~~~~~~ _jsonlib.c:396:5: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations] 396 | unicode = PyUnicode_FromUnicode (buffer, buffer_idx); | ^~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ _jsonlib.c: In function ‘read_4hex’: _jsonlib.c:450:2: warning: ‘PyLong_FromUnicode’ is deprecated [-Wdeprecated-declarations] 450 | py_long = PyLong_FromUnicode (start, 4, 16); | ^~~~~~~ In file included from /usr/include/python3.9/Python.h:94, from _jsonlib.c:18: /usr/include/python3.9/longobject.h:106:24: note: declared here 106 | PyAPI_FUNC(PyObject *) PyLong_FromUnicode(Py_UNICODE*, Py_ssize_t, int); | ^~~~~~~~~~~~~~~~~~ _jsonlib.c: In function ‘keyword_compare’: _jsonlib.c:550:26: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 550 | if (parser->end - index < len) | ^ _jsonlib.c: In function ‘parse_number’: _jsonlib.c:638:4: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations] 638 | if (!(str = PyUnicode_FromUnicode (parser->index, | ^~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ _jsonlib.c:643:15: error: too many arguments to function ‘PyFloat_FromString’ 643 | { object = PyFloat_FromString (str, NULL); } | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/Python.h:97, from _jsonlib.c:18: /usr/include/python3.9/floatobject.h:42:24: note: declared here 42 | PyAPI_FUNC(PyObject *) PyFloat_FromString(PyObject*); | ^~~~~~~~~~~~~~~~~~ _jsonlib.c:655:4: warning: ‘PyLong_FromUnicode’ is deprecated [-Wdeprecated-declarations] 655 | object = PyLong_FromUnicode (parser->index, | ^~~~~~ In file included from /usr/include/python3.9/Python.h:94, from _jsonlib.c:18: /usr/include/python3.9/longobject.h:106:24: note: declared here 106 | PyAPI_FUNC(PyObject *) PyLong_FromUnicode(Py_UNICODE*, Py_ssize_t, int); | ^~~~~~~~~~~~~~~~~~ _jsonlib.c: In function ‘serializer_validate_mapping_key’: _jsonlib.c:1186:13: warning: implicit declaration of function ‘PyString_CheckExact’; did you mean ‘PyLong_CheckExact’? [-Wimplicit-function-declaration] 1186 | || PyString_CheckExact (key) | ^~~~~~~~~~~~~~~~~~~ | PyLong_CheckExact _jsonlib.c:1188:13: warning: implicit declaration of function ‘PyString_Check’; did you mean ‘PyMapping_Check’? [-Wimplicit-function-declaration] 1188 | || PyString_Check (key) | ^~~~~~~~~~~~~~ | PyMapping_Check _jsonlib.c:1208:19: warning: implicit declaration of function ‘PyObject_Unicode’; did you mean ‘PyObject_Size’? [-Wimplicit-function-declaration] 1208 | if (!(new_key = PyObject_Unicode (key))) | ^~~~~~~~~~~~~~~~ | PyObject_Size _jsonlib.c:1208:17: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 1208 | if (!(new_key = PyObject_Unicode (key))) | ^ _jsonlib.c: In function ‘serialize_atom_fast’: _jsonlib.c:1406:6: warning: implicit declaration of function ‘PyInt_CheckExact’; did you mean ‘PyDict_CheckExact’? [-Wimplicit-function-declaration] 1406 | if (PyInt_CheckExact (value) || PyLong_CheckExact (value)) | ^~~~~~~~~~~~~~~~ | PyDict_CheckExact _jsonlib.c: In function ‘serialize_unicode’: _jsonlib.c:1466:2: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1466 | chars = PyUnicode_AS_UNICODE (value); | ^~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ _jsonlib.c:1467:2: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1467 | char_count = PyUnicode_GET_SIZE (value); | ^~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ _jsonlib.c:1467:2: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1467 | char_count = PyUnicode_GET_SIZE (value); | ^~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ _jsonlib.c:1467:2: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1467 | char_count = PyUnicode_GET_SIZE (value); | ^~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ _jsonlib.c: In function ‘serialize_bytes’: _jsonlib.c:1517:34: warning: implicit declaration of function ‘PyString_AS_STRING’; did you mean ‘PyBytes_AS_STRING’? [-Wimplicit-function-declaration] 1517 | if (!(unicode = ascii_constant (PyString_AS_STRING (value)))) | ^~~~~~~~~~~~~~~~~~ | PyBytes_AS_STRING _jsonlib.c:1517:34: warning: passing argument 1 of ‘ascii_constant’ makes pointer from integer without a cast [-Wint-conversion] 1517 | if (!(unicode = ascii_constant (PyString_AS_STRING (value)))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int _jsonlib.c:886:29: note: expected ‘const char *’ but argument is of type ‘int’ 886 | ascii_constant (const char *value) | ~~~~~~~~~~~~^~~~~ _jsonlib.c: In function ‘serialize_atom’: _jsonlib.c:1539:6: warning: implicit declaration of function ‘PyInt_Check’; did you mean ‘PySet_Check’? [-Wimplicit-function-declaration] 1539 | if (PyInt_Check (value) || PyLong_Check (value)) | ^~~~~~~~~~~ | PySet_Check _jsonlib.c: In function ‘escape_string_ascii’: _jsonlib.c:1702:2: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1702 | old_buffer = PyUnicode_AS_UNICODE (value); | ^~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ _jsonlib.c:1703:2: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1703 | old_buffer_size = PyUnicode_GET_SIZE (value); | ^~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ _jsonlib.c:1703:2: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1703 | old_buffer_size = PyUnicode_GET_SIZE (value); | ^~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ _jsonlib.c:1703:2: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1703 | old_buffer_size = PyUnicode_GET_SIZE (value); | ^~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ _jsonlib.c:1751:2: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations] 1751 | if (!(retval = PyUnicode_FromUnicode (NULL, new_buffer_size))) | ^~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ _jsonlib.c:1755:2: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1755 | p = PyUnicode_AS_UNICODE (retval); | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ _jsonlib.c: In function ‘escape_string_unicode’: _jsonlib.c:1782:2: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1782 | old_buffer = PyUnicode_AS_UNICODE (value); | ^~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ _jsonlib.c:1783:2: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1783 | old_buffer_size = PyUnicode_GET_SIZE (value); | ^~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ _jsonlib.c:1783:2: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1783 | old_buffer_size = PyUnicode_GET_SIZE (value); | ^~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ _jsonlib.c:1783:2: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1783 | old_buffer_size = PyUnicode_GET_SIZE (value); | ^~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ _jsonlib.c:1821:2: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations] 1821 | if (!(retval = PyUnicode_FromUnicode (NULL, new_buffer_size))) | ^~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ _jsonlib.c:1825:2: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1825 | p = PyUnicode_AS_UNICODE (retval); | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ _jsonlib.c: In function ‘serialize_decimal’: _jsonlib.c:1931:8: warning: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 1931 | c_str = PyString_AS_STRING (str); | ^ _jsonlib.c: In function ‘serializer_append_bytes’: _jsonlib.c:1970:37: warning: passing argument 2 of ‘serializer_append_ascii’ makes pointer from integer without a cast [-Wint-conversion] 1970 | return serializer_append_ascii (s, PyString_AS_STRING (obj)); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | int _jsonlib.c:865:40: note: expected ‘const char *’ but argument is of type ‘int’ 865 | serializer_append_ascii (Serializer *, const char *); | ^~~~~~~~~~~~ _jsonlib.c: In function ‘serializer_append_unicode’: _jsonlib.c:1993:2: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1993 | Py_UNICODE *text = PyUnicode_AS_UNICODE (obj); | ^~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ _jsonlib.c:1994:2: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1994 | Py_ssize_t ii, len_text = PyUnicode_GET_SIZE (obj); | ^~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ _jsonlib.c:1994:2: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1994 | Py_ssize_t ii, len_text = PyUnicode_GET_SIZE (obj); | ^~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ _jsonlib.c:1994:2: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1994 | Py_ssize_t ii, len_text = PyUnicode_GET_SIZE (obj); | ^~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ _jsonlib.c: In function ‘buffer_serializer_merge’: _jsonlib.c:2089:3: warning: ‘PyUnicode_Encode’ is deprecated [-Wdeprecated-declarations] 2089 | merged = PyUnicode_Encode (raw_merged, total, s->encoding, | ^~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:773:42: note: declared here 773 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_Encode( | ^~~~~~~~~~~~~~~~ _jsonlib.c:2095:3: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations] 2095 | merged = PyUnicode_FromUnicode (raw_merged, total); | ^~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ _jsonlib.c: In function ‘stream_serializer_flush’: _jsonlib.c:2123:3: warning: ‘PyUnicode_Encode’ is deprecated [-Wdeprecated-declarations] 2123 | obj = PyUnicode_Encode (base->buffer, base->buffer_size, | ^~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:773:42: note: declared here 773 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_Encode( | ^~~~~~~~~~~~~~~~ _jsonlib.c:2129:3: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations] 2129 | obj = PyUnicode_FromUnicode(base->buffer, base->buffer_size); | ^~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from _jsonlib.c:18: /usr/include/python3.9/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ _jsonlib.c: In function ‘init_jsonlib’: _jsonlib.c:2161:2: warning: implicit declaration of function ‘Py_InitModule3’ [-Wimplicit-function-declaration] 2161 | Py_InitModule3 ("_jsonlib", jsonlib_methods, jsonlib_doc); | ^~~~~~~~~~~~~~ _jsonlib.c:2162:1: warning: control reaches end of non-void function [-Wreturn-type] 2162 | } | ^ error: command '/usr/bin/gcc' failed with exit code 1 error: Bad exit status from /var/tmp/rpm-tmp.EYXCZf (%build) Bad exit status from /var/tmp/rpm-tmp.EYXCZf (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-jsonlib.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 598, 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 --target x86_64 --nodeps /builddir/build/SPECS/python-jsonlib.spec