bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 in pkg-config files in


From: Sam James
Subject: Re: Missing -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 in pkg-config files in Clang + LLVM environment?
Date: Fri, 9 Sep 2022 01:02:43 +0100


> On 9 Sep 2022, at 00:54, Thomas Dickey <dickey@his.com> wrote:
> 
> On Fri, Sep 09, 2022 at 12:26:08AM +0100, Sam James wrote:
>> Originally reported to pinentry at https://dev.gnupg.org/T6193.
>> 
>> It looks like -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600
>> is missing from the .pc files in some environments which
>> leads to a pinentry build failure with Clang 15.
> 
> _DEFAULT_SOURCE is a (documented) feature of GNU C library.
> The configure script checks for this, and adds it to the flags
> used for building (including the test-programs) and passes that
> into the ".pc" file.
> 
> musl doesn't have any noticeable documentation.
> see - https://musl.libc.org/manual.html (one page)
> 
> fwiw, in that one page,
> https://www.musl-libc.org/doc/1.0.0/manual.html
> 
> _DEFAULT_SOURCE is not mentioned.
> 

musl does, however, respect XOPEN_SOURCE.

It mentions this and _XOPEN_SOURCE at
https://musl.libc.org/doc/1.0.0/manual.md indeed.

It appears that openembedded hit this
as well:
https://lists.openembedded.org/g/openembedded-core/topic/patch_4_7_enable/93221795?p=,,,20,0,0,0::recentpostdate/sticky,,,20,2,0,93221795,previd%3D1661352780880053400,nextid%3D1661330800944042442&previd=1661352780880053400&nextid=1661330800944042442

>> This is on a musl + Clang system (details below for how
>> to reproduce).
> 
> none of the systems that I develop on have musl.
> (you're free to submit a patch, if you use musl).
> 

Thanks, I'll take a look.

Best,
sam

Attachment: signature.asc
Description: Message signed with OpenPGP


reply via email to

[Prev in Thread] Current Thread [Next in Thread]