After upgrading snappy 1.1.0 -> 1.2.0, mongodb50 fails to start: ld-elf.so.1: /usr/local/bin/mongod: Undefined symbol "_ZN6snappy8CompressEPKcmPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE" Built with poudriere, running on 13.2-RELEASE-p9 I'm building mongodb50 now with 'LTO=off' to see if that helps
After building mongodb with 'LTO=off', mongod starts normally with snappy 1.2.0
Thanks for reporting this. And for testing with LTO=off. I will turn LTO off in the default pkg build. What was the architecture you were running mongodb on? Amd64 or aarch64 or something else?
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=9220f0b1125626b100a823b801cec4d8362ec523 commit 9220f0b1125626b100a823b801cec4d8362ec523 Author: Ronald Klop <ronald@FreeBSD.org> AuthorDate: 2024-04-08 17:13:22 +0000 Commit: Ronald Klop <ronald@FreeBSD.org> CommitDate: 2024-04-08 17:16:25 +0000 databases/mongodb50: turn off LTO After upgrading snappy 1.1.0 -> 1.2.0, mongodb50 fails to start: ld-elf.so.1: /usr/local/bin/mongod: Undefined symbol "_ZN6snappy8CompressEPKcmPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE" Apparentally turning off LTO fixes this. PR: 278254 databases/mongodb50/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
A commit in branch 2024Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=b3aa1ea86f1e120da135245c95f0e9cfaa00687b commit b3aa1ea86f1e120da135245c95f0e9cfaa00687b Author: Ronald Klop <ronald@FreeBSD.org> AuthorDate: 2024-04-08 17:13:22 +0000 Commit: Ronald Klop <ronald@FreeBSD.org> CommitDate: 2024-04-08 17:23:04 +0000 databases/mongodb50: turn off LTO After upgrading snappy 1.1.0 -> 1.2.0, mongodb50 fails to start: ld-elf.so.1: /usr/local/bin/mongod: Undefined symbol "_ZN6snappy8CompressEPKcmPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE" Apparentally turning off LTO fixes this. (cherry picked from commit 9220f0b1125626b100a823b801cec4d8362ec523) PR: 278254 databases/mongodb50/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Even though I'm still curious what CPU architecture you were using I'm already closing this issue as all needed actions are done for now.
I’m on amd64