Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__deprecated not supported on clang. #426

Closed
lhunath opened this issue Jun 17, 2018 · 1 comment
Closed

__deprecated not supported on clang. #426

lhunath opened this issue Jun 17, 2018 · 1 comment

Comments

@lhunath
Copy link

lhunath commented Jun 17, 2018

Cannot compile json-c for Android under clang, this appears related to #370.

  FAILED: /Users/lhunath/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang  --target=x86_64-none-linux-android --gcc-toolchain=/Users/lhunath/Library/Android/sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/darwin-x86_64 --sysroot=/Users/lhunath/Library/Android/sdk/ndk-bundle/sysroot -DMPW_JSON=1 -DMPW_SODIUM=1 -Dmpw_EXPORTS -I"../../../../../lib/libsodium/build-android~/out" -I"../../../../../lib/libjson-c/build-android~/out" -isystem /Users/lhunath/Library/Android/sdk/ndk-bundle/sysroot/usr/include/x86_64-linux-android -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/mpw.dir/Users/lhunath/Documents/workspace/lyndir/MasterPassword/platform-independent/c/core/src/mpw-marshal-util.c.o -MF CMakeFiles/mpw.dir/Users/lhunath/Documents/workspace/lyndir/MasterPassword/platform-independent/c/core/src/mpw-marshal-util.c.o.d -o CMakeFiles/mpw.dir/Users/lhunath/Documents/workspace/lyndir/MasterPassword/platform-independent/c/core/src/mpw-marshal-util.c.o   -c /Users/lhunath/Documents/workspace/lyndir/MasterPassword/platform-independent/c/core/src/mpw-marshal-util.c
  In file included from /Users/lhunath/Documents/workspace/lyndir/MasterPassword/platform-independent/c/core/src/mpw-marshal-util.c:21:
  In file included from /Users/lhunath/Documents/workspace/lyndir/MasterPassword/platform-independent/c/core/src/mpw-marshal-util.h:24:
  In file included from ../../../../../lib/libjson-c/build-android~/out/json-c/json.h:21:
  In file included from ../../../../../lib/libjson-c/build-android~/out/json-c/linkhash.h:16:
  ../../../../../lib/libjson-c/build-android~/out/json-c/json_object.h:429:26: error: expected function body after function declarator
                                                    const char *key) __deprecated;
                                                                     ^
@lhunath lhunath closed this as completed Jun 17, 2018
@lhunath
Copy link
Author

lhunath commented Jun 17, 2018

Going to close this until I have a better idea on whether this issue is relevant or an artifact of local changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant