LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-26-2021, 05:00 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,552
Blog Entries: 19

Rep: Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444
Java problem (I think) with libreoffice on slackware-current


I am slowly moving from Slackware-14 to Slackware-current (aka Slackware-15-rc2). Yesterday I installed libreoffice-7.2.2 (from the alien repo) and Oracle jdk (repackaged as per the Slackware Howto). But it aborts while trying to put up the splash screen.
Code:
terminate called after throwing an instance of 'com::sun::star::uno::DeploymentException'


Fatal exception: Signal 6
Stack:
/usr/lib64/libreoffice/program/libuno_sal.so.3(+0x5f8e4)[0x7f2e241098e4]
/usr/lib64/libreoffice/program/libuno_sal.so.3(+0x5fb1c)[0x7f2e24109b1c]
/usr/lib64/libreoffice/program/libuno_sal.so.3(+0x5fd1b)[0x7f2e24109d1b]
/lib64/libc.so.6(+0x3b8b0)[0x7f2e23d758b0]
/lib64/libc.so.6(gsignal+0x98)[0x7f2e23d75848]
/lib64/libc.so.6(abort+0x102)[0x7f2e23d5c526]
/usr/lib64/libstdc++.so.6(+0xa589a)[0x7f2e23ba089a]
/usr/lib64/libstdc++.so.6(+0xb106a)[0x7f2e23bac06a]
/usr/lib64/libstdc++.so.6(+0xb10d5)[0x7f2e23bac0d5]
/usr/lib64/libstdc++.so.6(+0xb1368)[0x7f2e23bac368]
/usr/lib64/libreoffice/program/libutllo.so(+0x5e9d3)[0x7f2e1f4b79d3]
/usr/lib64/libreoffice/program/libutllo.so(+0x5c942)[0x7f2e1f4b5942]
/usr/lib64/libreoffice/program/libutllo.so(+0x5d01d)[0x7fc7dc84d01d]
/usr/lib64/libreoffice/program/libutllo.so(+0x5d23e)[0x7fc7dc84d23e]
/usr/lib64/libreoffice/program/libutllo.so(_ZN3utl10ConfigItemC2ERKN3rtl8OUStringE14ConfigItemMode+0x112)[0x7fc7dc840994]
/usr/lib64/libreoffice/program/libutllo.so(+0xbd9b4)[0x7fc7dc8ad9b4]
/usr/lib64/libreoffice/program/libutllo.so(+0xc0fbb)[0x7fc7dc8b0fbb]
/usr/lib64/libreoffice/program/libutllo.so(+0xc0e7f)[0x7fc7dc8b0e7f]
/usr/lib64/libreoffice/program/libutllo.so(+0xc0cf0)[0x7fc7dc8b0cf0]
/usr/lib64/libreoffice/program/libutllo.so(+0xc0a64)[0x7fc7dc8b0a64]
/usr/lib64/libreoffice/program/libutllo.so(+0xc09b6)[0x7fc7dc8b09b6]
/usr/lib64/libreoffice/program/libutllo.so(+0xc08e9)[0x7fc7dc8b08e9]
/usr/lib64/libreoffice/program/libutllo.so(+0xc068a)[0x7fc7dc8b068a]
/usr/lib64/libreoffice/program/libutllo.so(+0xc02fc)[0x7fc7dc8b02fc
/usr/lib64/libreoffice/program/libutllo.so(_ZN19SvtSysLocaleOptionsC1Ev+0xd0)[0x7fc7dc8af328]
/usr/lib64/libreoffice/program/libvcllo.so(+0xa99835)[0x7fc7dbe1a835]
/usr/lib64/libreoffice/program/libvcllo.so(_ZN11AllSettings12GetLayoutRTLEv+0x1e)[0x7fc7dbe1a946]
/usr/lib64/libreoffice/program/libvclplug_gtk3lo.so(+0x11a0c4)[0x7fc7d50140c4]
/usr/lib64/libreoffice/program/libvclplug_gtk3lo.so(+0x11d1b3)[0x7fc7d50171b3]
/usr/lib64/libreoffice/program/libvclplug_gtk3lo.so(+0x11f132)[0x7fc7d5019132]
/usr/lib64/libreoffice/program/libvclplug_gtk3lo.so(+0x11f0ec)[0x7fc7d50190ec]
/usr/lib64/libreoffice/program/libvcllo.so(_Z7InitVCLv+0x270)[0x7fc7dbe3d22e]
/usr/lib64/libreoffice/program/libvcllo.so(_Z10ImplSVMainv+0x4a)[0x7fc7dbe3cc0d]
/usr/lib64/libreoffice/program/libvcllo.so(_Z6SVMainv+0x9)[0x7fc7dbe3cdef]
/usr/lib64/libreoffice/program/libsofficeapp.so(soffice_main+0x148)[0x7fc7e132603d]
/usr/lib64/libreoffice/program/soffice.bin[0x401175]
/usr/lib64/libreoffice/program/soffice.bin[0x40115b]
/lib64/libc.so.6(__libc_start_main+0xcd)[0x7fc7e10f501d]
/usr/lib64/libreoffice/program/soffice.bin[0x40108a]
Most of what DDG brings up on this error is fairly old but this one https://lists.debian.org/debian-open.../msg00008.html is recent. Can anyone give me a hint on where to look for the problem?
 
Old 11-26-2021, 06:11 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,552

Original Poster
Blog Entries: 19

Rep: Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444
This gets weirder. The jdk tarball that I downloaded from oracle is called jdk-17_linux-x64_bin.tar.gz. So it should be 64-bit, right? But evidently it isn't because I just checked the product of the slackbuild and it's actually a 32-bit (jdk-17_linux-i586-1.txz). Well, that explains why it doesn't work. I should have checked the name more carefully before installing it. But then where do I get the correct java from??

And weirder...I checked some of the actual installed libraries in /usr/lib/java/lib and got
Code:
$ file libjava.so
libjava.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
hazel@bigboy.localdomain:/usr/lib/java/lib
$ file libjawt.so
libjawt.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
Now I really don't know what I'm doing!

Last edited by hazel; 11-26-2021 at 06:49 AM.
 
Old 11-26-2021, 08:02 AM   #3
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,752

Rep: Reputation: Disabled
There's a doc called "Oracle JDK 17 Certified System Configurations" where it says only x64 versions are supported.
It seems unlikely that jdk-17_linux-i586-1.txz is something they would distribute, maybe your source repository is out of date.
 
Old 11-26-2021, 08:14 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,552

Original Poster
Blog Entries: 19

Rep: Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444
Quote:
Originally Posted by elcore View Post
There's a doc called "Oracle JDK 17 Certified System Configurations" where it says only x64 versions are supported.
It seems unlikely that jdk-17_linux-i586-1.txz is something they would distribute, maybe your source repository is out of date.
No, it's a script problem. I checked how the slackbuild script identifies the architecture and it turns out that it doesn't match the mix of hyphens and underlines that oracle uses in its package names. It expects hyphens only. And i586 is simply the default architecture for use in the final package name if x86_64 wasn't detected.
Code:
JAVA_ARCH=$(basename $SOURCETGZ | cut -f 4 -d - | cut -f 1 -d .)
if [ "$JAVA_ARCH" = "x64" ]; then
  LIB_ARCH=amd64
  ARCH=x86_64
  LIBDIRSUFFIX="64"
else
  LIB_ARCH=i386
  ARCH=i586
  LIBDIRSUFFIX=""
fi
So it is the correct architecture, once installed. It just has a silly name. So why isn't it working?
 
Old 11-26-2021, 08:56 AM   #5
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,752

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
No, it's a script problem. I checked how the slackbuild script identifies the architecture and it turns out that it doesn't match the mix of hyphens and underlines that oracle uses in its package names. It expects hyphens only. And i586 is simply the default architecture for use in the final package name if x86_64 wasn't detected.
Should be reported to maintaner, but SBo seems frozen at rc time so there might be a long delay.
There's possibly a working script somewhere in ponce repository, but I don't use JDK so I did not check.
In the meantime, something like this could set the architecture, though I'm not sure if the variables are correct here;
Code:
#JAVA_ARCH=$(basename $SOURCETGZ | cut -f 4 -d - | cut -f 1 -d .)
#if [ "$JAVA_ARCH" = "x64" ]; then
LIB_ARCH=amd64
ARCH=x86_64
LIBDIRSUFFIX="64"
#else
#  LIB_ARCH=i386
#  ARCH=i586
#  LIBDIRSUFFIX=""
#fi
If it was my responsibility I'd check how rpm package was built, that usually points to correct variables.
 
Old 11-26-2021, 08:56 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,552

Original Poster
Blog Entries: 19

Rep: Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444
One other odd thing: I don't know if it's relevant or not but the libraries installed in /usr/lib/java/lib aren't executable. Do they need to be?
 
Old 11-26-2021, 09:31 AM   #7
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,752

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
One other odd thing: I don't know if it's relevant or not but the libraries installed in /usr/lib/java/lib aren't executable. Do they need to be?
Yes, however /usr/lib is not a common place to put 64bit libs.
Code:
[shell]:ls -al /opt/VirtualBox/*.so
-rwxr-xr-x 1 root root   444384 Nov 22 16:49 /opt/VirtualBox/DbgPlugInDiggers.so
-rwxr-xr-x 1 root root 37080248 Nov 22 16:49 /opt/VirtualBox/UICommon.so
-rwxr-xr-x 1 root root    10536 Nov 22 16:49 /opt/VirtualBox/VBoxAuth.so
-rwxr-xr-x 1 root root    31288 Nov 22 16:49 /opt/VirtualBox/VBoxAuthSimple.so
-rwxr-xr-x 1 root root  4161416 Nov 22 16:48 /opt/VirtualBox/VBoxDD.so
-rwxr-xr-x 1 root root  8747208 Nov 22 16:48 /opt/VirtualBox/VBoxDD2.so
-rwxr-xr-x 1 root root   435048 Nov 22 16:49 /opt/VirtualBox/VBoxDDU.so
-rwxr-xr-x 1 root root   175560 Nov 22 16:49 /opt/VirtualBox/VBoxDbg.so
-rwxr-xr-x 1 root root    31160 Nov 22 16:49 /opt/VirtualBox/VBoxDragAndDropSvc.so
-rwxr-xr-x 1 root root    27088 Nov 22 16:49 /opt/VirtualBox/VBoxGuestControlSvc.so
-rwxr-xr-x 1 root root    35400 Nov 22 16:49 /opt/VirtualBox/VBoxGuestPropSvc.so
-rwxr-xr-x 1 root root   117920 Nov 22 16:49 /opt/VirtualBox/VBoxHeadless.so
-rwxr-xr-x 1 root root    18688 Nov 22 16:49 /opt/VirtualBox/VBoxHostChannel.so
-rwxr-xr-x 1 root root    70128 Nov 22 16:49 /opt/VirtualBox/VBoxKeyboard.so
-rwxr-xr-x 1 root root   270184 Nov 22 16:49 /opt/VirtualBox/VBoxNetDHCP.so
-rwxr-xr-x 1 root root   295264 Nov 22 16:49 /opt/VirtualBox/VBoxNetNAT.so
-rwxr-xr-x 1 root root   209632 Nov 22 16:49 /opt/VirtualBox/VBoxPython.so
-rwxr-xr-x 1 root root   209640 Nov 22 16:49 /opt/VirtualBox/VBoxPython2_6.so
-rwxr-xr-x 1 root root  7885000 Nov 22 16:49 /opt/VirtualBox/VBoxRT.so
-rwxr-xr-x 1 root root   192224 Nov 22 16:49 /opt/VirtualBox/VBoxSDL.so
-rwxr-xr-x 1 root root   252640 Nov 22 16:49 /opt/VirtualBox/VBoxSVGA3D.so
-rwxr-xr-x 1 root root    60288 Nov 22 16:49 /opt/VirtualBox/VBoxSharedClipboard.so
-rwxr-xr-x 1 root root    64280 Nov 22 16:49 /opt/VirtualBox/VBoxSharedFolders.so
-rwxr-xr-x 1 root root  4196232 Nov 22 16:49 /opt/VirtualBox/VBoxVMM.so
-rwxr-xr-x 1 root root  1163552 Nov 22 16:49 /opt/VirtualBox/VBoxXPCOM.so
-rwxr-xr-x 1 root root    47872 Nov 22 16:49 /opt/VirtualBox/VBoxXPCOMC.so
-rwxr-xr-x 1 root root  1851744 Nov 22 16:49 /opt/VirtualBox/VirtualBoxVM.so
-rwxr-xr-x 1 root root   130280 Nov 22 16:49 /opt/VirtualBox/libvboxjxpcom.so
[shell]:ls -al /usr/lib/*.so
ls: cannot access '/usr/lib/*.so': No such file or directory
[shell]:ls -al /lib/*.so
ls: cannot access '/lib/*.so': No such file or directory
[shell]:ls -al /usr/local/lib/*.so
ls: cannot access '/usr/local/lib/*.so': No such file or directory
[shell]:
 
Old 11-26-2021, 10:12 AM   #8
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 996

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
LibreOffice can be built without Java. It does not appear to be missing any essential functionality.
Ed
 
Old 11-26-2021, 10:26 AM   #9
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,135

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
There are some features that require Java, chiefly Base and a few wizards. To compile without Java, use the flag --without-java (how else?) For the details, see https://wiki.documentfoundation.org/Development/Java
 
Old 11-26-2021, 10:28 AM   #10
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,588

Rep: Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542
Quote:
Originally Posted by EdGr View Post
LibreOffice can be built without Java. It does not appear to be missing any essential functionality.
Yep, it's required for Base (the database application), and it allows the use of Java-based plugins, but for the vast majority of people it's not necessary.

(No idea whether it would be enough to uninstall Oracle JDK or if LibreOffice needs re-building with a specific flag.)

 
Old 11-26-2021, 10:38 AM   #11
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,552

Original Poster
Blog Entries: 19

Rep: Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444
I didn't build it; Eric did. Maybe he'll make a contribution to this thread.
 
Old 11-26-2021, 10:47 AM   #12
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 996

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
LibreOffice can be compiled using the Slackbuild script. It takes 45 minutes on my 8-core HEDT.
Ed
 
Old 11-28-2021, 06:43 AM   #13
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,552

Original Poster
Blog Entries: 19

Rep: Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444
Following advice in another thread, I removed jdk and installed the alien version of openjre instead. I hoped that as my libreoffice comes from the same repo, I'd get better results. But it still crashes. I've got a working LO on Slackware 14, so for the time being I can go on using that..
 
Old 11-28-2021, 07:11 AM   #14
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,752

Rep: Reputation: Disabled
Did you make a 64bit package? If you have 64bit libs in 32bit package, installpkg will install 64bit libs in /usr/lib and that is why I assume it does not work.
Do you have multilib? It would be only reason to even have anything in /usr/lib.
 
Old 11-28-2021, 07:18 AM   #15
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,552

Original Poster
Blog Entries: 19

Rep: Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444
Quote:
Originally Posted by elcore View Post
Do you have multilib? It would be only reason to even have anything in /usr/lib.
Not yet. I shall need a 32-bit glibc for my printer eventually but I don't aim to install that until after the release date. Oddly enough, the slackbuild that I got from Slackware64-current/extras/java did name the package -i586- but the java libraries that I checked with the file command were definitely 64-bit. I assume the script was confused by the rather weird way that Oracle name their packages, using a mixture of "-" and "_" separators.

Anyway, I've removed all that and replaced it with Eric's openjre 64-bit package and LO still crashes.

Last edited by hazel; 11-28-2021 at 07:29 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Vulkan, slackware-current, and an issue I don't think is Slackware's fault (Veloren) garpu Slackware 3 03-22-2021 03:27 PM
How to install only Writer from Libreoffice package"libreoffice-4.0.3-i486-1alien.txz just.srad Slackware 10 05-30-2013 02:37 PM
LXer: Build Your Business Around LibreOffice, LibreOffice Certification Program Announced LXer Syndicated Linux News 0 05-07-2012 12:10 PM
LXer: LibreOffice Tips: Inserting QurĂ¢??an text in LibreOffice Writer LXer Syndicated Linux News 0 04-16-2012 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration