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

Please update glog #20780

Closed
3 tasks done
vlazdra opened this issue Aug 22, 2018 · 4 comments
Closed
3 tasks done

Please update glog #20780

vlazdra opened this issue Aug 22, 2018 · 4 comments
Labels
Help Wanted :octocat: Issues ideal for external contributors. Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@vlazdra
Copy link

vlazdra commented Aug 22, 2018

Environment:

  • React Native Environment Info:
    • System:
      • OS: macOS High Sierra 10.13.6
      • CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
      • Memory: 713.88 MB / 16.00 GB
      • Shell: 3.2.57 - /bin/bash
    • Binaries:
      • Node: 8.11.4 - ~/.nvm/versions/node/v8.11.4/bin/node
      • Yarn: 1.9.4 - ~/.nvm/versions/node/v8.11.4/bin/yarn
      • npm: 5.6.0 - ~/.nvm/versions/node/v8.11.4/bin/npm
    • SDKs:
      • iOS SDK:
        • Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
      • Android SDK:
        • Build Tools: 19.1.0, 21.1.2, 23.0.1, 23.0.2, 23.0.3, 24.0.1, 24.0.2, 25.0.0, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.0, 28.0.2
        • API Levels: 19, 20, 21, 23, 24, 25, 26, 27, 28
    • IDEs:
      • Android Studio: 3.1 AI-173.4907809
      • Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
    • npmPackages:
      • react: 16.4.1 => 16.4.1
      • react-native: 0.56.0 => 0.56.0
    • npmGlobalPackages:
      • babel-preset-react-native: 2.1.0
      • create-react-native-app: 1.0.0
      • react-native-cli: 2.0.1
      • react-native-create-library: 3.1.2
      • react-native: 0.56.0

Description

I am unable to build my project with the latest version of RN and GoogleCast SDK, because of duplicate symbols declaration for glog and GoogleCast.

What I have found, and hope that would resolve the issue, is the newest version of glog: https://github.com/google/glog/releases/tag/v0.3.5
When you look at the changelog, you can see that they mentioned the collision with other of their projects.

Please update glog for RN to version 0.3.5 instead of 0.3.4.

Build output when trying to build the project:

duplicate symbol __ZN3fLB18FLAGS_nolog_prefixE in: /Users/user/Documents/Apps/test-rn/RNAwesomeProject/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.3.1_static/GoogleCast.framework/GoogleCast(logging_f31ccd6e0091bd60840b95581a5633bf.o) /Users/user/Library/Developer/Xcode/DerivedData/AwesomeProject-bcowxhqhamztzfgnadpnfmbuniwk/Build/Products/Debug-iphonesimulator/glog/libglog.a(logging.o) duplicate symbol __ZN3fLB16FLAGS_log_prefixE in: /Users/user/Documents/Apps/test-rn/RNAwesomeProject/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.3.1_static/GoogleCast.framework/GoogleCast(logging_f31ccd6e0091bd60840b95581a5633bf.o) /Users/user/Library/Developer/Xcode/DerivedData/AwesomeProject-bcowxhqhamztzfgnadpnfmbuniwk/Build/Products/Debug-iphonesimulator/glog/libglog.a(logging.o) duplicate symbol __ZN3fLB28FLAGS_nosymbolize_stacktraceE in: /Users/user/Documents/Apps/test-rn/RNAwesomeProject/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.3.1_static/GoogleCast.framework/GoogleCast(examine_stack_04a326263e981a36fcf91c06d43ac91b.o) /Users/user/Library/Developer/Xcode/DerivedData/AwesomeProject-bcowxhqhamztzfgnadpnfmbuniwk/Build/Products/Debug-iphonesimulator/glog/libglog.a(utilities.o) duplicate symbol __ZN3fLB26FLAGS_symbolize_stacktraceE in: /Users/user/Documents/Apps/test-rn/RNAwesomeProject/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.3.1_static/GoogleCast.framework/GoogleCast(examine_stack_04a326263e981a36fcf91c06d43ac91b.o) /Users/user/Library/Developer/Xcode/DerivedData/AwesomeProject-bcowxhqhamztzfgnadpnfmbuniwk/Build/Products/Debug-iphonesimulator/glog/libglog.a(utilities.o) duplicate symbol __ZN3fLI9FLAGS_novE in: /Users/user/Library/Developer/Xcode/DerivedData/AwesomeProject-bcowxhqhamztzfgnadpnfmbuniwk/Build/Products/Debug-iphonesimulator/glog/libglog.a(vlog_is_on.o) /Users/user/Documents/Apps/test-rn/RNAwesomeProject/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.3.1_static/GoogleCast.framework/GoogleCast(vlog_is_on_d296ce482b5042b2314dc169f2626462.o) duplicate symbol __ZN3fLI7FLAGS_vE in: /Users/user/Library/Developer/Xcode/DerivedData/AwesomeProject-bcowxhqhamztzfgnadpnfmbuniwk/Build/Products/Debug-iphonesimulator/glog/libglog.a(vlog_is_on.o) /Users/user/Documents/Apps/test-rn/RNAwesomeProject/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.3.1_static/GoogleCast.framework/GoogleCast(vlog_is_on_d296ce482b5042b2314dc169f2626462.o) duplicate symbol __ZN3fLS13FLAGS_vmoduleE in: /Users/user/Library/Developer/Xcode/DerivedData/AwesomeProject-bcowxhqhamztzfgnadpnfmbuniwk/Build/Products/Debug-iphonesimulator/glog/libglog.a(vlog_is_on.o) /Users/user/Documents/Apps/test-rn/RNAwesomeProject/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.3.1_static/GoogleCast.framework/GoogleCast(vlog_is_on_d296ce482b5042b2314dc169f2626462.o) ld: 7 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Reproducible Demo

