firebase-cpp-sdk icon indicating copy to clipboard operation
firebase-cpp-sdk copied to clipboard

[General Question] Conflicts between Firebase SDK and WebRtc SDK | ssl_lib.cc multiple definitions of functions

Open Mian-Zaid opened this issue 2 years ago • 3 comments

[REQUIRED] Please fill in the following fields:

  • Pre-built SDK from the website or open-source from this repo: _____
  • Firebase C++ SDK version: 9.0.0___
  • Main Firebase Components in concern: App_ (Auth, Database, etc.)
  • Other Firebase Components in use: Database_ (Auth, Database, etc.)
  • Platform you are using the C++ SDK on: Ubuntu 18.04.6 LTS_ (Mac, Windows, or Linux)
  • Platform you are targeting: Desktop___ (iOS, Android, and/or desktop)

[REQUIRED] Please describe the question here:

I am building Firebase Sdk with WebRtc. while adding firebase App classes I am getting the following error.

home/webrtc/lib_webrtc/src/third_party/boringssl/src/ssl/ssl_lib.cc.o first defined here

../firebase/libs/linux/x86_64/legacy/libfirebase_app.a(93f69bbf5771d4a5b72056dec59d993b_ssl_lib.cc.o): In function ssl_st::~ssl_st()':

/home/runner/work/firebase-cpp-sdk/firebase-cpp-sdk/out-sdk/external/src/boringssl/src/ssl/ssl_lib.cc:655: multiple definition of ssl_st::~ssl_st()'

getting the same error for every function of ssl_st

Stand-alone Both firebase SDK and Webrtc SDK are working fine, the above error arises upon integrating these two.

here are my CMakeLists.txt

Mian-Zaid avatar Jun 14 '22 09:06 Mian-Zaid

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Jun 14 '22 09:06 google-oss-bot

Are you able to build from source? That should work around with this issue.

If not, we should have a fix in the next release. https://github.com/firebase/firebase-cpp-sdk/pull/1000

chkuang-g avatar Jun 17 '22 18:06 chkuang-g

Are you able to build from source? That should work around with this issue.

If not, we should have a fix in the next release. #1000

No i haven't

Mian-Zaid avatar Jun 30 '22 12:06 Mian-Zaid

This should be fixed in the latest release.

jonsimantov avatar Aug 11 '22 18:08 jonsimantov