Adding XXH_NAMESPACE to CMake builds#1258
Merged
Conversation
Cyan4973
approved these changes
Aug 14, 2023
Closed
13 tasks
ahornby
added a commit
to ahornby/watchman
that referenced
this pull request
Nov 14, 2025
Summary: Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Differential Revision: D87088149
meta-codesync bot
pushed a commit
to facebook/proxygen
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebook/folly
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebook/openr
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebook/fb303
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebook/CacheLib
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebook/fboss
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebookexperimental/moxygen
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebookexperimental/edencommon
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebook/wangle
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebookincubator/fizz
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebook/watchman
that referenced
this pull request
Nov 15, 2025
Summary: Pull Request resolved: #1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebookincubator/cinderx
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebookexperimental/rust-shed
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebookincubator/katran
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebook/sapling
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebookincubator/hsthrift
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebook/mvfst
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebook/fbthrift
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
meta-codesync bot
pushed a commit
to facebook/hhvm
that referenced
this pull request
Nov 15, 2025
Summary: X-link: facebook/watchman#1315 Update to 1.10 to get lz4/lz4#1258 which fixes duplicate xxhash symbols Reviewed By: genevievehelsel Differential Revision: D87088149 fbshipit-source-id: 10c7e78976cfdfe618028ec3f7cafb7e3ed3af3e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When building with CMake, lz4 compiles its own version of xxHash. This is not ideal since it disallows the simultaneous use of xxHash and lz4 in the same project without modifications in the build.
I'm using Conan as a package manager, and as soon as I use xxHash and lz4, I get linker issues because of multiple defined symbols (xxHash functions in lz4 and xxHash). Originally, I tried fixing this in #1254, but as stated by @t-mat it is better to use the preprocessor define
XXH_NAMESPACE. I have added the namespace definition by default to static and dynamic library builds when using CMake.