[oe] [oe-commits] [openembedded-core] 02/02: nativesdk-glibc: Split glibc and libcrypt to use libxcrypt instead

Andre McCurdy armccurdy at gmail.com
Mon Apr 9 22:23:45 UTC 2018


On Sun, Apr 8, 2018 at 5:52 PM, Khem Raj <raj.khem at gmail.com> wrote:
> On Sun, Apr 8, 2018 at 10:00 AM Martin Jansa <martin.jansa at gmail.com> wrote:
>
>> On Ubuntu 14.04 this fails with:
>>
>> ../git/gen-des-tables.c: In function ‘write_table_u8’:
>> ../git/gen-des-tables.c:307:3: error: ‘for’ loop initial declarations are
>> only allowed in C99 mode
>>    for (size_t i = 0; i < m; i++)
>>    ^
>
> You can patch this to move declaration just above loop if that helps we
> should apply such a patch for compatibility sake but I wonder if there are
> more c99 assumptions at work here

It looks like the upstream intention is to be buildable with c99 + GNU
extensions, so explicitly setting -std=gnu99 seems reasonable.

  https://github.com/besser82/libxcrypt#portability-notes

There even seems to be a configure check for it, so not sure why
Centos6 etc get through to a build failure?

  https://github.com/besser82/libxcrypt/blob/develop/configure.ac#L33



More information about the Openembedded-devel mailing list