[openssl-dev] [openssl.org #4479] OS X 10.8 (x86_64): Compile errors when using "no-asm -ansi"

noloader@gmail.com via RT rt at openssl.org
Fri Mar 25 17:01:58 UTC 2016

On Fri, Mar 25, 2016 at 12:49 PM, Richard Levitte via RT <rt at openssl.org> wrote:
> Vid Fre, 25 Mar 2016 kl. 16.31.14, skrev noloader at gmail.com:
>> To configure:
>> ./config shared no-asm -ansi -D_DEFAULT_SOURCE=__STRICT_ANSI__
>> I'm not sure if Configure should set _DEFAULT_SOURCE=__STRICT_ANSI__
>> automatically.
> Why do you give it the value __STRICT_ANSI__? All documentation I find suggests
> it's enough to simply define it. See man page feature_test_macros(7) on Linux
> (at least)
> The alternative is, of course, to define _DEFAULT_SOURCE in the files where
> -ansi becomes a problem.

That was based on examining /usr/include/features.h and the comment

    _DEFAULT_SOURCE The default set of features (taking precedence
over __STRICT_ANSI__).

How do you convey features by just defining it? It seems like it needs
an argument, like _DEFAULT_SOURCE=__STRICT_ANSI__ or

But its definitely not my area of expertise. I've never had to define to before.


Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4479
Please log in as guest with password guest if prompted

More information about the openssl-dev mailing list