==> Synchronizing chroot copy [/chroot/i686/root] -> [build]...done
==> Making package: python-pyodbc 4.0.34-1 (Tue Jul 26 18:59:57 2022)
==> Retrieving sources...
  -> Found 4.0.34.tar.gz
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha512sums...
    4.0.34.tar.gz ... Passed
==> Making package: python-pyodbc 4.0.34-1 (Tue 26 Jul 2022 07:00:12 PM EDT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[?25lresolving dependencies...
looking for conflicting packages...

Packages (3) libnsl-2.0.0-1.0  python-3.10.5-1.1  unixodbc-2.3.11-1.1

Total Download Size:    0.25 MiB
Total Installed Size:  53.58 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 unixodbc-2.3.11-1.1-i686 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing libnsl...
installing python...
Optional dependencies for python
    python-setuptools
    python-pip
    sqlite [installed]
    mpdecimal: for decimal
    xz: for lzma [installed]
    tk: for tkinter
installing unixodbc...
[?25h==> Checking buildtime dependencies...
==> Installing missing dependencies...
[?25lresolving dependencies...
looking for conflicting packages...

Packages (13) python-appdirs-1.4.4-6.13  python-jaraco.context-4.1.1-2.0
              python-jaraco.functools-3.5.1-1.0  python-jaraco.text-3.8.1-1.0
              python-more-itertools-8.13.0-2.0  python-nspektr-0.4.0-1.0
              python-ordered-set-4.0.2-6.11  python-packaging-21.3-1.0
              python-pyparsing-3.0.9-1.0  python-tomli-2.0.1-1.0
              python-trove-classifiers-2022.6.26-1.0
              python-validate-pyproject-0.9-1.0  python-setuptools-1:61.3.1-1.0

Total Installed Size:  5.74 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing python-appdirs...
installing python-more-itertools...
installing python-jaraco.functools...
installing python-jaraco.context...
installing python-jaraco.text...
installing python-pyparsing...
Optional dependencies for python-pyparsing
    python-railroad-diagrams: for generating Railroad Diagrams
    python-jinja: for generating Railroad Diagrams
installing python-packaging...
installing python-nspektr...
installing python-ordered-set...
installing python-tomli...
installing python-trove-classifiers...
installing python-validate-pyproject...
installing python-setuptools...
[?25h==> Retrieving sources...
  -> Found 4.0.34.tar.gz
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting 4.0.34.tar.gz with bsdtar
==> Starting build()...
/bin/sh: line 1: git: command not found
WARNING: git describe failed with: 32512 
WARNING: Unable to determine version.  Using 4.0.0.0
running build
running build_ext
building 'pyodbc' extension
creating build
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/src
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -ffat-lto-objects -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.dev0 -I/usr/include/python3.10 -c src/buffer.cpp -o build/temp.linux-x86_64-3.10/src/buffer.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=4 -I/usr/include
In file included from src/pyodbc.h:172,
                 from src/buffer.cpp:12:
src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’:
src/pyodbccompat.h:75:33: warning: PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
   75 |     return PyUnicode_FromUnicode(0, length);
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from src/pyodbc.h:45:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_UNICODE* Text_Buffer(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:86:12: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
   86 |     return PyUnicode_AS_UNICODE(o);
      |            ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t Text_Size(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t TextCopyToUnicode(Py_UNICODE*, PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:147:24: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  147 |         memcpy(buffer, PyUnicode_AS_UNICODE(o), cch * sizeof(Py_UNICODE));
      |                        ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -ffat-lto-objects -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.dev0 -I/usr/include/python3.10 -c src/cnxninfo.cpp -o build/temp.linux-x86_64-3.10/src/cnxninfo.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=4 -I/usr/include
In file included from src/pyodbc.h:172,
                 from src/cnxninfo.cpp:7:
src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’:
src/pyodbccompat.h:75:33: warning: PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
   75 |     return PyUnicode_FromUnicode(0, length);
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from src/pyodbc.h:45:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_UNICODE* Text_Buffer(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:86:12: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
   86 |     return PyUnicode_AS_UNICODE(o);
      |            ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t Text_Size(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t TextCopyToUnicode(Py_UNICODE*, PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:147:24: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  147 |         memcpy(buffer, PyUnicode_AS_UNICODE(o), cch * sizeof(Py_UNICODE));
      |                        ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -ffat-lto-objects -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.dev0 -I/usr/include/python3.10 -c src/connection.cpp -o build/temp.linux-x86_64-3.10/src/connection.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=4 -I/usr/include
In file included from src/pyodbc.h:172,
                 from src/connection.cpp:11:
src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’:
src/pyodbccompat.h:75:33: warning: PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
   75 |     return PyUnicode_FromUnicode(0, length);
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from src/pyodbc.h:45:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_UNICODE* Text_Buffer(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:86:12: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
   86 |     return PyUnicode_AS_UNICODE(o);
      |            ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t Text_Size(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t TextCopyToUnicode(Py_UNICODE*, PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:147:24: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  147 |         memcpy(buffer, PyUnicode_AS_UNICODE(o), cch * sizeof(Py_UNICODE));
      |                        ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/connection.cpp: In function ‘bool ApplyPreconnAttrs(HDBC, SQLINTEGER, PyObject*, char*)’:
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/connection.cpp:189:18: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  189 |         ivalue = PyUnicode_AS_UNICODE(value);
      |                  ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -ffat-lto-objects -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.dev0 -I/usr/include/python3.10 -c src/cursor.cpp -o build/temp.linux-x86_64-3.10/src/cursor.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=4 -I/usr/include
In file included from src/pyodbc.h:172,
                 from src/cursor.cpp:15:
src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’:
src/pyodbccompat.h:75:33: warning: PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
   75 |     return PyUnicode_FromUnicode(0, length);
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from src/pyodbc.h:45:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_UNICODE* Text_Buffer(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:86:12: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
   86 |     return PyUnicode_AS_UNICODE(o);
      |            ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t Text_Size(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t TextCopyToUnicode(Py_UNICODE*, PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:147:24: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  147 |         memcpy(buffer, PyUnicode_AS_UNICODE(o), cch * sizeof(Py_UNICODE));
      |                        ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -ffat-lto-objects -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.dev0 -I/usr/include/python3.10 -c src/errors.cpp -o build/temp.linux-x86_64-3.10/src/errors.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=4 -I/usr/include
In file included from src/pyodbc.h:172,
                 from src/errors.cpp:2:
src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’:
src/pyodbccompat.h:75:33: warning: PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
   75 |     return PyUnicode_FromUnicode(0, length);
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from src/pyodbc.h:45:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_UNICODE* Text_Buffer(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:86:12: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
   86 |     return PyUnicode_AS_UNICODE(o);
      |            ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t Text_Size(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t TextCopyToUnicode(Py_UNICODE*, PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:147:24: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  147 |         memcpy(buffer, PyUnicode_AS_UNICODE(o), cch * sizeof(Py_UNICODE));
      |                        ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.10/Python.h:130:
src/errors.cpp: In function ‘PyObject* RaiseErrorV(const char*, PyObject*, const char*, ...)’:
/usr/include/python3.10/ceval.h:24:34: warning: PyObject* PyEval_CallObjectWithKeywords(PyObject*, PyObject*, PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
   24 |     PyEval_CallObjectWithKeywords(callable, arg, (PyObject *)NULL)
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/errors.cpp:91:18: note: in expansion of macro ‘PyEval_CallObject’
   91 |         pError = PyEval_CallObject(exc_class, pAttrs);
      |                  ^~~~~~~~~~~~~~~~~
/usr/include/python3.10/ceval.h:17:43: note: declared here
   17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/errors.cpp: In function ‘PyObject* GetError(const char*, PyObject*, PyObject*)’:
/usr/include/python3.10/ceval.h:24:34: warning: PyObject* PyEval_CallObjectWithKeywords(PyObject*, PyObject*, PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
   24 |     PyEval_CallObjectWithKeywords(callable, arg, (PyObject *)NULL)
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/errors.cpp:171:14: note: in expansion of macro ‘PyEval_CallObject’
  171 |     pError = PyEval_CallObject(exc_class, pAttrs); // pError will incref pAttrs
      |              ^~~~~~~~~~~~~~~~~
/usr/include/python3.10/ceval.h:17:43: note: declared here
   17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/errors.cpp: In function ‘PyObject* GetErrorFromHandle(Connection*, const char*, HDBC, HSTMT)’:
src/errors.cpp:328:34: warning: Py_ssize_t PyUnicode_GetSize(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  328 |     if (!msg || PyUnicode_GetSize(msg.Get()) == 0)
      |                 ~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/usr/include/python3.10/unicodeobject.h:177:43: note: declared here
  177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize(
      |                                           ^~~~~~~~~~~~~~~~~
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -ffat-lto-objects -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.dev0 -I/usr/include/python3.10 -c src/getdata.cpp -o build/temp.linux-x86_64-3.10/src/getdata.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=4 -I/usr/include
In file included from src/pyodbc.h:172,
                 from src/getdata.cpp:5:
src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’:
src/pyodbccompat.h:75:33: warning: PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
   75 |     return PyUnicode_FromUnicode(0, length);
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from src/pyodbc.h:45:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_UNICODE* Text_Buffer(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:86:12: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
   86 |     return PyUnicode_AS_UNICODE(o);
      |            ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t Text_Size(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t TextCopyToUnicode(Py_UNICODE*, PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:147:24: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  147 |         memcpy(buffer, PyUnicode_AS_UNICODE(o), cch * sizeof(Py_UNICODE));
      |                        ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -ffat-lto-objects -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.dev0 -I/usr/include/python3.10 -c src/params.cpp -o build/temp.linux-x86_64-3.10/src/params.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=4 -I/usr/include
In file included from src/pyodbc.h:172,
                 from src/params.cpp:10:
src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’:
src/pyodbccompat.h:75:33: warning: PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
   75 |     return PyUnicode_FromUnicode(0, length);
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from src/pyodbc.h:45:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_UNICODE* Text_Buffer(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:86:12: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
   86 |     return PyUnicode_AS_UNICODE(o);
      |            ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t Text_Size(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t TextCopyToUnicode(Py_UNICODE*, PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:147:24: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  147 |         memcpy(buffer, PyUnicode_AS_UNICODE(o), cch * sizeof(Py_UNICODE));
      |                        ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/params.cpp: In function ‘int PyToCType(Cursor*, unsigned char**, PyObject*, ParamInfo*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/params.cpp:326:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  326 |         Py_ssize_t len = PyUnicode_GET_SIZE(cell);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/params.cpp:326:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  326 |         Py_ssize_t len = PyUnicode_GET_SIZE(cell);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/params.cpp:326:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  326 |         Py_ssize_t len = PyUnicode_GET_SIZE(cell);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:283:21: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  283 |     ((const char *)(PyUnicode_AS_UNICODE(op)))
      |                     ^~~~~~~~~~~~~~~~~~~~
src/params.cpp:387:33: note: in expansion of macro ‘PyUnicode_AS_DATA’
  387 |                 memcpy(*outbuf, PyUnicode_AS_DATA(cell), len);
      |                                 ^~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -ffat-lto-objects -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.dev0 -I/usr/include/python3.10 -c src/pyodbccompat.cpp -o build/temp.linux-x86_64-3.10/src/pyodbccompat.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=4 -I/usr/include
In file included from src/pyodbc.h:172,
                 from src/pyodbccompat.cpp:1:
src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’:
src/pyodbccompat.h:75:33: warning: PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
   75 |     return PyUnicode_FromUnicode(0, length);
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from src/pyodbc.h:45:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_UNICODE* Text_Buffer(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:86:12: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
   86 |     return PyUnicode_AS_UNICODE(o);
      |            ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t Text_Size(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t TextCopyToUnicode(Py_UNICODE*, PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:147:24: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  147 |         memcpy(buffer, PyUnicode_AS_UNICODE(o), cch * sizeof(Py_UNICODE));
      |                        ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbccompat.cpp: In function ‘bool Text_EqualsI(PyObject*, const char*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.cpp:14:25: note: in expansion of macro ‘PyUnicode_GET_SIZE’
   14 |     Py_ssize_t cchLHS = PyUnicode_GET_SIZE(lhs);
      |                         ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.cpp:14:25: note: in expansion of macro ‘PyUnicode_GET_SIZE’
   14 |     Py_ssize_t cchLHS = PyUnicode_GET_SIZE(lhs);
      |                         ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.cpp:14:25: note: in expansion of macro ‘PyUnicode_GET_SIZE’
   14 |     Py_ssize_t cchLHS = PyUnicode_GET_SIZE(lhs);
      |                         ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.cpp:19:21: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
   19 |     Py_UNICODE* p = PyUnicode_AS_UNICODE(lhs);
      |                     ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -ffat-lto-objects -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.dev0 -I/usr/include/python3.10 -c src/pyodbcdbg.cpp -o build/temp.linux-x86_64-3.10/src/pyodbcdbg.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=4 -I/usr/include
In file included from src/pyodbc.h:172,
                 from src/pyodbcdbg.cpp:2:
src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’:
src/pyodbccompat.h:75:33: warning: PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
   75 |     return PyUnicode_FromUnicode(0, length);
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from src/pyodbc.h:45:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_UNICODE* Text_Buffer(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:86:12: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
   86 |     return PyUnicode_AS_UNICODE(o);
      |            ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t Text_Size(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t TextCopyToUnicode(Py_UNICODE*, PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:147:24: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  147 |         memcpy(buffer, PyUnicode_AS_UNICODE(o), cch * sizeof(Py_UNICODE));
      |                        ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -ffat-lto-objects -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.dev0 -I/usr/include/python3.10 -c src/pyodbcmodule.cpp -o build/temp.linux-x86_64-3.10/src/pyodbcmodule.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=4 -I/usr/include
In file included from src/pyodbc.h:172,
                 from src/pyodbcmodule.cpp:11:
src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’:
src/pyodbccompat.h:75:33: warning: PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
   75 |     return PyUnicode_FromUnicode(0, length);
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from src/pyodbc.h:45:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_UNICODE* Text_Buffer(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:86:12: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
   86 |     return PyUnicode_AS_UNICODE(o);
      |            ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t Text_Size(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t TextCopyToUnicode(Py_UNICODE*, PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:147:24: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  147 |         memcpy(buffer, PyUnicode_AS_UNICODE(o), cch * sizeof(Py_UNICODE));
      |                        ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbcmodule.cpp: In function ‘void init_locale_info()’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbcmodule.cpp:276:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  276 |         if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1)
      |                                       ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbcmodule.cpp:276:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  276 |         if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1)
      |                                       ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbcmodule.cpp:276:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  276 |         if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1)
      |                                       ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbcmodule.cpp:277:25: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  277 |             chDecimal = PyUnicode_AS_UNICODE(value)[0];
      |                         ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbcmodule.cpp: In function ‘PyObject* mod_setdecimalsep(PyObject*, PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbcmodule.cpp:719:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  719 |         if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1)
      |                                       ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbcmodule.cpp:719:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  719 |         if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1)
      |                                       ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbcmodule.cpp:719:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  719 |         if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1)
      |                                       ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbcmodule.cpp:720:25: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  720 |             chDecimal = PyUnicode_AS_UNICODE(value)[0];
      |                         ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbcmodule.cpp: In function ‘PyObject* mod_getdecimalsep(PyObject*)’:
src/pyodbcmodule.cpp:728:33: warning: PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  728 |     return PyUnicode_FromUnicode(&chDecimal, 1);
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -ffat-lto-objects -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.dev0 -I/usr/include/python3.10 -c src/row.cpp -o build/temp.linux-x86_64-3.10/src/row.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=4 -I/usr/include
In file included from src/pyodbc.h:172,
                 from src/row.cpp:12:
src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’:
src/pyodbccompat.h:75:33: warning: PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
   75 |     return PyUnicode_FromUnicode(0, length);
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from src/pyodbc.h:45:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_UNICODE* Text_Buffer(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:86:12: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
   86 |     return PyUnicode_AS_UNICODE(o);
      |            ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t Text_Size(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t TextCopyToUnicode(Py_UNICODE*, PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:147:24: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  147 |         memcpy(buffer, PyUnicode_AS_UNICODE(o), cch * sizeof(Py_UNICODE));
      |                        ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -ffat-lto-objects -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.dev0 -I/usr/include/python3.10 -c src/textenc.cpp -o build/temp.linux-x86_64-3.10/src/textenc.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=4 -I/usr/include
In file included from src/pyodbc.h:172,
                 from src/textenc.cpp:2:
src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’:
src/pyodbccompat.h:75:33: warning: PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
   75 |     return PyUnicode_FromUnicode(0, length);
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from src/pyodbc.h:45:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
  551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      |                                          ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_UNICODE* Text_Buffer(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:86:12: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
   86 |     return PyUnicode_AS_UNICODE(o);
      |            ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t Text_Size(PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:126:40: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
      |                                        ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h: In function ‘Py_ssize_t TextCopyToUnicode(Py_UNICODE*, PyObject*)’:
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  261 |       PyUnicode_WSTR_LENGTH(op) :                    \
      |       ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
      |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
  264 |        PyUnicode_WSTR_LENGTH(op)))
      |        ^~~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:146:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
      |                          ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;]
  279 |       PyUnicode_AsUnicode(_PyObject_CAST(op)))
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
src/pyodbccompat.h:147:24: note: in expansion of macro ‘PyUnicode_AS_UNICODE’
  147 |         memcpy(buffer, PyUnicode_AS_UNICODE(o), cch * sizeof(Py_UNICODE));
      |                        ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
creating build/lib.linux-x86_64-3.10
g++ -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.10/src/buffer.o build/temp.linux-x86_64-3.10/src/cnxninfo.o build/temp.linux-x86_64-3.10/src/connection.o build/temp.linux-x86_64-3.10/src/cursor.o build/temp.linux-x86_64-3.10/src/errors.o build/temp.linux-x86_64-3.10/src/getdata.o build/temp.linux-x86_64-3.10/src/params.o build/temp.linux-x86_64-3.10/src/pyodbccompat.o build/temp.linux-x86_64-3.10/src/pyodbcdbg.o build/temp.linux-x86_64-3.10/src/pyodbcmodule.o build/temp.linux-x86_64-3.10/src/row.o build/temp.linux-x86_64-3.10/src/textenc.o -L/usr/lib -lodbc -o build/lib.linux-x86_64-3.10/pyodbc.cpython-310-i386-linux-gnu.so -L/usr/lib -lodbc
==> Entering fakeroot environment...
==> Starting package()...
/bin/sh: line 1: git: command not found
WARNING: git describe failed with: 32512 
WARNING: Unable to determine version.  Using 4.0.0.0
running install
/usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running build
running build_ext
running install_lib
creating /build/python-pyodbc/pkg/python-pyodbc/usr
creating /build/python-pyodbc/pkg/python-pyodbc/usr/lib
creating /build/python-pyodbc/pkg/python-pyodbc/usr/lib/python3.10
creating /build/python-pyodbc/pkg/python-pyodbc/usr/lib/python3.10/site-packages
copying build/lib.linux-x86_64-3.10/pyodbc.cpython-310-i386-linux-gnu.so -> /build/python-pyodbc/pkg/python-pyodbc/usr/lib/python3.10/site-packages
writing byte-compilation script '/tmp/tmp0zfeb7pr.py'
/usr/bin/python /tmp/tmp0zfeb7pr.py
removing /tmp/tmp0zfeb7pr.py
running install_data
copying src/pyodbc.pyi -> /build/python-pyodbc/pkg/python-pyodbc/usr/
running install_egg_info
running egg_info
creating pyodbc.egg-info
writing pyodbc.egg-info/PKG-INFO
writing dependency_links to pyodbc.egg-info/dependency_links.txt
writing top-level names to pyodbc.egg-info/top_level.txt
writing manifest file 'pyodbc.egg-info/SOURCES.txt'
reading manifest file 'pyodbc.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
adding license file 'LICENSE.txt'
writing manifest file 'pyodbc.egg-info/SOURCES.txt'
Copying pyodbc.egg-info to /build/python-pyodbc/pkg/python-pyodbc/usr/lib/python3.10/site-packages/pyodbc-4.0.dev0-py3.10.egg-info
running install_scripts
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "python-pyodbc"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: python-pyodbc 4.0.34-1 (Tue 26 Jul 2022 07:01:17 PM EDT)
==> Cleaning up...
==> Removing installed dependencies...
[?25lchecking dependencies...
:: glib2 optionally requires python: gdbus-codegen, glib-genmarshal, glib-mkenums, gtester-report
:: libxml2 optionally requires python: Python bindings
:: util-linux optionally requires python: python bindings to libmount

Packages (16) libnsl-2.0.0-1.0  python-3.10.5-1.1  python-appdirs-1.4.4-6.13
              python-jaraco.context-4.1.1-2.0
              python-jaraco.functools-3.5.1-1.0  python-jaraco.text-3.8.1-1.0
              python-more-itertools-8.13.0-2.0  python-nspektr-0.4.0-1.0
              python-ordered-set-4.0.2-6.11  python-packaging-21.3-1.0
              python-pyparsing-3.0.9-1.0  python-setuptools-1:61.3.1-1.0
              python-tomli-2.0.1-1.0  python-trove-classifiers-2022.6.26-1.0
              python-validate-pyproject-0.9-1.0  unixodbc-2.3.11-1.1

Total Removed Size:  59.32 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
removing unixodbc...
removing python-setuptools...
removing python-validate-pyproject...
removing python-trove-classifiers...
removing python-tomli...
removing python-ordered-set...
removing python-nspektr...
removing python-packaging...
removing python-pyparsing...
removing python-jaraco.text...
removing python-jaraco.functools...
removing python-more-itertools...
removing python-jaraco.context...
removing python-appdirs...
removing python...
removing libnsl...
[?25h