Package: libpython3.7-dev Version: 3.7.6-1 Severity: minor Tags: upstream Hi,
the file pyconfig.h defines several preprocessor symbols, leading to warnings such as /usr/include/powerpc64le-linux-gnu/python3.7m/pyconfig.h:127: note: this is the location of the previous definition 127 | #define HAVE_CLOCK_GETTIME 1 This will cause warnings for all autotools based packages that also use this feature test. In addition, pyconfig.h defines _GNU_SOURCE and _POSIX_C_SOURCE, which alter the behaviour of libc headers included after them. IMO, the HAVE_* definitions from feature tests should be given a prefix if they need to be available to other public python headers, or moved to a private header that is used only for compiling Python itself, and the definition of _*_SOURCE should be either the first line of source files inside the Python source tree, or of a precompiled header if it is used, so these macros are set consistently for the entire source tree -- as it is now, files including Python.h get different libc features depending on whether libc headers are included before or after. Simon -- System Information: Debian Release: bullseye/sid APT prefers testing-debug APT policy: (500, 'testing-debug'), (500, 'testing') Architecture: ppc64el (ppc64le) Kernel: Linux 5.3.0-3-powerpc64le (SMP w/64 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages libpython3.7-dev depends on: ii libexpat1-dev 2.2.9-1 ii libpython3.7 3.7.6-1 ii libpython3.7-stdlib 3.7.6-1 Versions of packages libpython3.7-dev recommends: ii libc6-dev [libc-dev] 2.29-7 libpython3.7-dev suggests no packages. -- no debconf information