Bug 262938

Summary: editors/libreoffice: strtod_nolocale() missing when linking libreoffice-7.3.1.3 on 12.3-STABLE
Product: Ports & Packages Reporter: jau
Component: Individual Port(s)Assignee: FreeBSD Office Team <office>
Status: New ---    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (office)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
typescript of a failed build attempt none

Description jau 2022-03-30 11:25:47 UTC
strtod_nolocale() missing during link phase.

Quite obviously this version of libreoffice was committed to the ports repo
without testing it on 12.3-stable.
Comment 1 jau 2022-04-01 17:09:59 UTC
Created attachment 232875 [details]
typescript of a failed build attempt

The typescript was missing.
I hope this helps.
Comment 2 jau 2022-04-02 05:52:40 UTC
Right, it seems this is yet another symptom of faulty support for LTO.

During traditional dynamic linking it is OK for module A to refer to
module B such that B further requires module C, but the loader doesn't
really know what and where C is. If B has been linked before, the loader
doesn't actually need to see the contents of C.

When doing LTO the loader needs to find all the dependent libraries and
also their 2nd level dependencies and so on, and thus it complains loudly
when A refers B and B refers C while C can't be found when linking A.

Dropping LTO from the compilation options allowed the build to complete.