Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/p/pyodbc/pyodbc_4.0.30-1+b2_amd64.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/pyodbc-4.0.30-1+b2izmcghae/pyodbc_4.0.30-1+b2_amd64.buildinfo Get source package info: pyodbc=4.0.30-1 Source URL: http://snapshot.notset.fr/mr/package/pyodbc/4.0.30-1/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.69-11.1 automake=1:1.16.3-1 autopoint=0.19.8.1-10 autotools-dev=20180224.1 base-files=11 base-passwd=3.5.48 bash=5.1~rc3-1 binutils=2.35.1-4 binutils-common=2.35.1-4 binutils-x86-64-linux-gnu=2.35.1-4 bsdextrautils=2.36.1-2 bsdutils=1:2.36.1-2 build-essential=12.8 bzip2=1.0.8-4 coreutils=8.32-4+b1 cpp=4:10.2.0-1 cpp-10=10.2.0-23 dash=0.5.11+git20200708+dd9ef66-2 debconf=1.5.74 debhelper=13.3 debianutils=4.11.2 dh-autoreconf=19 dh-python=4.20201102 dh-strip-nondeterminism=1.9.0-1 diffutils=1:3.7-3 dpkg=1.20.5 dpkg-dev=1.20.5 dwz=0.13+20201015-2 file=1:5.39-3 findutils=4.7.0+git20201010-2 g++=4:10.2.0-1 g++-10=10.2.0-23 gcc=4:10.2.0-1 gcc-10=10.2.0-23 gcc-10-base=10.2.0-23 gettext=0.19.8.1-10 gettext-base=0.19.8.1-10 grep=3.6-1 groff-base=1.22.4-5 gzip=1.10-2 hostname=3.23 init-system-helpers=1.59 intltool-debian=0.35.0+20060710.5 libacl1=2.2.53-8 libarchive-zip-perl=1.68-1 libasan6=10.2.0-23 libatomic1=10.2.0-23 libattr1=1:2.4.48-5 libaudit-common=1:2.8.5-3.1 libaudit1=1:2.8.5-3.1 libbinutils=2.35.1-4 libblkid1=2.36.1-2 libbz2-1.0=1.0.8-4 libc-bin=2.31-5 libc-dev-bin=2.31-5 libc6=2.31-5 libc6-dev=2.31-5 libcap-ng0=0.7.9-2.2+b1 libcc1-0=10.2.0-23 libcom-err2=1.45.6-1 libcroco3=0.6.13-1 libcrypt-dev=1:4.4.17-1 libcrypt1=1:4.4.17-1 libctf-nobfd0=2.35.1-4 libctf0=2.35.1-4 libdb5.3=5.3.28+dfsg1-0.6 libdebconfclient0=0.255 libdebhelper-perl=13.3 libdpkg-perl=1.20.5 libelf1=0.182-1 libexpat1=2.2.10-1 libexpat1-dev=2.2.10-1 libffi7=3.3-5 libfile-stripnondeterminism-perl=1.9.0-1 libgcc-10-dev=10.2.0-23 libgcc-s1=10.2.0-23 libgcrypt20=1.8.7-2 libgdbm-compat4=1.18.1-5.1 libgdbm6=1.18.1-5.1 libglib2.0-0=2.66.3-2 libgmp10=2:6.2.1+dfsg-1 libgomp1=10.2.0-23 libgpg-error0=1.38-2 libgssapi-krb5-2=1.18.3-4 libicu67=67.1-5 libisl23=0.23-1 libitm1=10.2.0-23 libk5crypto3=1.18.3-4 libkeyutils1=1.6.1-2 libkrb5-3=1.18.3-4 libkrb5support0=1.18.3-4 liblsan0=10.2.0-23 libltdl-dev=2.4.6-14 libltdl7=2.4.6-14 liblz4-1=1.9.2-2 liblzma5=5.2.4-1+b1 libmagic-mgc=1:5.39-3 libmagic1=1:5.39-3 libmount1=2.36.1-2 libmpc3=1.2.0-1 libmpfr6=4.1.0-3 libncursesw6=6.2+20201114-1 libnsl-dev=1.3.0-2 libnsl2=1.3.0-2 libodbc1=2.3.6-0.1+b1 libpam-modules=1.3.1-5 libpam-modules-bin=1.3.1-5 libpam-runtime=1.3.1-5 libpam0g=1.3.1-5 libpcre2-8-0=10.35-2 libpcre3=2:8.39-13 libperl5.32=5.32.0-5 libpipeline1=1.5.3-1 libpython3-all-dbg=3.9.0-4 libpython3-all-dev=3.9.0-4 libpython3-dbg=3.9.0-4 libpython3-dev=3.9.0-4 libpython3-stdlib=3.9.0-4 libpython3.9=3.9.1~rc1-2 libpython3.9-dbg=3.9.1~rc1-2 libpython3.9-dev=3.9.1~rc1-2 libpython3.9-minimal=3.9.1~rc1-2 libpython3.9-stdlib=3.9.1~rc1-2 libquadmath0=10.2.0-23 libreadline8=8.1~rc3-1 libseccomp2=2.5.0-3 libselinux1=3.1-2+b1 libsigsegv2=2.12-2 libsmartcols1=2.36.1-2 libsqlite3-0=3.34.0-1 libssl1.1=1.1.1h-1 libstdc++-10-dev=10.2.0-23 libstdc++6=10.2.0-23 libsub-override-perl=0.09-2 libsystemd0=247.1-3 libtinfo6=6.2+20201114-1 libtirpc-common=1.2.6-3 libtirpc-dev=1.2.6-3 libtirpc3=1.2.6-3 libtool=2.4.6-14 libtsan0=10.2.0-23 libubsan1=10.2.0-23 libuchardet0=0.0.7-1 libudev1=247.1-3 libunistring2=0.9.10-4 libuuid1=2.36.1-2 libxml2=2.9.10+dfsg-6.3+b1 libzstd1=1.4.5+dfsg-4 linux-libc-dev=5.9.11-1 login=1:4.8.1-1 lsb-base=11.1.0 m4=1.4.18-4 mailcap=3.67 make=4.3-4 man-db=2.9.3-2 mawk=1.3.4.20200120-2 media-types=1.0.1 mime-support=3.66 ncurses-base=6.2+20201114-1 ncurses-bin=6.2+20201114-1 odbcinst=2.3.6-0.1+b1 odbcinst1debian2=2.3.6-0.1+b1 patch=2.7.6-6 perl=5.32.0-5 perl-base=5.32.0-5 perl-modules-5.32=5.32.0-5 po-debconf=1.0.21 python3=3.9.0-4 python3-all=3.9.0-4 python3-all-dbg=3.9.0-4 python3-all-dev=3.9.0-4 python3-dbg=3.9.0-4 python3-dev=3.9.0-4 python3-distutils=3.8.6-1 python3-lib2to3=3.8.6-1 python3-minimal=3.9.0-4 python3.9=3.9.1~rc1-2 python3.9-dbg=3.9.1~rc1-2 python3.9-dev=3.9.1~rc1-2 python3.9-minimal=3.9.1~rc1-2 readline-common=8.1~rc3-1 sed=4.7-1 sensible-utils=0.0.12+nmu1 sysvinit-utils=2.96-5 tar=1.32+dfsg-1 tzdata=2020d-1 unixodbc-dev=2.3.6-0.1+b1 util-linux=2.36.1-2 xz-utils=5.2.4-1+b1 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/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20210113T024001Z/ unstable main deb http://snapshot.notset.fr/archive/debian/20201207T144442Z/ 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.30-1 && mkdir -p /build/pyodbc-IFcExk && dpkg-source --no-check -x /*.dsc /build/pyodbc-IFcExk/pyodbc-4.0.30 && cd /build/pyodbc-IFcExk/pyodbc-4.0.30 && { printf '%s' 'pyodbc (4.0.30-1+b2) sid; urgency=low, binary-only=yes * Binary-only non-maintainer upload for amd64; no source changes. * Python 3.9 only -- amd64 / i386 Build Daemon (x86-ubc-01) Tue, 08 Dec 2020 01:47:02 +0000 '; cat debian/changelog; } > debian/changelog.debrebuild && mv debian/changelog.debrebuild debian/changelog && chown -R builduser:builduser /build/pyodbc-IFcExk" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/pyodbc-IFcExk/pyodbc-4.0.30 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1607392022" dpkg-buildpackage -uc -a amd64 --build=any" --customize-hook=sync-out /build/pyodbc-IFcExk /tmp/pyodbc-4.0.30-1+b2izmcghae bullseye /dev/null deb http://snapshot.notset.fr/archive/debian/20201207T144442Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap._nU3HQicUh 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._nU3HQicUh Reading package lists... Building dependency tree... util-linux is already the newest version (2.36.1-2). 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/20201207T144442Z unstable/main amd64 libfakeroot amd64 1.25.3-1.1 [47.0 kB] Get:2 http://snapshot.notset.fr/archive/debian/20201207T144442Z unstable/main amd64 fakeroot amd64 1.25.3-1.1 [87.0 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 134 kB in 0s (1019 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 ... 4614 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.25.3-1.1_amd64.deb ... Unpacking libfakeroot:amd64 (1.25.3-1.1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.25.3-1.1_amd64.deb ... Unpacking fakeroot (1.25.3-1.1) ... Setting up libfakeroot:amd64 (1.25.3-1.1) ... Setting up fakeroot (1.25.3-1.1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.31-5) ... 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/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20210113T024001Z/ unstable main deb http://snapshot.notset.fr/archive/debian/20201207T144442Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap._nU3HQicUh Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Get:2 http://snapshot.notset.fr/archive/debian/20210113T024001Z unstable InRelease [153 kB] Hit:3 http://snapshot.notset.fr/archive/debian/20201207T144442Z unstable InRelease Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Ign:6 http://snapshot.notset.fr/archive/debian/20210113T024001Z unstable/main amd64 Packages Ign:6 http://snapshot.notset.fr/archive/debian/20210113T024001Z unstable/main amd64 Packages Ign:6 http://snapshot.notset.fr/archive/debian/20210113T024001Z unstable/main amd64 Packages Get:6 http://snapshot.notset.fr/archive/debian/20210113T024001Z unstable/main amd64 Packages [11.6 MB] Fetched 34.4 MB in 30s (1149 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._nU3HQicUh I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d pyodbc=4.0.30-1 && mkdir -p /build/pyodbc-IFcExk && dpkg-source --no-check -x /*.dsc /build/pyodbc-IFcExk/pyodbc-4.0.30 && cd /build/pyodbc-IFcExk/pyodbc-4.0.30 && { printf '%s' 'pyodbc (4.0.30-1+b2) sid; urgency=low, binary-only=yes * Binary-only non-maintainer upload for amd64; no source changes. * Python 3.9 only -- amd64 / i386 Build Daemon (x86-ubc-01) Tue, 08 Dec 2020 01:47:02 +0000 '; cat debian/changelog; } > debian/changelog.debrebuild && mv debian/changelog.debrebuild debian/changelog && chown -R builduser:builduser /build/pyodbc-IFcExk"' exec /tmp/mmdebstrap._nU3HQicUh Reading package lists... NOTICE: 'pyodbc' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/python-team/modules/pyodbc.git Please use: git clone https://salsa.debian.org/python-team/modules/pyodbc.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 272 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main pyodbc 4.0.30-1 (dsc) [1713 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main pyodbc 4.0.30-1 (tar) [266 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main pyodbc 4.0.30-1 (diff) [4028 B] Fetched 272 kB in 0s (1001 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'pyodbc_4.0.30-1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting pyodbc in /build/pyodbc-IFcExk/pyodbc-4.0.30 dpkg-source: info: unpacking pyodbc_4.0.30.orig.tar.gz dpkg-source: info: unpacking pyodbc_4.0.30-1.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying 0001-Fix-typos-found-by-lintian.patch I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/pyodbc-IFcExk/pyodbc-4.0.30 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1607392022" dpkg-buildpackage -uc -a amd64 --build=any"' exec /tmp/mmdebstrap._nU3HQicUh dpkg-buildpackage: info: source package pyodbc dpkg-buildpackage: info: source version 4.0.30-1+b2 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:232: python3.9 setup.py clean /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) running clean removing '/build/pyodbc-IFcExk/pyodbc-4.0.30/.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:232: python3.9-dbg setup.py clean /build/pyodbc-IFcExk/pyodbc-4.0.30/setup.py:285: ResourceWarning: unclosed file <_io.TextIOWrapper name='/build/pyodbc-IFcExk/pyodbc-4.0.30/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:1048: ResourceWarning: subprocess 641438 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-IFcExk/pyodbc-4.0.30/setup.py:212: 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:1048: ResourceWarning: subprocess 641439 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-IFcExk/pyodbc-4.0.30/setup.py:215: 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) running clean removing '/build/pyodbc-IFcExk/pyodbc-4.0.30/.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:232: python3.9 setup.py config /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) running config I: pybuild base:232: python3.9-dbg setup.py config /build/pyodbc-IFcExk/pyodbc-4.0.30/setup.py:285: ResourceWarning: unclosed file <_io.TextIOWrapper name='/build/pyodbc-IFcExk/pyodbc-4.0.30/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:1048: ResourceWarning: subprocess 641483 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-IFcExk/pyodbc-4.0.30/setup.py:212: 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:1048: ResourceWarning: subprocess 641484 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-IFcExk/pyodbc-4.0.30/setup.py:215: 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) running config dh_auto_build -a -O--buildsystem=pybuild I: pybuild base:232: /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) running build running build_ext building 'pyodbc' extension creating build 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/buffer.cpp:12: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/cnxninfo.cpp:7: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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:45: 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:75: 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:52: 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:75: 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:88: 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:97, from src/pyodbc.h:45, from src/cnxninfo.cpp:7: /usr/include/python3.9/cpython/unicodeobject.h:810:42: note: declared here 810 | 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/connection.cpp:11: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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:45: 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/cursor.cpp:15: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/errors.cpp:2: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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:145, 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:66: 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:66: 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:331:44: warning: ‘Py_ssize_t PyUnicode_GetSize(PyObject*)’ is deprecated [-Wdeprecated-declarations] 331 | if (!msg || PyUnicode_GetSize(msg.Get()) == 0) | ^ In file included from /usr/include/python3.9/Python.h:97, 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/getdata.cpp:5: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/params.cpp:10: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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:75: 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:52: 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:75: 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:45: 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:75: 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:1924:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1924 | 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:52: 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:1924:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1924 | 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:75: 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:1924:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1924 | 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:45: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ^ src/params.cpp:1927:48: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 1927 | 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:1932:74: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations] 1932 | bytes = PyUnicode_EncodeUTF8(source, cb, "strict"); | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:97, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9/cpython/unicodeobject.h:810:42: note: declared here 810 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8( | ^~~~~~~~~~~~~~~~~~~~ src/params.cpp:1935:93: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1935 | 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:97, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9/cpython/unicodeobject.h:852:42: note: declared here 852 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ src/params.cpp:1938:89: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1938 | 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:97, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9/cpython/unicodeobject.h:852:42: note: declared here 852 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ src/params.cpp:1941:89: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1941 | 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:97, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9/cpython/unicodeobject.h:852:42: note: declared here 852 | 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/pyodbccompat.cpp:1: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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:75: 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:52: 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:75: 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:45: 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/pyodbcdbg.cpp:2: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/pyodbcmodule.cpp:11: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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:75: 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:52: 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:75: 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:45: 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:75: 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:697:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 697 | 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:52: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\ | ^ src/pyodbcmodule.cpp:697:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 697 | 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:75: 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:697:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 697 | 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:45: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ^ src/pyodbcmodule.cpp:698:25: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 698 | 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:706:47: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations] 706 | return PyUnicode_FromUnicode(&chDecimal, 1); | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:97, 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:1338:55: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations] 1338 | PyObject* result = PyUnicode_FromUnicode(0, length); | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:97, 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:45: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ^ src/pyodbcmodule.cpp:1342:26: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 1342 | 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/row.cpp:12: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/textenc.cpp:2: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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 -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -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 -L/usr/local/lib -lodbc -o /build/pyodbc-IFcExk/pyodbc-4.0.30/.pybuild/cpython3_3.9_pyodbc/build/pyodbc.cpython-39-x86_64-linux-gnu.so I: pybuild base:232: /usr/bin/python3-dbg setup.py build /build/pyodbc-IFcExk/pyodbc-4.0.30/setup.py:285: ResourceWarning: unclosed file <_io.TextIOWrapper name='/build/pyodbc-IFcExk/pyodbc-4.0.30/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:1048: ResourceWarning: subprocess 641550 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-IFcExk/pyodbc-4.0.30/setup.py:212: 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:1048: ResourceWarning: subprocess 641551 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-IFcExk/pyodbc-4.0.30/setup.py:215: 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) running 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/buffer.cpp:12: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/cnxninfo.cpp:7: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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:45: 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:75: 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:52: 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:75: 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:88: 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:97, from src/pyodbc.h:45, from src/cnxninfo.cpp:7: /usr/include/python3.9d/cpython/unicodeobject.h:810:42: note: declared here 810 | 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/connection.cpp:11: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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:45: 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/cursor.cpp:15: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/errors.cpp:2: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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:145, 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:66: 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:66: 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:331:44: warning: ‘Py_ssize_t PyUnicode_GetSize(PyObject*)’ is deprecated [-Wdeprecated-declarations] 331 | if (!msg || PyUnicode_GetSize(msg.Get()) == 0) | ^ In file included from /usr/include/python3.9d/Python.h:97, 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/getdata.cpp:5: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/params.cpp:10: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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:75: 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:52: 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:75: 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:45: 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:75: 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:1924:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1924 | 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:52: 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:1924:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1924 | 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:75: 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:1924:30: note: in expansion of macro ‘PyUnicode_GET_DATA_SIZE’ 1924 | 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:45: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ^ src/params.cpp:1927:48: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 1927 | 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:1932:74: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations] 1932 | bytes = PyUnicode_EncodeUTF8(source, cb, "strict"); | ^ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:97, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9d/cpython/unicodeobject.h:810:42: note: declared here 810 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8( | ^~~~~~~~~~~~~~~~~~~~ src/params.cpp:1935:93: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1935 | 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:97, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9d/cpython/unicodeobject.h:852:42: note: declared here 852 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ src/params.cpp:1938:89: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1938 | 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:97, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9d/cpython/unicodeobject.h:852:42: note: declared here 852 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16( | ^~~~~~~~~~~~~~~~~~~~~ src/params.cpp:1941:89: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations] 1941 | 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:97, from src/pyodbc.h:45, from src/params.cpp:10: /usr/include/python3.9d/cpython/unicodeobject.h:852:42: note: declared here 852 | 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/pyodbccompat.cpp:1: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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:75: 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:52: 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:75: 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:45: 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/pyodbcdbg.cpp:2: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/pyodbcmodule.cpp:11: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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:75: 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:52: 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:75: 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:45: 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:75: 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:697:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 697 | 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:52: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\ | ^ src/pyodbcmodule.cpp:697:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 697 | 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:75: 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:697:39: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 697 | 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:45: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ^ src/pyodbcmodule.cpp:698:25: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 698 | 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:706:47: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations] 706 | return PyUnicode_FromUnicode(&chDecimal, 1); | ^ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:97, 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:1338:55: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations] 1338 | PyObject* result = PyUnicode_FromUnicode(0, length); | ^ In file included from /usr/include/python3.9d/unicodeobject.h:1026, from /usr/include/python3.9d/Python.h:97, 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:45: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations] 279 | PyUnicode_AsUnicode(_PyObject_CAST(op))) | ^ src/pyodbcmodule.cpp:1342:26: note: in expansion of macro ‘PyUnicode_AS_UNICODE’ 1342 | 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/row.cpp:12: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYODBC_VERSION=4.0.30 -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:160, from src/textenc.cpp:2: src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’: src/pyodbccompat.h:75:43: 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:97, 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:45: 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:75: 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:52: 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:75: 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:75: 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:52: 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:75: 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:45: 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,relro -Wl,-z,now -g -O2 -fdebug-prefix-map=/build/pyodbc-IFcExk/pyodbc-4.0.30=. -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 -L/usr/local/lib -lodbc -o /build/pyodbc-IFcExk/pyodbc-4.0.30/.pybuild/cpython3_3.9_dbg_pyodbc/build/pyodbc.cpython-39d-x86_64-linux-gnu.so dh_auto_test -a -O--buildsystem=pybuild I: pybuild base:232: cd /build/pyodbc-IFcExk/pyodbc-4.0.30/.pybuild/cpython3_3.9_pyodbc/build; python3.9 -m unittest discover -v ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK I: pybuild base:232: cd /build/pyodbc-IFcExk/pyodbc-4.0.30/.pybuild/cpython3_3.9_dbg_pyodbc/build; python3.9-dbg -m unittest discover -v ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK create-stamp debian/debhelper-build-stamp dh_testroot -a -O--buildsystem=pybuild dh_prep -a -O--buildsystem=pybuild dh_auto_install -a -O--buildsystem=pybuild I: pybuild base:232: /usr/bin/python3 setup.py install --root /build/pyodbc-IFcExk/pyodbc-4.0.30/debian/python3-pyodbc /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) running install running build running build_ext running install_lib creating /build/pyodbc-IFcExk/pyodbc-4.0.30/debian/python3-pyodbc/usr creating /build/pyodbc-IFcExk/pyodbc-4.0.30/debian/python3-pyodbc/usr/lib creating /build/pyodbc-IFcExk/pyodbc-4.0.30/debian/python3-pyodbc/usr/lib/python3.9 creating /build/pyodbc-IFcExk/pyodbc-4.0.30/debian/python3-pyodbc/usr/lib/python3.9/dist-packages copying /build/pyodbc-IFcExk/pyodbc-4.0.30/.pybuild/cpython3_3.9_pyodbc/build/pyodbc.cpython-39-x86_64-linux-gnu.so -> /build/pyodbc-IFcExk/pyodbc-4.0.30/debian/python3-pyodbc/usr/lib/python3.9/dist-packages running install_egg_info Writing /build/pyodbc-IFcExk/pyodbc-4.0.30/debian/python3-pyodbc/usr/lib/python3.9/dist-packages/pyodbc-4.0.30.egg-info I: pybuild base:232: /usr/bin/python3-dbg setup.py install --root /build/pyodbc-IFcExk/pyodbc-4.0.30/debian/python3-pyodbc /build/pyodbc-IFcExk/pyodbc-4.0.30/setup.py:285: ResourceWarning: unclosed file <_io.TextIOWrapper name='/build/pyodbc-IFcExk/pyodbc-4.0.30/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:1048: ResourceWarning: subprocess 641645 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-IFcExk/pyodbc-4.0.30/setup.py:212: 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:1048: ResourceWarning: subprocess 641646 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/pyodbc-IFcExk/pyodbc-4.0.30/setup.py:215: 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) running install running build running build_ext running install_lib copying /build/pyodbc-IFcExk/pyodbc-4.0.30/.pybuild/cpython3_3.9_dbg_pyodbc/build/pyodbc.cpython-39d-x86_64-linux-gnu.so -> /build/pyodbc-IFcExk/pyodbc-4.0.30/debian/python3-pyodbc/usr/lib/python3.9/dist-packages running install_egg_info Removing /build/pyodbc-IFcExk/pyodbc-4.0.30/debian/python3-pyodbc/usr/lib/python3.9/dist-packages/pyodbc-4.0.30.egg-info Writing /build/pyodbc-IFcExk/pyodbc-4.0.30/debian/python3-pyodbc/usr/lib/python3.9/dist-packages/pyodbc-4.0.30.egg-info dh_installdocs -a -O--buildsystem=pybuild dh_installchangelogs -a -O--buildsystem=pybuild dh_python3 -a -O--buildsystem=pybuild dh_installinit -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-dbgsym' in '../python3-pyodbc-dbgsym_4.0.30-1+b2_amd64.deb'. dpkg-deb: building package 'python3-pyodbc' in '../python3-pyodbc_4.0.30-1+b2_amd64.deb'. dpkg-genbuildinfo --build=any dpkg-genchanges --build=any >../pyodbc_4.0.30-1+b2_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-IFcExk /tmp/pyodbc-4.0.30-1+b2izmcghae I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap._nU3HQicUh... I: success in 521.7639 seconds md5: python3-pyodbc-dbgsym_4.0.30-1+b2_amd64.deb: OK md5: python3-pyodbc_4.0.30-1+b2_amd64.deb: OK sha1: python3-pyodbc-dbgsym_4.0.30-1+b2_amd64.deb: OK sha1: python3-pyodbc_4.0.30-1+b2_amd64.deb: OK sha256: python3-pyodbc-dbgsym_4.0.30-1+b2_amd64.deb: OK sha256: python3-pyodbc_4.0.30-1+b2_amd64.deb: OK Checksums: OK