[Bug] ld.lld: error: undefined symbol: __fread_chk in 12.3.0 #1655
Description
[REQUIRED] Please fill in the following fields:
- Pre-built SDK from the website or open-source from this repo: 12.3.0
- Firebase C++ SDK version: 12.3.0
- Problematic Firebase Component: Messaging (Auth, Database, etc.)
- Other Firebase Components in use: _____ (Auth, Database, etc.)
- Platform you are using the C++ SDK on: Linux (Mac, Windows, or Linux)
- Platform you are targeting: Android (iOS, Android, and/or desktop)
[REQUIRED] Please describe the issue here:
Trying to link to libfirebase_messaging.a gives me this undefined symbol, this does not happen in 12.2.0 or
prior versions.
ld.lld: error: undefined symbol: __fread_chk
referenced by stdio.h:105 (/tmp/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h:105)
messaging.cc.o:(firebase::messaging::ProcessMessages()) in archive /home/daniel/code/firebase_cpp-sdk-12/firebase_cpp_sdk_12.3.0//libs/android/arm64-v8a/libfirebase_messaging.a
did you mean: __pread_chk
defined in: /home/daniel/code/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/23/libc.so
Steps to reproduce:
Have you been able to reproduce this issue with just the Firebase C++ quickstarts ? Did not try
What's the issue repro rate? 100%
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
I'm trying to update https://github.com/cutelyst/firebase-qt/tree/wip/firebasecmake to work
with latest Firebase and CMake, so far it builds fine with <12.3
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
Relevant Code:
sorry for not providing all info, if this is not enough I might build a simple sample project, just fighting with gradle now to have java messaging libraries included
Activity