Buiiding LO6.1.4.2 with pdfium emits “error: invalid conversion from ‘int’ to ‘boolean’ [-fpermissive]”

Дилян Палаузов dpa-libreoffice at aegee.org
Wed Jan 16 09:48:01 UTC 2019


Hello, 

building LO 6.1.4.2 using “../configure --enable-evolution2 --enable-avahi --enable-python=system --enable-eot --enable-
online-update --enable-introspection=yes --without-doxygen --with-jdk-home=/opt/jdk --with-ant-home=/opt/ant --without-
junit --enable-formula-logger --enable-introspection --with-system-bzip2 --with-system-cairo --with-system-epoxy --with-
system-zlib --with-system-jpeg --with-system-expat --with-system-libxml --with-system-icu --with-system-openldap --
without-system-poppler --with-system-curl --with-system-boost --with-webdav --with-krb5 --with-gssapi --with-system-
lcms2 --with-boost --with-system-nss --with-system-graphite --with-system-harfbuzz  --with-system-openssl --with-system-
libpng --disable-firebird-sdbc --disable-gtk”

fails with the error message below.

Regards
  Дилян

mkdir -p /src/libreoffice-6.1.4.2/build/instdir
/src/libreoffice-6.1.4.2/solenv/bin/install-gdb-printers -a /src/libreoffice-6.1.4.2/build/instdir -c
make -j 4  -rs -f /src/libreoffice-6.1.4.2/Makefile.gbuild    all
[build CXX] workdir/UnpackedTarball/pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp
[build PRL] CustomTarget/postprocess/images/sorted.lst
[build PRL] CustomTarget/postprocess/images/commandimagelist.ilst
[build DEP] LNK:Library/libguesslanglo.so
[build LNK] Library/libguesslanglo.so
[build DEP] LNK:Library/libnumbertextlo.so
[build LNK] Library/libnumbertextlo.so
/src/libreoffice-6.1.4.2/build/workdir/UnpackedTarball/pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp: In function ‘boolean
_src_fill_buffer(j_decompress_ptr)’:
/src/libreoffice-6.1.4.2/build/workdir/UnpackedTarball/pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp:80:10: error: invalid
conversion from ‘int’ to ‘boolean’ [-fpermissive]
   return 0;
          ^
/src/libreoffice-6.1.4.2/build/workdir/UnpackedTarball/pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp: In function ‘boolean
_src_resync(j_decompress_ptr, int)’:
/src/libreoffice-6.1.4.2/build/workdir/UnpackedTarball/pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp:84:10: error: invalid
conversion from ‘int’ to ‘boolean’ [-fpermissive]
   return 0;
          ^
/src/libreoffice-6.1.4.2/build/workdir/UnpackedTarball/pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp: In function ‘bool
JpegLoadInfo(const uint8_t*, uint32_t, int*, int*, int*, int*, bool*)’:
/src/libreoffice-6.1.4.2/build/workdir/UnpackedTarball/pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp:153:42: error: cannot
convert ‘bool’ to ‘boolean’
   int ret = jpeg_read_header(&cinfo, true);
                                          ^
In file included from /src/libreoffice-
6.1.4.2/build/workdir/UnpackedTarball/pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp:24:
/usr/local/include/jpeglib.h:1039:30: note:   initializing argument 2 of ‘int jpeg_read_header(j_decompress_ptr,
boolean)’
 EXTERN(int) jpeg_read_header JPP((j_decompress_ptr cinfo,
                              ^~~
/src/libreoffice-6.1.4.2/build/workdir/UnpackedTarball/pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp: In member function
‘bool CCodec_JpegDecoder::InitDecode()’:
/src/libreoffice-6.1.4.2/build/workdir/UnpackedTarball/pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp:237:42: error: cannot
convert ‘bool’ to ‘boolean’
   int ret = jpeg_read_header(&cinfo, true);
                                          ^
In file included from /src/libreoffice-
6.1.4.2/build/workdir/UnpackedTarball/pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp:24:
/usr/local/include/jpeglib.h:1039:30: note:   initializing argument 2 of ‘int jpeg_read_header(j_decompress_ptr,
boolean)’
 EXTERN(int) jpeg_read_header JPP((j_decompress_ptr cinfo,
                              ^~~
/src/libreoffice-6.1.4.2/build/workdir/UnpackedTarball/pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp: In member function
‘int CCodec_JpegModule::ReadHeader(CCodec_JpegModule::Context*, int*, int*, int*)’:
/src/libreoffice-6.1.4.2/build/workdir/UnpackedTarball/pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp:464:48: error: cannot
convert ‘bool’ to ‘boolean’
   int ret = jpeg_read_header(&ctx->m_Info, true);
                                                ^
In file included from /src/libreoffice-
6.1.4.2/build/workdir/UnpackedTarball/pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp:24:
/usr/local/include/jpeglib.h:1039:30: note:   initializing argument 2 of ‘int jpeg_read_header(j_decompress_ptr,
boolean)’
 EXTERN(int) jpeg_read_header JPP((j_decompress_ptr cinfo,





More information about the LibreOffice mailing list