https://github.com/vlazdra/RNAwesomeProject

Because GoogleCast SDK exceeded the limit for file size for GitHub, please do a pod install to get all the Pods to successfully reproduce the issue.

@hramos
Copy link
Contributor

hramos commented Aug 22, 2018

glog was upgraded to 0.3.5 almost two months ago in b5fca80. Please give the 0.57 release candidate a try: https://github.com/facebook/react-native/releases/tag/v0.57.0-rc.0

@hramos hramos closed this as completed Aug 22, 2018
@vlazdra
Copy link
Author

vlazdra commented Aug 22, 2018

Sorry but that's for Android.
For iOS its still the same version: https://github.com/facebook/react-native/blob/v0.57.0-rc.0/third-party-podspecs/glog.podspec

@hramos
Copy link
Contributor

hramos commented Aug 22, 2018

I see. Can you send a PR?

@hramos hramos reopened this Aug 22, 2018
@hramos hramos added Platform: iOS iOS applications. Help Wanted :octocat: Issues ideal for external contributors. labels Aug 22, 2018
@vlazdra
Copy link
Author

vlazdra commented Aug 23, 2018

While the original issue for this bug was regarding the glog and google-cast-sdk, with further investigation I have come to the conclusion that upgrading glog to 0.3.5 wouldn't affect the issue.

The fix is to downgrade to google-cast-sdk 4.3.0.
I have filed a separate issue with the GoogleCast team hoping to get it resolved: https://issuetracker.google.com/issues/113069508

But while I was at it, I made a pull request to update glog for iOS either way, since it was already done for Android.

facebook-github-bot pushed a commit that referenced this issue Aug 23, 2018
Summary:
While the original reason for this change was because of an issue #20780, with further investigation I concluded that the issue is till present for this combo of versions:
glog - 0.3.5
google-cast-sdk - 4.3.1

Downgrading google-cast-sdk to 4.3.0 fixed the build issue.

Release Notes:
--------------
Updated glog version from 0.3.4 to 0.3.5 for iOS

[IOS] [ENHANCEMENT] [GLOG]
Pull Request resolved: #20811

Differential Revision: D9485221

Pulled By: hramos

fbshipit-source-id: 65caf0839588384a5229a6165506dc6ef62e5fc5
hramos pushed a commit that referenced this issue Aug 24, 2018
Summary:
While the original reason for this change was because of an issue #20780, with further investigation I concluded that the issue is till present for this combo of versions:
glog - 0.3.5
google-cast-sdk - 4.3.1

Downgrading google-cast-sdk to 4.3.0 fixed the build issue.

Release Notes:
--------------
Updated glog version from 0.3.4 to 0.3.5 for iOS

[IOS] [ENHANCEMENT] [GLOG]
Pull Request resolved: #20811

Differential Revision: D9485221

Pulled By: hramos

fbshipit-source-id: 65caf0839588384a5229a6165506dc6ef62e5fc5
aleclarson pushed a commit to aleclarson/react-native that referenced this issue Sep 16, 2018
Summary:
While the original reason for this change was because of an issue facebook#20780, with further investigation I concluded that the issue is till present for this combo of versions:
glog - 0.3.5
google-cast-sdk - 4.3.1

Downgrading google-cast-sdk to 4.3.0 fixed the build issue.

Release Notes:
--------------
Updated glog version from 0.3.4 to 0.3.5 for iOS

[IOS] [ENHANCEMENT] [GLOG]
Pull Request resolved: facebook#20811

Differential Revision: D9485221

Pulled By: hramos

fbshipit-source-id: 65caf0839588384a5229a6165506dc6ef62e5fc5
t-nanava pushed a commit to microsoft/react-native-macos that referenced this issue Jun 17, 2019
Summary:
While the original reason for this change was because of an issue facebook#20780, with further investigation I concluded that the issue is till present for this combo of versions:
glog - 0.3.5
google-cast-sdk - 4.3.1

Downgrading google-cast-sdk to 4.3.0 fixed the build issue.

Release Notes:
--------------
Updated glog version from 0.3.4 to 0.3.5 for iOS

[IOS] [ENHANCEMENT] [GLOG]
Pull Request resolved: facebook#20811

Differential Revision: D9485221

Pulled By: hramos

fbshipit-source-id: 65caf0839588384a5229a6165506dc6ef62e5fc5
t-nanava pushed a commit to microsoft/react-native-macos that referenced this issue Jun 17, 2019
Summary:
While the original reason for this change was because of an issue facebook#20780, with further investigation I concluded that the issue is till present for this combo of versions:
glog - 0.3.5
google-cast-sdk - 4.3.1

Downgrading google-cast-sdk to 4.3.0 fixed the build issue.

Release Notes:
--------------
Updated glog version from 0.3.4 to 0.3.5 for iOS

[IOS] [ENHANCEMENT] [GLOG]
Pull Request resolved: facebook#20811

Differential Revision: D9485221

Pulled By: hramos

fbshipit-source-id: 65caf0839588384a5229a6165506dc6ef62e5fc5
@facebook facebook locked as resolved and limited conversation to collaborators Aug 25, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Aug 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Help Wanted :octocat: Issues ideal for external contributors. Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants