AOO 417, 418, 450 build fails at libsot

Issues with installing under all GNU/Linux Distributions
Post Reply
philthegitter
Posts: 4
Joined: Tue Nov 17, 2020 9:09 pm

AOO 417, 418, 450 build fails at libsot

Post by philthegitter »

Hi, I'm not a trained code chef, just a recipe follower, but I've managed to apply the patches to freetype, fontconfig, and cairo, supplied by Arch Linux user pdeljanov in his Infinality Remix package, so that my eyes now enjoy infinality fonting on Fedora 32. So I've been trying to compile aoo to render using system cairo. I've tried to build aoo versions 417,418, and trunk (450) with no success. Invariably, no matter how simple of an aoo configure I try, the effort ends unsuccessfully while linking libsot, as shown below.

Source code was obtained via (for version 450 git, for example):

Code: Select all

$ git clone https://gitbox.apache.org/repos/asf/openoffice.git
$ cd main
$ wget -O external/unowinreg/unowinreg.dll https://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll
Contents of ext_sources (extras and dictionaries) are from
http://home.apache.org/~pescetti/oooextras.mirror
and
https://sourceforge.net/projects/oooextras

java-1.8.0-openjdk-1.8.0.272.b10-0.fc32.x86_64 is standard Fedora 32, from dnf install

A typical failed run:

(in /etc/profile and every user's .bashrc:)

Code: Select all

$ export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.272.b10-0.fc32.x86_64
$ export CCACHE_DIR=/hdd/ccache
$ export ANT_HOME=/home/spot/ant
$ export ANT=/home/spot/ant/bin/ant
ant is the latest 1.10.9 official.

the compile attempt:

Code: Select all

$ export MAKEOPTS="-j1"
$ export FEATURES="-ccache -distcc"
$ ccache -C
$ autoconf

$ ./configure \
--disable-beanshell \
--disable-directx \
--disable-gcjaot \
--disable-gconf \
--disable-gnome-vfs \
--disable-odk \
--disable-systray \
--disable-werror \
--without-junit \
--without-stlport \
--without-system-apr \
--without-system-apr-util \
--without-system-boost \
--without-system-coinmp \
--without-system-cppunit \
--without-system-curl \
--without-system-expat \
--without-system-graphite \
--without-system-hsqldb \
--without-system-hunspell \
--without-system-hyphen \
--without-system-icu \
--without-system-libtextcat \
--without-system-libtextcat-data \
--without-system-libxslt \
--without-system-mdds \
--without-system-mythes \
--without-system-poppler \
--without-system-python \
--without-system-rasqal \
--without-system-saxon \
--without-system-vigra \
--without-system-xmlsec1 \
--without-system-xsltml \
--without-system-zlib \
--enable-cairo \
--enable-cairo-canvas \
--with-system-cairo \
--enable-category-b \
--enable-bundled-dictionaries \
--enable-dbus \
--enable-fontconfig \
--enable-graphite \
--enable-gtk \
--enable-nss \
--enable-verbose \
--with-fonts \
--with-system-jpeg \
--with-system-libxml \
--with-system-lucene \
--with-system-nspr \
--with-system-nss \
--with-system-openssl \
--with-system-serf \
--with-ant-home=$HOME/ant \
--with-package-format="installed" \
--with-unix-wrapper=openoffice450 \
--prefix=/opt/openoffice450 \
--with-build-version="$(date +"%Y-%m-%d %H:%M") - `uname -sm`" \
--with-dmake-path=/usr/local/bin/dmake \
--with-dmake-url=https://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2 \
--with-epm-url=https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz \
--with-java=yes \
--with-jdk-home=`/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.272.b10-0.fc32.x86_64` \
--with-lucene-analyzers-jar=/usr/share/java/lucene/lucene-analyzers-2.9.4-dev.jar \
--with-lucene-core-jar=/usr/share/java/lucene/lucene-core-2.9.4-dev.jar \
--with-x
.
$ ./bootstrap
$ . LinuxX86-64Env.Set.sh
$ cd instsetoo_native
$ build --all
.
. (somewhat later)
.
=============
Building module sot
=============

Entering /hdd/openoffice/main/sot/prj
.
.
.
[ build LNK ] Library/libsot.so
R=/hdd/openoffice && S=$R/main && O=$S/solver/450/unxlngx6.pro && W=$O/workdir && mkdir -p $W/LinkTarget/Library/ && g++ -shared -Wl,-z,noexecstack '-Wl,-rpath,$ORIGIN:$ORIGIN/../ure-link/lib' '-Wl,-rpath-link,$O/lib' -Wl,-rpath-link,/lib:/usr/lib -Wl,-z,combreloc -Wl,-z,defs -L$S/solenv/unxlngx6/lib -L$O/lib -L$S/solenv/unxlngx6/lib -L/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.272.b10-0.fc32.x86_64/lib64 -L/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.272.b10-0.fc32.x86_64/jre/lib/amd64 -L/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.272.b10-0.fc32.x86_64/jre/lib/amd64/server -L/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.272.b10-0.fc32.x86_64/jre/lib/amd64/native_threads -L/usr/lib64 -Wl,--hash-style=both -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo -Wl,-Bsymbolic-functions -Wl,-O1 $W/CxxObject/sot/source/unoolestorage/xolesimplestorage.o $W/CxxObject/sot/source/unoolestorage/register.o $W/CxxObject/sot/source/base/formats.o $W/CxxObject/sot/source/base/object.o $W/CxxObject/sot/source/base/exchange.o $W/CxxObject/sot/source/base/filelist.o $W/CxxObject/sot/source/base/factory.o $W/CxxObject/sot/source/sdstor/stg.o $W/CxxObject/sot/source/sdstor/stgavl.o $W/CxxObject/sot/source/sdstor/stgcache.o $W/CxxObject/sot/source/sdstor/stgdir.o $W/CxxObject/sot/source/sdstor/stgelem.o $W/CxxObject/sot/source/sdstor/stgio.o $W/CxxObject/sot/source/sdstor/stgole.o $W/CxxObject/sot/source/sdstor/stgstrms.o $W/CxxObject/sot/source/sdstor/storage.o $W/CxxObject/sot/source/sdstor/storinfo.o $W/CxxObject/sot/source/sdstor/ucbstorage.o $W/CxxObject/sot/source/sdstor/unostorageholder.o -Wl,--start-group -Wl,--end-group -lcomphelpgcc3 -luno_cppu -luno_cppuhelpergcc3 -luno_sal -ltl -lucbhelpergcc3 -lstdc++ -lutl -lc -o $W/LinkTarget/Library/libsot.so
/usr/bin/ld: /hdd/openoffice/main/solver/450/unxlngx6.pro/workdir/CxxObject/sot/source/sdstor/ucbstorage.o: in function `UCBStorage_Impl::Init()':
ucbstorage.cxx:(.text+0x72b4): undefined reference to `non-virtual thunk to cppu::WeakImplHelper1<com::sun::star::io::XInputStream>::acquire()'
collect2: error: ld returned 1 exit status
make: *** [/hdd/openoffice/main/solenv/gbuild/LinkTarget.mk:330: /hdd/openoffice/main/solver/450/unxlngx6.pro/workdir/LinkTarget/Library/libsot.so] Error 1
dmake: Error code 2, while making 'all'

1 module(s):
sot
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making /hdd/openoffice/main/sot/prj

When you have fixed the errors in that module you can resume the build by running:

build --all:sot

$

What am I doing wrong? Is there a remedy? Help will be gratefully thanked...
OpenOffice 4110, Fedora 34
philthegitter
Posts: 4
Joined: Tue Nov 17, 2020 9:09 pm

Re: AOO 417, 418, 450 build fails at libsot

Post by philthegitter »

Just tried again with

export JAVA_HOME=/usr/lib/jvm/java-15-openjdk-15.0.1.9-1.rolling.fc32.x86_64

with the exact same failure.
OpenOffice 4110, Fedora 34
Post Reply