delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/11/02/04:01:02

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 6A2912aG1294400
Authentication-Results: delorie.com; dmarc=pass (p=quarantine dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 6A2912aG1294400
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=KPznjrJ/
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3772E4BA799F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1793610059;
bh=Vutz213rp6xBWpdehMmNUTbRqaKJ87Sw/6dRFqgfxQE=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=KPznjrJ/ExWCNo/h1qU50PHJ6ZyOanyXVlm6N+xKuxvQZyNYJrF3dqDjQRSW6WpyR
tkTiyfrondcasD8jLIe5mrUc7w5M9AnS79JChwF0+Z0Pye1bbsa3unDIWxirGJA9P+
GoBd+SqYiON9gA8p54FLs7qyXp1LqtZYtsxfJoOc=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B28274BA799F
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B28274BA799F
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793610030; cv=none;
b=pFwHVvEaiPrxpHP/weGR6fCSWDaGieTYGpGopJJi+cfGrDLzgnrvpkWdI8DGL7e+jTq026hw7XQV+vTL2BfPwLvDRHuzQx0KfcU9rbi/UKWXw6Xu31erqyc266Yt00zLBUbo2YYaooWBh8aPlOBV6LdEHSTGHWFPUexMUrnWBnQ=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1793610030; c=relaxed/simple;
bh=dJ+/OBJBHGA2HEkgIZ29Ddz/Mm4TQhklzCxQQ8M17Q0=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=sHeD3VR0CPlra8cjHICgvXLHUkJQ1ZFp5q9aNSEVaIL+JtEw+bTfpXhRH3GjBW94+EVB8ej3jOfr6aOMQPXSWCz14FO+XDreLBhmsR2IpH87asix8ILRNKZOSwYO8ETTG8xQyU5tFZLFy143cdxdY0Rf71Kr4sGiuNC5A8eF660=
ARC-Authentication-Results: i=1; sourceware.org;
dkim=pass (2048-bit key, unprotected)
header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707
header.b=dLm+DLPk
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B28274BA799F
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793610028; x=1794214828;
h=content-transfer-encoding:content-type:in-reply-to:from
:content-language:references:to:subject:user-agent:mime-version:date
:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=2OEzY92QkIJCvA3a6XXPP8JibCZ2UkqHxcB9VrIT/4c=;
b=pfYW8KNI84thBuN+tAL8EG7od3qZW7XVhRKMwAUwqa/GVbmBJVoxxkgXpzmU5KyZQh
CuXDVjbGLjtxCfV/b+Az9TDLWE06GWbhEt63j8EUkywPn1N9v8n2r3qJMVG6STYjwxFv
t6cqEcE5g4FwqW0T2ukJgBAiSpWHyGXNtuPJ+mCYKAAh4dWykKZAdCKXLzGRG2WkyN8K
f6UN+ba8fftPnoKZ6xl65+Gx7fAJh7p2MVGL/tScL/AWNTtAQKN2UWUnn2VV7ri/uazd
23GyniBMBWMR3ZqN2bmhOQ0kzh4h8VzZ9QjYHfzXwqxzcM3BWJjyHFiJa+h2gc8GfCVt
DBHg==
X-Gm-Message-State: AFq9FYIrRQ0nuZt2IFW5J9f0iFTAcEOrxi2ue9KZeupsSqtcLH/EbEDB
Rc8X0IGseNWxGsvF0MWRmBuXNYuMLzIyoZ5U+upTPh27iYUxCc0rURutVI1W7w==
X-Gm-Gg: AYBFou1igRBbuJfWo9rMHpRSNu1mHfAhdV3TmPA/9Mxy9PmMnfxYgxo4o1Syxeq+8Ym
SuPPmE04VULGwhsRhtqrXZkHOi6K79GMbcLPm6l+6r5reGgzFjICpCSLLZgJRVrngJkPi//3Gc5
8QqhLwQAjdiY0zzJgv1ZTXLoBjW7A9l6byHGcEYWCR5j69ooo8SbdoQ6i25hNrUlJQ/+3BAU24g
YUULdUw95BpPI+7TKEHQXoIiUCkEXo+qv8bYA5Cf+HmmQ8jiIG0w25Z1ovon013PCeYHkPtSBu1
S93US2kAj+AOYr+CuReVJJGnAkFREYVS8EOjPRidjQGSPkZNOcgjQeXPgrVGEfajQSgzKA/p7cI
DfeZ+md4Qp/t1afbQWzGOkOT2AN7kfQNK49Fucwy3Junt9ZaNkoHRNEQqgprvXpRsFXU8wB/KvN
zGYHz00ofHXheJQXC95SiQyt2NGwaNlddBedBCcRRNtQf5d4rQyq3pW2jSCeFm5HcDd9RFgEEgj
wDgJ12v2DCk2WdRzPJGsFrqHU6Q7rARkbhCXiQO76/z12Q+7IqWqI31wapU/Do8HIe7KXbjy3m8
Zs+oXi9wtk50TDmgFw02xBghpdWHfCdiCn5tXBucDZ0wyu5Q2BWBx0rvvBaegHP3LTw583CsORH
AfFI=
X-Received: by 2002:a05:600c:628d:b0:4a2:1a:a128 with SMTP id
5b1f17b1804b1-4ac17d19b68mr208581735e9.19.1793610027985;
Mon, 02 Nov 2026 01:00:27 -0800 (PST)
Message-ID: <277aa6d9-0224-4527-b132-e8ff90cfc862@gmail.com>
Date: Mon, 2 Nov 2026 10:00:25 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: info on python 3.12.15 release
To: cygwin AT cygwin DOT com
References: <c48ae318-1ff9-4cc7-b754-132eb26736fc AT gmail DOT com>
<2375a211-a53d-4fb4-9722-f89b69b3766e AT dronecode DOT org DOT uk>
In-Reply-To: <2375a211-a53d-4fb4-9722-f89b69b3766e@dronecode.org.uk>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 6A2912aG1294400

On 01/11/2026 22:56, Jon Turney via Cygwin wrote:
> On 07/10/2026 21:55, Marco Atzeri via Cygwin wrote:
>> Hi Guys,
>>

>> If I missed any more, let me know.
> 
> Hi Marco,
> 
> Something that seems to have regressed in 3.12.12 vs. 3.9.25, is the 
> handling of following:
> 
>> $ cat test.c
>>
>> #include <sys/types.h>
>> #include <Python.h>
>> #include <sys/time.h>
>>
>> int main()
>> {
>>     return 0;
>> }
>>
>> $ gcc test.c -D_POSIX_C_SOURCE=200809L -I/usr/include/python3.9
>>
>> $ gcc test.c -D_POSIX_C_SOURCE=200809L -I/usr/include/python3.12
>> In file included from /usr/include/python3.12/Python.h:12,
>>                  from test.c:7:
>> /usr/include/python3.12/pyconfig.h:1901:9: warning: "__BSD_VISIBLE" 
>> redefined
>>  1901 | #define __BSD_VISIBLE 1
>>       |         ^~~~~~~~~~~~~
>> In file included from /usr/include/sys/config.h:5,
>>                  from /usr/include/_ansi.h:11,
>>                  from /usr/include/sys/types.h:20,
>>                  from test.c:6:
>> /usr/include/sys/features.h:279:9: note: this is the location of the 
>> previous definition
>>   279 | #define __BSD_VISIBLE           0
>>       |         ^~~~~~~~~~~~~
>> In file included from /usr/include/python3.12/pyport.h:202,
>>                  from /usr/include/python3.12/Python.h:38:
>> /usr/include/sys/time.h:106:34: error: unknown type name ‘u_int’; did 
>> you mean ‘int’?
>>   106 | bintime_mul(struct bintime *_bt, u_int _x)
>>       |                                  ^~~~~
>>       |                                  int
>>
> 
> (this is further reduced from the trivial example in [1], which my 
> searches turned up investigating this problem in more complex rebuilds)
> 
> This seems to be due to a change in pyconfig.h. In /usr/include/ 
> python3.9/pyconfig.h:
> 
>> /* Define on FreeBSD to activate all library features */
>> /* #undef __BSD_VISIBLE */
> 
> ... but in /usr/include/python3.12/pyconfig.h:
> 
>> /* Define on FreeBSD to activate all library features */
>> #define __BSD_VISIBLE 1
> 
> I don't think this is right.  In newlib, __BSD_VISIBLE is an internal 
> detail representing the result of checking the feature test macros, and 
> nothing good can come from redefining it after headers have already been 
> included.
> 
> (And the comment says this should be on for FreeBSD, so why for us?)
> 
> [1] https://stackoverflow.com/questions/39786845/cygwin-g-compiling- 
> with-python-h-duplicated-definition-of-bsd-visible
> 
> 

It seems a upstream feature; on 3.12.12 and 3.12.15 sources I found

---------- configure.ac ---------------------
# The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
# them.
AC_DEFINE([__BSD_VISIBLE], [1],
           [Define on FreeBSD to activate all library features])
----------------------------------------------

It seems that there is a misalignment between newlib and FreeBSD

"How it is set: By default, FreeBSD enables __BSD_VISIBLE (set to 1) 
unless you explicitly define strict standard feature test macros like 
_POSIX_C_SOURCE or _XOPEN_SOURCE, which automatically lower or disable 
__BSD_VISIBLE (0) to enforce standards conformance."





-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2026   by DJ Delorie     Updated Sep 20 2026