[Bug 279821] databases/mongodb60 fails to start with LTO on

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 17 Jun 2024 18:55:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279821

            Bug ID: 279821
           Summary: databases/mongodb60 fails to start with LTO on
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ronald@FreeBSD.org
          Reporter: zentex@gmail.com
             Flags: maintainer-feedback?(ronald@FreeBSD.org)
          Assignee: ronald@FreeBSD.org

Similar to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278254

I was upgrading to the latest unifi8(8.2.93) with the mongodb60(6.0.15_2)
depdancy in ports (was previously running on mongodb50). After upgrade, mongo
refuses to start. I tried to get a version on mongo, to make sure it was the
latest binary, with a "mongo --version" and it returned 

ld-elf.so.1: /usr/local/bin/mongod: Undefined symbol
"_ZN6snappy8CompressEPKcmPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE"

Cursory search lead to the bug report about mongodb50. Having nothing to lose,
I changed the Makefile options to "OPTIONS_DEFAULT=        SASL SSL", and after
a [~20hr compile in a slow azure VM] it fired right up.

before recompiling in ports, I also tried the pkg version (its quicker), but
that too seems to have LTO turned on.

information you may need/want about the system

FreeBSD some.host.name 14.1-RELEASE FreeBSD 14.1-RELEASE
releng/14.1-n267679-10e31f0946d8 GENERIC amd64

url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",

-- 
You are receiving this mail because:
You are the assignee for the bug.