Bug 262938 - editors/libreoffice: strtod_nolocale() missing when linking libreoffice-7.3.1.3 on 12.3-STABLE
Summary: editors/libreoffice: strtod_nolocale() missing when linking libreoffice-7.3.1...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: FreeBSD Office Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-30 11:25 UTC by jau
Modified: 2022-04-02 05:52 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (office)


Attachments
typescript of a failed build attempt (28.64 KB, text/plain)
2022-04-01 17:09 UTC, jau
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.