Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Adding XXH_NAMESPACE to CMake builds#1258

Merged
Cyan4973 merged 1 commit intolz4:devfrom
Ohjurot:feature/cmake_lz4_namespace
Aug 15, 2023
Merged

Adding XXH_NAMESPACE to CMake builds#1258
Cyan4973 merged 1 commit intolz4:devfrom
Ohjurot:feature/cmake_lz4_namespace

Conversation

@Ohjurot
Copy link
Contributor

@Ohjurot Ohjurot commented Aug 14, 2023

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.

@Cyan4973 Cyan4973 merged commit e3f3718 into lz4:dev Aug 15, 2023
@t-mat t-mat mentioned this pull request Sep 12, 2023
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
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

Successfully merging this pull request may close these issues.

2 participants