maintainer-feedback requested: [Bug 262008] editors/libreoffice failed to build

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 17 Feb 2022 09:02:03 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked FreeBSD Office Team
<office@FreeBSD.org> for maintainer-feedback:
Bug 262008: editors/libreoffice failed to build
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262008



--- Description ---
% cat /var/db/ports/editors_libreoffice/options | grep -v '^#'
_OPTIONS_READ=libreoffice-7.2.5.2
_FILE_COMPLETE_OPTIONS_LIST=COINMP CUPS DOCS GNOME GTK3 GTK4 JAVA KF5 LTO
MARIADB MMEDIA PGSQL QT5 SDK TEST WEBDAV
OPTIONS_FILE_UNSET+=COINMP
OPTIONS_FILE_UNSET+=CUPS
OPTIONS_FILE_SET+=DOCS
OPTIONS_FILE_UNSET+=GNOME
OPTIONS_FILE_SET+=GTK3
OPTIONS_FILE_UNSET+=GTK4
OPTIONS_FILE_UNSET+=JAVA
OPTIONS_FILE_UNSET+=KF5
OPTIONS_FILE_UNSET+=LTO
OPTIONS_FILE_UNSET+=MARIADB
OPTIONS_FILE_UNSET+=MMEDIA
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_SET+=QT5
OPTIONS_FILE_UNSET+=SDK
OPTIONS_FILE_UNSET+=TEST
OPTIONS_FILE_UNSET+=WEBDAV
% cd /usr/ports/editors/libreoffice
% make
[snip]
[build CXX]
workdir/UnpackedTarball/pdfium/core/fpdfapi/parser/cpdf_object_strea
m.cpp
S=/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3 && I=$S/instdir &&
W=$
S/workdir &&  mkdir -p
$W/GenCxxObject/UnpackedTarball/pdfium/core/fpdfapi/page/
 $W/Dep/GenCxxObject/UnpackedTarball/pdfium/core/fpdfapi/page/ && cd
/usr/ports/
editors/libreoffice/work/libreoffice-7.3.0.3 && CCACHE_CPP2=1	  c++
-DBOOST_ER
ROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DFREEBSD
-DND
EBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT
-isystem
 /usr/local/include -DFPDF_IMPLEMENTATION -DUSE_SYSTEM_LCMS2
-DUSE_SYSTEM_LIBJPE
G -DUSE_SYSTEM_ZLIB -DUSE_SYSTEM_ICUUC -DMEMORY_TOOL_REPLACES_ALLOCATOR
-DUNICOD
E -DWIN32_LEAN_AND_MEAN -DCOMPONENT_BUILD  -DUSE_SYSTEM_LIBOPENJPEG2 
-DSYSTEM_Z
LIB -DZLIB_CONST  -DFT2_BUILD_LIBRARY
-DFT_CONFIG_MODULES_H='<freetype-custom-co
nfig/ftmodule.h>' -DFT_CONFIG_OPTIONS_H='<freetype-custom-config/ftoption.h>'  

-fvisibility=hidden    -Wall -Wno-missing-braces -Wnon-virtual-dtor
-Wendif-labe
ls -Wextra -Wundef -Wunreachable-code -Wshadow -Wunused-macros
-Wembedded-direct
ive -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe
-fstack-protector
-strong   -Wdeprecated-copy-dtor -Wimplicit-fallthrough
-Wunused-exception-param
eter -Wrange-loop-analysis -fvisibility-inlines-hidden -fPIC
-Woverloaded-virtua
l -Wno-unused-parameter -Wno-unused-local-typedefs -std=c++17	-O2 -pipe
-fstac
k-protector-strong -DLDAP_DEPRECATED -isystem /usr/local/include
-fno-strict-ali
asing  -isystem /usr/local/include   -DEXCEPTIONS_ON -fexceptions  -w
-DLIBO_INT
ERNAL_ONLY  -c $W/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_dib.cpp -o
$W/Ge
nCxxObject/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_dib.o 
-I$W/UnpackedTar
ball/pdfium/third_party/freetype/include/
-I$W/UnpackedTarball/pdfium/third_part
y/freetype/src/include/ -I$W/UnpackedTarball/pdfium
-I$W/UnpackedTarball/pdfium/
third_party -I$W/UnpackedTarball/pdfium/third_party/agg23  -isystem
/usr/local/i
nclude/openjpeg-2.4  -I$S/include   -I$S/config_host	       -isystem
/usr/loc
al/include  -Wno-long-long     
In file included from
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/wo
rkdir/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_code
c_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/wo
rkdir/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
identifie
r 'opj_stream_t'
  UnownedPtr<opj_stream_t> m_Stream;
	     ^
