Bug 30093 - __block is a reserved word with clang -fblocks
Summary: __block is a reserved word with clang -fblocks
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: glibc (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL: https://sourceware.org/bugzilla/show_...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-25 19:03 MSK by Chess
Modified: 2017-10-28 04:21 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chess 2014-05-25 19:03:40 MSK
Пришлось заняться переборкой прог. (написана на Objective-C)
И вот выяснилось:

1. gnustep перевели на clang
2. Прог. перестала собираться, ошибка
/usr/include/crypt.h:43:35: error: __block attribute not allowed, only allowed on local variables
extern void encrypt (char *__block, int __edflag) __THROW __nonnull ((1));

В glibc-2.19-418 это исправлено

Временно помогло: https://bugzilla.redhat.com/show_bug.cgi?id=1009623

sed -i -e 's/\*__block/\*__libc_block/g' /usr/include/unistd.h

Возможно внести в наш glibc ? Или ждать  когда 2.19 появится?
Comment 1 Dmitry V. Levin 2017-10-28 04:21:06 MSK
glibc >= 2.19 давно в Сизифе.