Bug 262285

Summary: editors/libreoffice 7.3.0.3 fails to build
Product: Ports & Packages Reporter: bergerkos
Component: Individual Port(s)Assignee: FreeBSD Office Team <office>
Status: Closed DUPLICATE    
Severity: Affects Only Me CC: grahamperrin, lwhsu
Priority: --- Flags: bugzilla: maintainer-feedback? (office)
Version: Latest   
Hardware: Any   
OS: Any   

Description bergerkos 2022-03-01 23:53:07 UTC
System 13.0-RELEASE-p7. Arch = amd64
Port editors/libreoffice from latest git tree fails to build.

In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_dib.cpp:31:
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/UnpackedTarball/pdfium/core/fxcodec/jpx/cjpx_decoder.h:63:14: error: unknown type name 'opj_codec_t'; did you mean 'opj_poc_t'?
  UnownedPtr<opj_codec_t> m_Codec;
             ^~~~~~~~~~~
             opj_poc_t
/usr/local/include/openjpeg.h:225:3: note: 'opj_poc_t' declared here
} opj_poc_t;
  ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_dib.cpp:31:
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/UnpackedTarball/pdfium/core/fxcodec/jpx/cjpx_decoder.h:65:14: error: use of undeclared identifier 'opj_stream_t'
  UnownedPtr<opj_stream_t> m_Stream;
             ^
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_dib.cpp:124:34: error: use of undeclared identifier 'OPJ_CLRSPC_SRGB'; did you mean 'CLRSPC_SRGB'?
          jpx_info.colorspace == OPJ_CLRSPC_SRGB) {
                                 ^~~~~~~~~~~~~~~
                                 CLRSPC_SRGB
/usr/local/include/openjpeg.h:133:2: note: 'CLRSPC_SRGB' declared here
        CLRSPC_SRGB = 1,                /**< sRGB */
        ^
3 errors generated.
gmake[3]: *** [/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/solenv/gbuild/LinkTarget.mk:400: /usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/GenCxxObject/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_dib.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory '/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3'
gmake[2]: *** [Makefile:288: build] Error 2
gmake[2]: Leaving directory '/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2022-03-01 23:54:42 UTC
Please check https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262008#c2
Comment 2 Li-Wen Hsu freebsd_committer freebsd_triage 2022-03-01 23:54:49 UTC

*** This bug has been marked as a duplicate of bug 262008 ***
Comment 3 bergerkos 2022-03-01 23:59:00 UTC
Right! Just why did it not show up in search prior to my filling in the submit form? Thank you! And sorry.
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-03-02 01:43:57 UTC
(In reply to bergerkos from comment #3)

> … why did it not show up in search …

I can't guess, but FreshPorts is our friend: 

<https://www.freshports.org/editors/libreoffice/>

* the first of the two red bug icons

<https://www.freshports.org/faq.php#bugs-find>