test -f
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/Unpacked
Tarball/pdfium/core/fpdfapi/parser/cpdf_object_stream.cpp || (echo "Missing
gene
rated source file
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdi
r/UnpackedTarball/pdfium/core/fpdfapi/parser/cpdf_object_stream.cpp" && false)
[snip]
[build CXX]
workdir/UnpackedTarball/pdfium/core/fpdfapi/edit/cpdf_stringarchives
tream.cpp
S=/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3 && I=$S/instdir &&
W=$
S/workdir &&  mkdir -p
$W/GenCxxObject/UnpackedTarball/pdfium/core/fpdfapi/parse
r/ $W/Dep/GenCxxObject/UnpackedTarball/pdfium/core/fpdfapi/parser/ && cd
/usr/po
rts/editors/libreoffice/work/libreoffice-7.3.0.3 && CCACHE_CPP2=1	  c++
-D
BOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3
-DFREE
BSD -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT

-isystem /usr/local/include -DFPDF_IMPLEMENTATION -DUSE_SYSTEM_LCMS2
-DUSE_SYSTE
M_LIBJPEG -DUSE_SYSTEM_ZLIB -DUSE_SYSTEM_ICUUC -DMEMORY_TOOL_REPLACES_ALLOCATOR

-DUNICODE -DWIN32_LEAN_AND_MEAN -DCOMPONENT_BUILD  -DUSE_SYSTEM_LIBOPENJPEG2 
-D
SYSTEM_ZLIB -DZLIB_CONST  -DFT2_BUILD_LIBRARY
-DFT_CONFIG_MODULES_H='<freetype-c
ustom-config/ftmodule.h>'
-DFT_CONFIG_OPTIONS_H='<freetype-custom-config/ftoptio
n.h>'	-fvisibility=hidden    -Wall -Wno-missing-braces -Wnon-virtual-dtor
-Wen
dif-labels -Wextra -Wundef -Wunreachable-code -Wshadow -Wunused-macros
-Wembedde
d-directive -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe
-fstack-p
rotector-strong   -Wdeprecated-copy-dtor -Wimplicit-fallthrough
-Wunused-excepti
on-parameter -Wrange-loop-analysis -fvisibility-inlines-hidden -fPIC
-Woverloade
d-virtual -Wno-unused-parameter -Wno-unused-local-typedefs -std=c++17	-O2
-pip
e -fstack-protector-strong -DLDAP_DEPRECATED -isystem /usr/local/include
-fno-st
rict-aliasing  -isystem /usr/local/include   -DEXCEPTIONS_ON -fexceptions  -w
-D
LIBO_INTERNAL_ONLY  -c
$W/UnpackedTarball/pdfium/core/fpdfapi/parser/cpdf_cross_
ref_table.cpp -o
$W/GenCxxObject/UnpackedTarball/pdfium/core/fpdfapi/parser/cpdf
_cross_ref_table.o  -I$W/UnpackedTarball/pdfium/third_party/freetype/include/
-I
$W/UnpackedTarball/pdfium/third_party/freetype/src/include/
-I$W/UnpackedTarball
/pdfium -I$W/UnpackedTarball/pdfium/third_party
-I$W/UnpackedTarball/pdfium/thir
d_party/agg23  -isystem /usr/local/include/openjpeg-2.4  -I$S/include  
-I$S/con
fig_host	   -isystem /usr/local/include	-Wno-long-long	   
/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
identifie
r '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.
[snip]
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

Stop.
make[1]: stopped in /usr/ports/editors/libreoffice
*** Error code 1

Stop.
make: stopped in /usr/ports/editors/libreoffice