Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/p/pyodbc/pyodbc_4.0.32-1+b1_amd64.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/pyodbc-4.0.32-1+b1t89sdfgn/pyodbc_4.0.32-1+b1_amd64.buildinfo Get source package info: pyodbc=4.0.32-1 Source URL: http://snapshot.notset.fr/mr/package/pyodbc/4.0.32-1/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.71-2 automake=1:1.16.5-1.1 autopoint=0.21-4 autotools-dev=20180224.1+nmu1 base-files=12 base-passwd=3.5.52 bash=5.1-3.1 binutils=2.37-9 binutils-common=2.37-9 binutils-x86-64-linux-gnu=2.37-9 bsdextrautils=2.37.2-4 bsdutils=1:2.37.2-4 build-essential=12.9 bzip2=1.0.8-4 coreutils=8.32-4.1 cpp=4:11.2.0-2 cpp-11=11.2.0-10 dash=0.5.11+git20210903+057cd650a4ed-3 debconf=1.5.79 debhelper=13.5.2 debianutils=5.5-1 dh-autoreconf=20 dh-python=5.20211114 dh-strip-nondeterminism=1.12.0-2 diffutils=1:3.7-5 dpkg=1.20.9 dpkg-dev=1.20.9 dwz=0.14-1 file=1:5.39-3 findutils=4.8.0-1 g++=4:11.2.0-2 g++-11=11.2.0-10 gcc=4:11.2.0-2 gcc-11=11.2.0-10 gcc-11-base=11.2.0-10 gettext=0.21-4 gettext-base=0.21-4 grep=3.7-1 groff-base=1.22.4-7 gzip=1.10-4 hostname=3.23 init-system-helpers=1.60 intltool-debian=0.35.0+20060710.5 libacl1=2.3.1-1 libarchive-zip-perl=1.68-1 libasan6=11.2.0-10 libatomic1=11.2.0-10 libattr1=1:2.5.1-1 libaudit-common=1:3.0.6-1 libaudit1=1:3.0.6-1 libbinutils=2.37-9 libblkid1=2.37.2-4 libbsd0=0.11.3-1 libbz2-1.0=1.0.8-4 libc-bin=2.32-4 libc-dev-bin=2.32-4 libc6=2.32-4 libc6-dev=2.32-4 libcap-ng0=0.7.9-2.2+b1 libcap2=1:2.44-1 libcc1-0=11.2.0-10 libcom-err2=1.46.4-1 libcrypt-dev=1:4.4.26-1 libcrypt1=1:4.4.26-1 libctf-nobfd0=2.37-9 libctf0=2.37-9 libdb5.3=5.3.28+dfsg1-0.8 libdebconfclient0=0.261 libdebhelper-perl=13.5.2 libdpkg-perl=1.20.9 libedit2=3.1-20210910-1 libelf1=0.186-1 libexpat1=2.4.1-3 libexpat1-dev=2.4.1-3 libffi8=3.4.2-3 libfile-stripnondeterminism-perl=1.12.0-2 libgcc-11-dev=11.2.0-10 libgcc-s1=11.2.0-10 libgcrypt20=1.9.4-3+b1 libgdbm-compat4=1.22-1 libgdbm6=1.22-1 libgmp10=2:6.2.1+dfsg-3 libgomp1=11.2.0-10 libgpg-error0=1.42-3 libgssapi-krb5-2=1.18.3-7 libicu67=67.1-7 libisl23=0.24-2 libitm1=11.2.0-10 libjs-jquery=3.5.1+dfsg+~3.5.5-8 libjs-sphinxdoc=4.2.0-5 libjs-underscore=1.9.1~dfsg-4 libk5crypto3=1.18.3-7 libkeyutils1=1.6.1-2 libkrb5-3=1.18.3-7 libkrb5support0=1.18.3-7 liblsan0=11.2.0-10 libltdl-dev=2.4.6-15 libltdl7=2.4.6-15 liblz4-1=1.9.3-2 liblzma5=5.2.5-2 libmagic-mgc=1:5.39-3 libmagic1=1:5.39-3 libmd0=1.0.4-1 libmount1=2.37.2-4 libmpc3=1.2.1-1 libmpdec3=2.5.1-2 libmpfr6=4.1.0-3 libncursesw6=6.3-1 libnsl-dev=1.3.0-2 libnsl2=1.3.0-2 libodbc1=2.3.6-0.1+b1 libpam-modules=1.4.0-10 libpam-modules-bin=1.4.0-10 libpam-runtime=1.4.0-10 libpam0g=1.4.0-10 libpcre2-8-0=10.39-3 libpcre3=2:8.39-13 libperl5.32=5.32.1-6 libpipeline1=1.5.4-1 libpython3-all-dbg=3.9.8-1 libpython3-all-dev=3.9.8-1 libpython3-dbg=3.9.8-1 libpython3-dev=3.9.8-1 libpython3-stdlib=3.9.8-1 libpython3.10=3.10.0-5 libpython3.10-dbg=3.10.0-5 libpython3.10-dev=3.10.0-5 libpython3.10-minimal=3.10.0-5 libpython3.10-stdlib=3.10.0-5 libpython3.9=3.9.9-1 libpython3.9-dbg=3.9.9-1 libpython3.9-dev=3.9.9-1 libpython3.9-minimal=3.9.9-1 libpython3.9-stdlib=3.9.9-1 libquadmath0=11.2.0-10 libreadline8=8.1-2 libseccomp2=2.5.2-2 libselinux1=3.3-1 libsigsegv2=2.13-1 libsmartcols1=2.37.2-4 libsqlite3-0=3.36.0-2 libssl1.1=1.1.1l-1 libstdc++-11-dev=11.2.0-10 libstdc++6=11.2.0-10 libsub-override-perl=0.09-2 libsystemd0=249.6-2 libtinfo6=6.3-1 libtirpc-common=1.3.2-2 libtirpc-dev=1.3.2-2 libtirpc3=1.3.2-2 libtool=2.4.6-15 libtsan0=11.2.0-10 libubsan1=11.2.0-10 libuchardet0=0.0.7-1 libudev1=249.6-2 libunistring2=0.9.10-6 libuuid1=2.37.2-4 libxml2=2.9.12+dfsg-5+b1 libzstd1=1.4.8+dfsg-3 linux-libc-dev=5.14.16-1 login=1:4.8.1-2 lsb-base=11.1.0 m4=1.4.18-5 mailcap=3.70 make=4.3-4.1 man-db=2.9.4-2 mawk=1.3.4.20200120-2 media-types=4.0.0 mime-support=3.66 ncurses-base=6.3-1 ncurses-bin=6.3-1 odbcinst=2.3.6-0.1+b1 odbcinst1debian2=2.3.6-0.1+b1 patch=2.7.6-7 perl=5.32.1-6 perl-base=5.32.1-6 perl-modules-5.32=5.32.1-6 po-debconf=1.0.21+nmu1 python3=3.9.8-1 python3-all=3.9.8-1 python3-all-dbg=3.9.8-1 python3-all-dev=3.9.8-1 python3-dbg=3.9.8-1 python3-dev=3.9.8-1 python3-distutils=3.9.9-2 python3-lib2to3=3.9.9-2 python3-minimal=3.9.8-1 python3.10=3.10.0-5 python3.10-dbg=3.10.0-5 python3.10-dev=3.10.0-5 python3.10-minimal=3.10.0-5 python3.9=3.9.9-1 python3.9-dbg=3.9.9-1 python3.9-dev=3.9.9-1 python3.9-minimal=3.9.9-1 readline-common=8.1-2 rpcsvc-proto=1.4.2-4 sed=4.8-1 sensible-utils=0.0.17 sysvinit-utils=3.00-1 tar=1.34+dfsg-1 tzdata=2021e-1 unixodbc-dev=2.3.6-0.1+b1 util-linux=2.37.2-4 xz-utils=5.2.5-2 zlib1g=1:1.2.11.dfsg-2 zlib1g-dev=1:1.2.11.dfsg-2 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210908T025933Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210908T025933Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20211118T084946Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d pyodbc=4.0.32-1 && mkdir -p /build/pyodbc-lxSb5O && dpkg-source --no-check -x /*.dsc /build/pyodbc-lxSb5O/pyodbc-4.0.32 && cd /build/pyodbc-lxSb5O/pyodbc-4.0.32 && { printf '%s' 'pyodbc (4.0.32-1+b1) sid; urgency=low, binary-only=yes * Binary-only non-maintainer upload for amd64; no source changes. * Add Python 3.10 as supported version -- amd64 / i386 Build Daemon (x86-ubc-01) Thu, 18 Nov 2021 12:52:52 +0000 '; cat debian/changelog; } > debian/changelog.debrebuild && mv debian/changelog.debrebuild debian/changelog && chown -R builduser:builduser /build/pyodbc-lxSb5O" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/pyodbc-lxSb5O/pyodbc-4.0.32 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" LC_COLLATE="C.UTF-8" SOURCE_DATE_EPOCH="1637239972" DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -uc -a amd64 --build=any" --customize-hook=sync-out /build/pyodbc-lxSb5O /tmp/pyodbc-4.0.32-1+b1t89sdfgn bookworm /dev/null deb http://snapshot.notset.fr/archive/debian/20211118T084946Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: null I: using /tmp/mmdebstrap.AipQKBIEAj as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap.AipQKBIEAj Reading package lists... Building dependency tree... util-linux is already the newest version (2.37.2-4). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 134 kB of archives. After this operation, 397 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20211118T084946Z unstable/main amd64 libfakeroot amd64 1.26-1 [47.3 kB] Get:2 http://snapshot.notset.fr/archive/debian/20211118T084946Z unstable/main amd64 fakeroot amd64 1.26-1 [87.1 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 134 kB in 0s (1039 kB/s) Selecting previously unselected package libfakeroot:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 4669 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.26-1_amd64.deb ... Unpacking libfakeroot:amd64 (1.26-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.26-1_amd64.deb ... Unpacking fakeroot (1.26-1) ... Setting up libfakeroot:amd64 (1.26-1) ... Setting up fakeroot (1.26-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.32-4) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210908T025933Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210908T025933Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20211118T084946Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.AipQKBIEAj Get:1 http://snapshot.notset.fr/archive/debian/20210908T025933Z bookworm InRelease [112 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20211118T084946Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20210908T025933Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210908T025933Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210908T025933Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210908T025933Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210908T025933Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210908T025933Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20210908T025933Z bookworm/main Sources [11.6 MB] Get:4 http://snapshot.notset.fr/archive/debian/20210908T025933Z bookworm/main amd64 Packages [11.3 MB] Fetched 23.0 MB in 20s (1177 kB/s) Reading package lists... I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap.AipQKBIEAj I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d pyodbc=4.0.32-1 && mkdir -p /build/pyodbc-lxSb5O && dpkg-source --no-check -x /*.dsc /build/pyodbc-lxSb5O/pyodbc-4.0.32 && cd /build/pyodbc-lxSb5O/pyodbc-4.0.32 && { printf '%s' 'pyodbc (4.0.32-1+b1) sid; urgency=low, binary-only=yes * Binary-only non-maintainer upload for amd64; no source changes. * Add Python 3.10 as supported version -- amd64 / i386 Build Daemon (x86-ubc-01) Thu, 18 Nov 2021 12:52:52 +0000 '; cat debian/changelog; } > debian/changelog.debrebuild && mv debian/changelog.debrebuild debian/changelog && chown -R builduser:builduser /build/pyodbc-lxSb5O"' exec /tmp/mmdebstrap.AipQKBIEAj Reading package lists... NOTICE: 'pyodbc' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/python-team/packages/pyodbc.git Please use: git clone https://salsa.debian.org/python-team/packages/pyodbc.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 286 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210908T025933Z bookworm/main pyodbc 4.0.32-1 (dsc) [1695 B] Get:2 http://snapshot.notset.fr/archive/debian/20210908T025933Z bookworm/main pyodbc 4.0.32-1 (tar) [280 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210908T025933Z bookworm/main pyodbc 4.0.32-1 (diff) [4068 B] Fetched 286 kB in 0s (748 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'pyodbc_4.0.32-1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting pyodbc in /build/pyodbc-lxSb5O/pyodbc-4.0.32 dpkg-source: info: unpacking pyodbc_4.0.32.orig.tar.gz dpkg-source: info: unpacking pyodbc_4.0.32-1.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying 0001-Fix-stub-file-installation-location.patch I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/pyodbc-lxSb5O/pyodbc-4.0.32 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" LC_COLLATE="C.UTF-8" SOURCE_DATE_EPOCH="1637239972" DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -uc -a amd64 --build=any"' exec /tmp/mmdebstrap.AipQKBIEAj dpkg-buildpackage: info: source package pyodbc dpkg-buildpackage: info: source version 4.0.32-1+b1 dpkg-buildpackage: info: source distribution sid dpkg-buildpackage: info: source changed by amd64 / i386 Build Daemon (x86-ubc-01) dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 debian/rules clean dh clean --with python3 --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild I: pybuild base:237: python3.10 setup.py clean /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.core import setup, Command /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) running clean removing '/build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.10_pyodbc/build' (and everything under it) 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.10' does not exist -- can't clean it I: pybuild base:237: python3.9 setup.py clean /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) running clean removing '/build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.9_pyodbc/build' (and everything under it) 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.9' does not exist -- can't clean it I: pybuild base:237: python3.10-dbg setup.py clean /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.core import setup, Command /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:293: ResourceWarning: unclosed file <_io.TextIOWrapper name='/build/pyodbc-lxSb5O/pyodbc-4.0.32/PKG-INFO' mode='r' encoding='UTF-8'> return name, numbers ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 2190294 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:220: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> cflags = os.popen('odbc_config --cflags 2>/dev/null').read().strip() ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 2190295 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) running clean removing '/build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.10_dbg_pyodbc/build' (and everything under it) 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.10' does not exist -- can't clean it sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> I: pybuild base:237: python3.9-dbg setup.py clean /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:293: ResourceWarning: unclosed file <_io.TextIOWrapper name='/build/pyodbc-lxSb5O/pyodbc-4.0.32/PKG-INFO' mode='r' encoding='UTF-8'> return name, numbers ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 2190298 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:220: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> cflags = os.popen('odbc_config --cflags 2>/dev/null').read().strip() ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 2190299 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:223: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> ldflags = os.popen('odbc_config --libs 2>/dev/null').read().strip() ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) running clean removing '/build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.9_dbg_pyodbc/build' (and everything under it) 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.9' does not exist -- can't clean it dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary-arch dh binary-arch --with python3 --buildsystem=pybuild dh_update_autotools_config -a -O--buildsystem=pybuild dh_autoreconf -a -O--buildsystem=pybuild dh_auto_configure -a -O--buildsystem=pybuild I: pybuild base:237: python3.10 setup.py config /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.core import setup, Command /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) running config I: pybuild base:237: python3.9 setup.py config /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) running config I: pybuild base:237: python3.10-dbg setup.py config /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.core import setup, Command /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:293: ResourceWarning: unclosed file <_io.TextIOWrapper name='/build/pyodbc-lxSb5O/pyodbc-4.0.32/PKG-INFO' mode='r' encoding='UTF-8'> return name, numbers ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 2190347 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:220: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> cflags = os.popen('odbc_config --cflags 2>/dev/null').read().strip() ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 2190348 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) /usr/lib/python3.10/distutils/command/config.py:16: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead from distutils.sysconfig import customize_compiler running config sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> I: pybuild base:237: python3.9-dbg setup.py config /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:293: ResourceWarning: unclosed file <_io.TextIOWrapper name='/build/pyodbc-lxSb5O/pyodbc-4.0.32/PKG-INFO' mode='r' encoding='UTF-8'> return name, numbers ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 2190351 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:220: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> cflags = os.popen('odbc_config --cflags 2>/dev/null').read().strip() ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 2190352 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:223: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> ldflags = os.popen('odbc_config --libs 2>/dev/null').read().strip() ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) running config dh_auto_build -a -O--buildsystem=pybuild I: pybuild base:237: /usr/bin/python3.10 setup.py build /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.core import setup, Command /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) running build running build_py copying src/pyodbc.pyi -> /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.10_pyodbc/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 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10 -c src/buffer.cpp -o build/temp.linux-x86_64-3.10/src/buffer.o -Wno-write-strings 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 [-Wdeprecated-declarations] 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, from src/buffer.cpp:12: /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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10 -c src/cnxninfo.cpp -o build/temp.linux-x86_64-3.10/src/cnxninfo.o -Wno-write-strings 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 [-Wdeprecated-declarations] 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, from src/cnxninfo.cpp:7: /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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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/cnxninfo.cpp: In function ‘PyObject* GetHash(PyObject*)’: /usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:39: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 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 [-Wdeprecated-declarations] 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/cnxninfo.cpp:45:64: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 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 [-Wdeprecated-declarations] 262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:64: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 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 [-Wdeprecated-declarations] 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/cnxninfo.cpp:45:64: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 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/cnxninfo.cpp:45:38: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations] 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/pyodbc.h:45, from src/cnxninfo.cpp:7: /usr/include/python3.10/cpython/unicodeobject.h:780:42: note: declared here 780 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8( | ^~~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10 -c src/connection.cpp -o build/temp.linux-x86_64-3.10/src/connection.o -Wno-write-strings 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 [-Wdeprecated-declarations] 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, from src/connection.cpp:11: /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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10 -c src/cursor.cpp -o build/temp.linux-x86_64-3.10/src/cursor.o -Wno-write-strings 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 [-Wdeprecated-declarations] 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, from src/cursor.cpp:15: /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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10 -c src/errors.cpp -o build/temp.linux-x86_64-3.10/src/errors.o -Wno-write-strings 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 [-Wdeprecated-declarations] 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, from src/errors.cpp:2: /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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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:131, from src/pyodbc.h:45, from src/errors.cpp:2: 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 328 | if (!msg || PyUnicode_GetSize(msg.Get()) == 0) | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10/Python.h:83, from src/pyodbc.h:45, from src/errors.cpp:2: /usr/include/python3.10/unicodeobject.h:177:43: note: declared here 177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( | ^~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10 -c src/getdata.cpp -o build/temp.linux-x86_64-3.10/src/getdata.o -Wno-write-strings 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 [-Wdeprecated-declarations] 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, from src/getdata.cpp:5: /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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10 -c src/params.cpp -o build/temp.linux-x86_64-3.10/src/params.o -Wno-write-strings 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 [-Wdeprecated-declarations] 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, from src/params.cpp:10: /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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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( | ^~~~~~~~~~~~~~~~~~~ src/params.cpp: In function ‘bool ExecuteMulti(Cursor*, PyObject*, PyObject*)’: /usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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) : \ | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10/cpython/unicodeobject.h:268:6: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 268 | (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE) | ^~~~~~~~~~~~~~~~~~ src/params.cpp:1955:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1955 | int cb = PyUnicode_GET_DATA_SIZE(objCell) / 2; | ^~~~~~~~~~~~~~~~~~~~~~~ /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 [-Wdeprecated-declarations] 262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10/cpython/unicodeobject.h:268:6: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 268 | (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE) | ^~~~~~~~~~~~~~~~~~ src/params.cpp:1955:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1955 | int cb = PyUnicode_GET_DATA_SIZE(objCell) / 2; | ^~~~~~~~~~~~~~~~~~~~~~~ /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 [-Wdeprecated-declarations] 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))) | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10/cpython/unicodeobject.h:268:6: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 268 | (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE) | ^~~~~~~~~~~~~~~~~~ src/params.cpp:1955:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1955 | int cb = PyUnicode_GET_DATA_SIZE(objCell) / 2; | ^~~~~~~~~~~~~~~~~~~~~~~ /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 [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/params.cpp:1958:48: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 1958 | const Py_UNICODE* source = PyUnicode_AS_UNICODE(objCell); | ^~~~~~~~~~~~~~~~~~~~ /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:1963:53: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations] 1963 | bytes = PyUnicode_EncodeUTF8(source, cb, "strict"); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.10/cpython/unicodeobject.h:780:42: note: declared here 780 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8( | ^~~~~~~~~~~~~~~~~~~~ src/params.cpp:1966:54: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1966 | bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_NATIVE); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.10/cpython/unicodeobject.h:822:42: note: declared here 822 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ src/params.cpp:1969:54: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1969 | bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_LE); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.10/cpython/unicodeobject.h:822:42: note: declared here 822 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ src/params.cpp:1972:54: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1972 | bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_BE); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.10/cpython/unicodeobject.h:822:42: note: declared here 822 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10 -c src/pyodbccompat.cpp -o build/temp.linux-x86_64-3.10/src/pyodbccompat.o -Wno-write-strings 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 [-Wdeprecated-declarations] 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, from src/pyodbccompat.cpp:1: /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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10 -c src/pyodbcdbg.cpp -o build/temp.linux-x86_64-3.10/src/pyodbcdbg.o -Wno-write-strings 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 [-Wdeprecated-declarations] 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, from src/pyodbcdbg.cpp:2: /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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10 -c src/pyodbcmodule.cpp -o build/temp.linux-x86_64-3.10/src/pyodbcmodule.o -Wno-write-strings 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 [-Wdeprecated-declarations] 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, from src/pyodbcmodule.cpp:11: /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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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:694:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 694 | 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 [-Wdeprecated-declarations] 262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:694:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 694 | 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 [-Wdeprecated-declarations] 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:694:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 694 | 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 [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:695:25: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 695 | 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:703:33: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations] 703 | return PyUnicode_FromUnicode(&chDecimal, 1); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/pyodbc.h:45, from src/pyodbcmodule.cpp:11: /usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp: In function ‘PyObject* MakeConnectionString(PyObject*, PyObject*)’: src/pyodbcmodule.cpp:1335:45: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations] 1335 | PyObject* result = 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, from src/pyodbcmodule.cpp:11: /usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:1339:26: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 1339 | Py_UNICODE* buffer = PyUnicode_AS_UNICODE(result); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10 -c src/row.cpp -o build/temp.linux-x86_64-3.10/src/row.o -Wno-write-strings 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 [-Wdeprecated-declarations] 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, from src/row.cpp:12: /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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10 -c src/textenc.cpp -o build/temp.linux-x86_64-3.10/src/textenc.o -Wno-write-strings 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 [-Wdeprecated-declarations] 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, from src/textenc.cpp:2: /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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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 [-Wdeprecated-declarations] 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( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -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 -lodbc -o /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.10_pyodbc/build/pyodbc.cpython-310-x86_64-linux-gnu.so I: pybuild base:237: /usr/bin/python3 setup.py build /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) running build running build_py copying src/pyodbc.pyi -> /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.9_pyodbc/build running build_ext building 'pyodbc' extension creating build/temp.linux-x86_64-3.9 creating build/temp.linux-x86_64-3.9/src x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9 -c src/buffer.cpp -o build/temp.linux-x86_64-3.9/src/buffer.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/buffer.cpp:12: /usr/include/python3.9/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.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9 -c src/cnxninfo.cpp -o build/temp.linux-x86_64-3.9/src/cnxninfo.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/cnxninfo.cpp:7: /usr/include/python3.9/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.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp: In function ‘PyObject* GetHash(PyObject*)’: /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:39: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 261 | PyUnicode_WSTR_LENGTH(op) : \ | ^~~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:64: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:64: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 264 | PyUnicode_WSTR_LENGTH(op))) | ^~~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:64: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:38: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations] 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/cnxninfo.cpp:7: /usr/include/python3.9/cpython/unicodeobject.h:803:42: note: declared here 803 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8( | ^~~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9 -c src/connection.cpp -o build/temp.linux-x86_64-3.9/src/connection.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/connection.cpp:11: /usr/include/python3.9/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.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9 -c src/cursor.cpp -o build/temp.linux-x86_64-3.9/src/cursor.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/cursor.cpp:15: /usr/include/python3.9/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.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9 -c src/errors.cpp -o build/temp.linux-x86_64-3.9/src/errors.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/errors.cpp:2: /usr/include/python3.9/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.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/Python.h:141, from src/pyodbc.h:45, from src/errors.cpp:2: src/errors.cpp: In function ‘PyObject* RaiseErrorV(const char*, PyObject*, const char*, ...)’: /usr/include/python3.9/ceval.h:24:34: warning: ‘PyObject* PyEval_CallObjectWithKeywords(PyObject*, PyObject*, PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/ceval.h:24:34: warning: ‘PyObject* PyEval_CallObjectWithKeywords(PyObject*, PyObject*, PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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 [-Wdeprecated-declarations] 328 | if (!msg || PyUnicode_GetSize(msg.Get()) == 0) | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/errors.cpp:2: /usr/include/python3.9/unicodeobject.h:177:43: note: declared here 177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( | ^~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9 -c src/getdata.cpp -o build/temp.linux-x86_64-3.9/src/getdata.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/getdata.cpp:5: /usr/include/python3.9/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.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9 -c src/params.cpp -o build/temp.linux-x86_64-3.9/src/params.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9/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.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/params.cpp: In function ‘bool ExecuteMulti(Cursor*, PyObject*, PyObject*)’: /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 261 | PyUnicode_WSTR_LENGTH(op) : \ | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:268:6: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 268 | (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE) | ^~~~~~~~~~~~~~~~~~ src/params.cpp:1955:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1955 | int cb = PyUnicode_GET_DATA_SIZE(objCell) / 2; | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:268:6: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 268 | (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE) | ^~~~~~~~~~~~~~~~~~ src/params.cpp:1955:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1955 | int cb = PyUnicode_GET_DATA_SIZE(objCell) / 2; | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 264 | PyUnicode_WSTR_LENGTH(op))) | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:268:6: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 268 | (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE) | ^~~~~~~~~~~~~~~~~~ src/params.cpp:1955:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1955 | int cb = PyUnicode_GET_DATA_SIZE(objCell) / 2; | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/params.cpp:1958:48: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 1958 | const Py_UNICODE* source = PyUnicode_AS_UNICODE(objCell); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/params.cpp:1963:53: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations] 1963 | bytes = PyUnicode_EncodeUTF8(source, cb, "strict"); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9/cpython/unicodeobject.h:803:42: note: declared here 803 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8( | ^~~~~~~~~~~~~~~~~~~~ src/params.cpp:1966:54: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1966 | bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_NATIVE); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9/cpython/unicodeobject.h:845:42: note: declared here 845 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ src/params.cpp:1969:54: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1969 | bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_LE); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9/cpython/unicodeobject.h:845:42: note: declared here 845 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ src/params.cpp:1972:54: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1972 | bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_BE); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9/cpython/unicodeobject.h:845:42: note: declared here 845 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9 -c src/pyodbccompat.cpp -o build/temp.linux-x86_64-3.9/src/pyodbccompat.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/pyodbccompat.cpp:1: /usr/include/python3.9/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.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9 -c src/pyodbcdbg.cpp -o build/temp.linux-x86_64-3.9/src/pyodbcdbg.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/pyodbcdbg.cpp:2: /usr/include/python3.9/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.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9 -c src/pyodbcmodule.cpp -o build/temp.linux-x86_64-3.9/src/pyodbcmodule.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/pyodbcmodule.cpp:11: /usr/include/python3.9/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.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 261 | PyUnicode_WSTR_LENGTH(op) : \ | ^~~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:694:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 694 | if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1) | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:694:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 694 | if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1) | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 264 | PyUnicode_WSTR_LENGTH(op))) | ^~~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:694:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 694 | if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1) | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:695:25: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 695 | chDecimal = PyUnicode_AS_UNICODE(value)[0]; | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/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:703:33: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations] 703 | return PyUnicode_FromUnicode(&chDecimal, 1); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/pyodbcmodule.cpp:11: /usr/include/python3.9/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp: In function ‘PyObject* MakeConnectionString(PyObject*, PyObject*)’: src/pyodbcmodule.cpp:1335:45: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations] 1335 | PyObject* result = PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/pyodbcmodule.cpp:11: /usr/include/python3.9/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:1339:26: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 1339 | Py_UNICODE* buffer = PyUnicode_AS_UNICODE(result); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9 -c src/row.cpp -o build/temp.linux-x86_64-3.9/src/row.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/row.cpp:12: /usr/include/python3.9/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.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9 -c src/textenc.cpp -o build/temp.linux-x86_64-3.9/src/textenc.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from src/pyodbc.h:45, from src/textenc.cpp:2: /usr/include/python3.9/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.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/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.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9/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.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.9/src/buffer.o build/temp.linux-x86_64-3.9/src/cnxninfo.o build/temp.linux-x86_64-3.9/src/connection.o build/temp.linux-x86_64-3.9/src/cursor.o build/temp.linux-x86_64-3.9/src/errors.o build/temp.linux-x86_64-3.9/src/getdata.o build/temp.linux-x86_64-3.9/src/params.o build/temp.linux-x86_64-3.9/src/pyodbccompat.o build/temp.linux-x86_64-3.9/src/pyodbcdbg.o build/temp.linux-x86_64-3.9/src/pyodbcmodule.o build/temp.linux-x86_64-3.9/src/row.o build/temp.linux-x86_64-3.9/src/textenc.o -lodbc -o /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.9_pyodbc/build/pyodbc.cpython-39-x86_64-linux-gnu.so I: pybuild base:237: /usr/bin/python3.10-dbg setup.py build /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.core import setup, Command /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:293: ResourceWarning: unclosed file <_io.TextIOWrapper name='/build/pyodbc-lxSb5O/pyodbc-4.0.32/PKG-INFO' mode='r' encoding='UTF-8'> return name, numbers ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 2190461 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:220: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> cflags = os.popen('odbc_config --cflags 2>/dev/null').read().strip() ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 2190462 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) running build running build_py copying src/pyodbc.pyi -> /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.10_dbg_pyodbc/build running build_ext /usr/lib/python3.10/distutils/command/build_ext.py:13: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead from distutils.sysconfig import customize_compiler, get_python_version building 'pyodbc' extension creating build/temp.linux-x86_64-3.10-pydebug creating build/temp.linux-x86_64-3.10-pydebug/src x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10d -c src/buffer.cpp -o build/temp.linux-x86_64-3.10-pydebug/src/buffer.o -Wno-write-strings /usr/lib/python3.10/subprocess.py:762: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> _cleanup() ResourceWarning: Enable tracemalloc to get the object allocation traceback 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/buffer.cpp:12: /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10d -c src/cnxninfo.cpp -o build/temp.linux-x86_64-3.10-pydebug/src/cnxninfo.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/cnxninfo.cpp:7: /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp: In function ‘PyObject* GetHash(PyObject*)’: /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:39: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 261 | PyUnicode_WSTR_LENGTH(op) : \ | ^~~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:64: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:64: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 264 | PyUnicode_WSTR_LENGTH(op))) | ^~~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:64: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:38: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations] 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/cnxninfo.cpp:7: /usr/include/python3.10d/cpython/unicodeobject.h:780:42: note: declared here 780 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8( | ^~~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10d -c src/connection.cpp -o build/temp.linux-x86_64-3.10-pydebug/src/connection.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/connection.cpp:11: /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10d -c src/cursor.cpp -o build/temp.linux-x86_64-3.10-pydebug/src/cursor.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/cursor.cpp:15: /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10d -c src/errors.cpp -o build/temp.linux-x86_64-3.10-pydebug/src/errors.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/errors.cpp:2: /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/Python.h:131, from src/pyodbc.h:45, from src/errors.cpp:2: src/errors.cpp: In function ‘PyObject* RaiseErrorV(const char*, PyObject*, const char*, ...)’: /usr/include/python3.10d/ceval.h:24:34: warning: ‘PyObject* PyEval_CallObjectWithKeywords(PyObject*, PyObject*, PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/ceval.h:24:34: warning: ‘PyObject* PyEval_CallObjectWithKeywords(PyObject*, PyObject*, PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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 [-Wdeprecated-declarations] 328 | if (!msg || PyUnicode_GetSize(msg.Get()) == 0) | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/errors.cpp:2: /usr/include/python3.10d/unicodeobject.h:177:43: note: declared here 177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( | ^~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10d -c src/getdata.cpp -o build/temp.linux-x86_64-3.10-pydebug/src/getdata.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/getdata.cpp:5: /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10d -c src/params.cpp -o build/temp.linux-x86_64-3.10-pydebug/src/params.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/params.cpp: In function ‘bool ExecuteMulti(Cursor*, PyObject*, PyObject*)’: /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 261 | PyUnicode_WSTR_LENGTH(op) : \ | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:268:6: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 268 | (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE) | ^~~~~~~~~~~~~~~~~~ src/params.cpp:1955:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1955 | int cb = PyUnicode_GET_DATA_SIZE(objCell) / 2; | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:268:6: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 268 | (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE) | ^~~~~~~~~~~~~~~~~~ src/params.cpp:1955:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1955 | int cb = PyUnicode_GET_DATA_SIZE(objCell) / 2; | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 264 | PyUnicode_WSTR_LENGTH(op))) | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:268:6: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 268 | (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE) | ^~~~~~~~~~~~~~~~~~ src/params.cpp:1955:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1955 | int cb = PyUnicode_GET_DATA_SIZE(objCell) / 2; | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/params.cpp:1958:48: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 1958 | const Py_UNICODE* source = PyUnicode_AS_UNICODE(objCell); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/params.cpp:1963:53: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations] 1963 | bytes = PyUnicode_EncodeUTF8(source, cb, "strict"); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.10d/cpython/unicodeobject.h:780:42: note: declared here 780 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8( | ^~~~~~~~~~~~~~~~~~~~ src/params.cpp:1966:54: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1966 | bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_NATIVE); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.10d/cpython/unicodeobject.h:822:42: note: declared here 822 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ src/params.cpp:1969:54: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1969 | bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_LE); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.10d/cpython/unicodeobject.h:822:42: note: declared here 822 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ src/params.cpp:1972:54: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1972 | bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_BE); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.10d/cpython/unicodeobject.h:822:42: note: declared here 822 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10d -c src/pyodbccompat.cpp -o build/temp.linux-x86_64-3.10-pydebug/src/pyodbccompat.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/pyodbccompat.cpp:1: /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10d -c src/pyodbcdbg.cpp -o build/temp.linux-x86_64-3.10-pydebug/src/pyodbcdbg.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/pyodbcdbg.cpp:2: /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10d -c src/pyodbcmodule.cpp -o build/temp.linux-x86_64-3.10-pydebug/src/pyodbcmodule.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/pyodbcmodule.cpp:11: /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 261 | PyUnicode_WSTR_LENGTH(op) : \ | ^~~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:694:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 694 | if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1) | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:694:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 694 | if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1) | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 264 | PyUnicode_WSTR_LENGTH(op))) | ^~~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:694:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 694 | if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1) | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:695:25: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 695 | chDecimal = PyUnicode_AS_UNICODE(value)[0]; | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/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:703:33: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations] 703 | return PyUnicode_FromUnicode(&chDecimal, 1); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/pyodbcmodule.cpp:11: /usr/include/python3.10d/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp: In function ‘PyObject* MakeConnectionString(PyObject*, PyObject*)’: src/pyodbcmodule.cpp:1335:45: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations] 1335 | PyObject* result = PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/pyodbcmodule.cpp:11: /usr/include/python3.10d/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:1339:26: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 1339 | Py_UNICODE* buffer = PyUnicode_AS_UNICODE(result); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10d -c src/row.cpp -o build/temp.linux-x86_64-3.10-pydebug/src/row.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/row.cpp:12: /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.10d -c src/textenc.cpp -o build/temp.linux-x86_64-3.10-pydebug/src/textenc.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.10d/unicodeobject.h:1046, from /usr/include/python3.10d/Python.h:83, from src/pyodbc.h:45, from src/textenc.cpp:2: /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/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.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.10d/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.10d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.10d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.10d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.10-pydebug/src/buffer.o build/temp.linux-x86_64-3.10-pydebug/src/cnxninfo.o build/temp.linux-x86_64-3.10-pydebug/src/connection.o build/temp.linux-x86_64-3.10-pydebug/src/cursor.o build/temp.linux-x86_64-3.10-pydebug/src/errors.o build/temp.linux-x86_64-3.10-pydebug/src/getdata.o build/temp.linux-x86_64-3.10-pydebug/src/params.o build/temp.linux-x86_64-3.10-pydebug/src/pyodbccompat.o build/temp.linux-x86_64-3.10-pydebug/src/pyodbcdbg.o build/temp.linux-x86_64-3.10-pydebug/src/pyodbcmodule.o build/temp.linux-x86_64-3.10-pydebug/src/row.o build/temp.linux-x86_64-3.10-pydebug/src/textenc.o -lodbc -o /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.10_dbg_pyodbc/build/pyodbc.cpython-310d-x86_64-linux-gnu.so I: pybuild base:237: /usr/bin/python3-dbg setup.py build /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:293: ResourceWarning: unclosed file <_io.TextIOWrapper name='/build/pyodbc-lxSb5O/pyodbc-4.0.32/PKG-INFO' mode='r' encoding='UTF-8'> return name, numbers ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 2190504 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:220: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> cflags = os.popen('odbc_config --cflags 2>/dev/null').read().strip() ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 2190505 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:223: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> ldflags = os.popen('odbc_config --libs 2>/dev/null').read().strip() ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) running build running build_py copying src/pyodbc.pyi -> /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.9_dbg_pyodbc/build running build_ext building 'pyodbc' extension creating build/temp.linux-x86_64-3.9-pydebug creating build/temp.linux-x86_64-3.9-pydebug/src x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9d -c src/buffer.cpp -o build/temp.linux-x86_64-3.9-pydebug/src/buffer.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/buffer.cpp:12: /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9d -c src/cnxninfo.cpp -o build/temp.linux-x86_64-3.9-pydebug/src/cnxninfo.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/cnxninfo.cpp:7: /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp: In function ‘PyObject* GetHash(PyObject*)’: /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:39: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 261 | PyUnicode_WSTR_LENGTH(op) : \ | ^~~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:64: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:64: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 264 | PyUnicode_WSTR_LENGTH(op))) | ^~~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:64: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/cnxninfo.cpp:45:38: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations] 45 | Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0)); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/cnxninfo.cpp:7: /usr/include/python3.9d/cpython/unicodeobject.h:803:42: note: declared here 803 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8( | ^~~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9d -c src/connection.cpp -o build/temp.linux-x86_64-3.9-pydebug/src/connection.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/connection.cpp:11: /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9d -c src/cursor.cpp -o build/temp.linux-x86_64-3.9-pydebug/src/cursor.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/cursor.cpp:15: /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9d -c src/errors.cpp -o build/temp.linux-x86_64-3.9-pydebug/src/errors.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/errors.cpp:2: /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/Python.h:141, from src/pyodbc.h:45, from src/errors.cpp:2: src/errors.cpp: In function ‘PyObject* RaiseErrorV(const char*, PyObject*, const char*, ...)’: /usr/include/python3.9d/ceval.h:24:34: warning: ‘PyObject* PyEval_CallObjectWithKeywords(PyObject*, PyObject*, PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/ceval.h:24:34: warning: ‘PyObject* PyEval_CallObjectWithKeywords(PyObject*, PyObject*, PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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 [-Wdeprecated-declarations] 328 | if (!msg || PyUnicode_GetSize(msg.Get()) == 0) | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/errors.cpp:2: /usr/include/python3.9d/unicodeobject.h:177:43: note: declared here 177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( | ^~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9d -c src/getdata.cpp -o build/temp.linux-x86_64-3.9-pydebug/src/getdata.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/getdata.cpp:5: /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9d -c src/params.cpp -o build/temp.linux-x86_64-3.9-pydebug/src/params.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/params.cpp: In function ‘bool ExecuteMulti(Cursor*, PyObject*, PyObject*)’: /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 261 | PyUnicode_WSTR_LENGTH(op) : \ | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:268:6: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 268 | (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE) | ^~~~~~~~~~~~~~~~~~ src/params.cpp:1955:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1955 | int cb = PyUnicode_GET_DATA_SIZE(objCell) / 2; | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:268:6: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 268 | (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE) | ^~~~~~~~~~~~~~~~~~ src/params.cpp:1955:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1955 | int cb = PyUnicode_GET_DATA_SIZE(objCell) / 2; | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 264 | PyUnicode_WSTR_LENGTH(op))) | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:268:6: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 268 | (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE) | ^~~~~~~~~~~~~~~~~~ src/params.cpp:1955:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1955 | int cb = PyUnicode_GET_DATA_SIZE(objCell) / 2; | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/params.cpp:1958:48: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 1958 | const Py_UNICODE* source = PyUnicode_AS_UNICODE(objCell); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/params.cpp:1963:53: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations] 1963 | bytes = PyUnicode_EncodeUTF8(source, cb, "strict"); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9d/cpython/unicodeobject.h:803:42: note: declared here 803 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8( | ^~~~~~~~~~~~~~~~~~~~ src/params.cpp:1966:54: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1966 | bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_NATIVE); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9d/cpython/unicodeobject.h:845:42: note: declared here 845 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ src/params.cpp:1969:54: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1969 | bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_LE); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9d/cpython/unicodeobject.h:845:42: note: declared here 845 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ src/params.cpp:1972:54: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1972 | bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_BE); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9d/cpython/unicodeobject.h:845:42: note: declared here 845 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9d -c src/pyodbccompat.cpp -o build/temp.linux-x86_64-3.9-pydebug/src/pyodbccompat.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/pyodbccompat.cpp:1: /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9d -c src/pyodbcdbg.cpp -o build/temp.linux-x86_64-3.9-pydebug/src/pyodbcdbg.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/pyodbcdbg.cpp:2: /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9d -c src/pyodbcmodule.cpp -o build/temp.linux-x86_64-3.9-pydebug/src/pyodbcmodule.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/pyodbcmodule.cpp:11: /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 261 | PyUnicode_WSTR_LENGTH(op) : \ | ^~~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:694:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 694 | if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1) | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:694:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 694 | if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1) | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 264 | PyUnicode_WSTR_LENGTH(op))) | ^~~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:694:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 694 | if (PyUnicode_Check(value) && PyUnicode_GET_SIZE(value) == 1) | ^~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:695:25: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 695 | chDecimal = PyUnicode_AS_UNICODE(value)[0]; | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/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:703:33: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations] 703 | return PyUnicode_FromUnicode(&chDecimal, 1); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/pyodbcmodule.cpp:11: /usr/include/python3.9d/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp: In function ‘PyObject* MakeConnectionString(PyObject*, PyObject*)’: src/pyodbcmodule.cpp:1335:45: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations] 1335 | PyObject* result = PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/pyodbcmodule.cpp:11: /usr/include/python3.9d/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/pyodbcmodule.cpp:1339:26: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 1339 | Py_UNICODE* buffer = PyUnicode_AS_UNICODE(result); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9d -c src/row.cpp -o build/temp.linux-x86_64-3.9-pydebug/src/row.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/row.cpp:12: /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -Og -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/include/python3.9d -c src/textenc.cpp -o build/temp.linux-x86_64-3.9-pydebug/src/textenc.o -Wno-write-strings 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 [-Wdeprecated-declarations] 75 | return PyUnicode_FromUnicode(0, length); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:93, from src/pyodbc.h:45, from src/textenc.cpp:2: /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/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.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations] 451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/python3.9d/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.9d/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.9d/cpython/unicodeobject.h:279:26: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 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.9d/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -g -O2 -ffile-prefix-map=/build/pyodbc-lxSb5O/pyodbc-4.0.32=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.9-pydebug/src/buffer.o build/temp.linux-x86_64-3.9-pydebug/src/cnxninfo.o build/temp.linux-x86_64-3.9-pydebug/src/connection.o build/temp.linux-x86_64-3.9-pydebug/src/cursor.o build/temp.linux-x86_64-3.9-pydebug/src/errors.o build/temp.linux-x86_64-3.9-pydebug/src/getdata.o build/temp.linux-x86_64-3.9-pydebug/src/params.o build/temp.linux-x86_64-3.9-pydebug/src/pyodbccompat.o build/temp.linux-x86_64-3.9-pydebug/src/pyodbcdbg.o build/temp.linux-x86_64-3.9-pydebug/src/pyodbcmodule.o build/temp.linux-x86_64-3.9-pydebug/src/row.o build/temp.linux-x86_64-3.9-pydebug/src/textenc.o -lodbc -o /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.9_dbg_pyodbc/build/pyodbc.cpython-39d-x86_64-linux-gnu.so dh: command-omitted: The call to "dh_auto_test -a -O--buildsystem=pybuild" was omitted due to "DEB_BUILD_OPTIONS=nocheck" create-stamp debian/debhelper-build-stamp dh_testroot -a -O--buildsystem=pybuild dh_prep -a -O--buildsystem=pybuild dh_auto_install --destdir=debian/python3-pyodbc/ -a -O--buildsystem=pybuild I: pybuild base:237: /usr/bin/python3.10 setup.py install --root /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.core import setup, Command /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) running install running build running build_py running build_ext running install_lib creating /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr creating /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib creating /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.10 creating /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.10/dist-packages copying /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.10_pyodbc/build/pyodbc.pyi -> /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.10/dist-packages copying /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.10_pyodbc/build/pyodbc.cpython-310-x86_64-linux-gnu.so -> /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.10/dist-packages running install_egg_info Writing /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.10/dist-packages/pyodbc-4.0.32.egg-info I: pybuild base:237: /usr/bin/python3 setup.py install --root /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) running install running build running build_py running build_ext running install_lib creating /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.9 creating /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.9/dist-packages copying /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.9_pyodbc/build/pyodbc.pyi -> /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.9/dist-packages copying /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.9_pyodbc/build/pyodbc.cpython-39-x86_64-linux-gnu.so -> /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.9/dist-packages running install_egg_info Writing /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.9/dist-packages/pyodbc-4.0.32.egg-info I: pybuild base:237: /usr/bin/python3.10-dbg setup.py install --root /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.core import setup, Command /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:293: ResourceWarning: unclosed file <_io.TextIOWrapper name='/build/pyodbc-lxSb5O/pyodbc-4.0.32/PKG-INFO' mode='r' encoding='UTF-8'> return name, numbers ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 2190579 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:220: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> cflags = os.popen('odbc_config --cflags 2>/dev/null').read().strip() ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 2190580 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) /usr/lib/python3.10/distutils/command/install.py:13: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead from distutils.sysconfig import get_config_vars running install running build running build_py running build_ext running install_lib copying /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.10_dbg_pyodbc/build/pyodbc.pyi -> /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.10/dist-packages copying /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.10_dbg_pyodbc/build/pyodbc.cpython-310d-x86_64-linux-gnu.so -> /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.10/dist-packages running install_egg_info Removing /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.10/dist-packages/pyodbc-4.0.32.egg-info Writing /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.10/dist-packages/pyodbc-4.0.32.egg-info sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> I: pybuild base:237: /usr/bin/python3-dbg setup.py install --root /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:293: ResourceWarning: unclosed file <_io.TextIOWrapper name='/build/pyodbc-lxSb5O/pyodbc-4.0.32/PKG-INFO' mode='r' encoding='UTF-8'> return name, numbers ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 2190583 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:220: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> cflags = os.popen('odbc_config --cflags 2>/dev/null').read().strip() ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 2190584 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-lxSb5O/pyodbc-4.0.32/setup.py:223: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> ldflags = os.popen('odbc_config --libs 2>/dev/null').read().strip() ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'include_package_files' warnings.warn(msg) running install running build running build_py running build_ext running install_lib copying /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.9_dbg_pyodbc/build/pyodbc.pyi -> /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.9/dist-packages copying /build/pyodbc-lxSb5O/pyodbc-4.0.32/.pybuild/cpython3_3.9_dbg_pyodbc/build/pyodbc.cpython-39d-x86_64-linux-gnu.so -> /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.9/dist-packages running install_egg_info Removing /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.9/dist-packages/pyodbc-4.0.32.egg-info Writing /build/pyodbc-lxSb5O/pyodbc-4.0.32/debian/python3-pyodbc/usr/lib/python3.9/dist-packages/pyodbc-4.0.32.egg-info dh_installdocs -a -O--buildsystem=pybuild dh_installchangelogs -a -O--buildsystem=pybuild dh_python3 -a -O--buildsystem=pybuild dh_installsystemduser -a -O--buildsystem=pybuild dh_perl -a -O--buildsystem=pybuild dh_link -a -O--buildsystem=pybuild dh_strip_nondeterminism -a -O--buildsystem=pybuild dh_compress -a -O--buildsystem=pybuild dh_fixperms -a -O--buildsystem=pybuild dh_missing -a -O--buildsystem=pybuild dh_dwz -a -O--buildsystem=pybuild dh_strip -a -O--buildsystem=pybuild dh_makeshlibs -a -O--buildsystem=pybuild dh_shlibdeps -a -O--buildsystem=pybuild dh_installdeb -a -O--buildsystem=pybuild dh_gencontrol -a -O--buildsystem=pybuild dpkg-gencontrol: warning: package python3-pyodbc: substitution variable ${python3:Versions} unused, but is defined dpkg-gencontrol: warning: package python3-pyodbc: substitution variable ${python3:Versions} unused, but is defined dh_md5sums -a -O--buildsystem=pybuild dh_builddeb -a -O--buildsystem=pybuild dpkg-deb: building package 'python3-pyodbc' in '../python3-pyodbc_4.0.32-1+b1_amd64.deb'. dpkg-deb: building package 'python3-pyodbc-dbgsym' in '../python3-pyodbc-dbgsym_4.0.32-1+b1_amd64.deb'. dpkg-genbuildinfo --build=any dpkg-genchanges --build=any >../pyodbc_4.0.32-1+b1_amd64.changes dpkg-genchanges: info: binary-only arch-specific upload (source code and arch-indep packages not included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/pyodbc-lxSb5O /tmp/pyodbc-4.0.32-1+b1t89sdfgn I: cleaning package lists and apt cache... I: removing tempdir /tmp/mmdebstrap.AipQKBIEAj... I: success in 544.3912 seconds md5: python3-pyodbc-dbgsym_4.0.32-1+b1_amd64.deb: OK md5: python3-pyodbc_4.0.32-1+b1_amd64.deb: OK sha1: python3-pyodbc-dbgsym_4.0.32-1+b1_amd64.deb: OK sha1: python3-pyodbc_4.0.32-1+b1_amd64.deb: OK sha256: python3-pyodbc-dbgsym_4.0.32-1+b1_amd64.deb: OK sha256: python3-pyodbc_4.0.32-1+b1_amd64.deb: OK Checksums: OK