Linker error when compiling libreoffice core.

Mysaa Java mysaa at
Tue Sep 7 14:41:03 UTC 2021

Hello, i hope i am at the right place to report this, i already tried on bugzilla and i have been sent here.

I want to compile libreoffice online on my raspberry pi 4 (armv7l) on a custom LFS OS. According to the INSTALL file, i have first to build libreoffice core.

But during the `make` command, I get a linker error of type `undefined reference to 'non-virtual thunk to ...'`

Here is the complete log of my command:
bash-5.0$ make -j 1 -rs -f /sources/libreoffice/ext/core/Makefile.gbuild build
[DEP] LNK:Library/
[LNK] Library/
[CMP] chart2/source/controller/chartcontroller
[BIN] chart2
[MOD] chart2
[DEP] LNK:Library/
[LNK] Library/
[CMP] cui/util/cui
[BIN] cui
[MOD] cui
[DEP] LNK:Library/
[LNK] Library/
/usr/bin/ld: /sources/libreoffice/ext/core/workdir/CxxObject/writerfilter/source/rtftok/rtfdocumentimpl.o: in function `writerfilter::rtftok::RTFDocumentImpl::handleEmbeddedObject()':
rtfdocumentimpl.cxx:(.text+0x86bc): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'
collect2: error: ld returned 1 exit status
make: *** [/sources/libreoffice/ext/core/writerfilter/ /sources/libreoffice/ext/core/instdir/program/] Error 1

Steps to Reproduce:
1. clone the core repository of libreoffice
2. Autogen: ./ --without-system-libxml --with-distro=LibreOfficeOnline
3. Make: make

Here is the head of ./config.log

./configure --without-system-libxml --disable-cups --disable-dbus --disable-dconf --disable-epm --disable-evolution2 --disable-ext-nlpsolver --disable-ext-wiki-publisher --disable-firebird-sdbc --disable-gio --disable-gstreamer-1-0 --disable-gtk3 --disable-gui --disable-qt5 --disable-kf5 --disable-odk --disable-online-update --disable-skia --enable-pdfimport --disable-postgresql-sdbc --disable-report-builder --disable-scripting-beanshell --disable-scripting-javascript --disable-sdremote --disable-sdremote-bluetooth --enable-extension-integration --enable-mergelibs --enable-python=internal --enable-release-build --with-external-dict-dir=/usr/share/hunspell --with-external-hyph-dir=/usr/share/hyphen --with-external-thes-dir=/usr/share/mythes --with-fonts --with-galleries=no --with-lang=ALL --with-linker-hash-style=both --with-system-dicts --with-system-zlib --with-theme=colibre --without-branding --without-help --without-java --without-junit --with-myspell-dicts --without-package-format --without-system-cairo --without-system-jars --without-system-jpeg --without-system-libpng --without-system-libxml --without-system-openssl --disable-poppler --without-system-postgresql --srcdir=/sources/libreoffice/ext/core --enable-option-checking=fata

I also added `/sources/libreoffice/ext/core/workdir/UnpackedTarball/libxml2/.libs/` to my LD_LIBRARY_PATH to solve another compilation error.

As i am totally unfamilliar with UNO API and with C++ programming, i don't think i can do a lot.

Thanks in advance for your time.

Mysaa Java

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the LibreOffice mailing list