LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-20-2019, 03:29 AM   #1
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Rep: Reputation: 153Reputation: 153
Compiling libreoffice from source using AlienBob's SlackBuild


I've encountered a problem with AlienBob's compiled version of libreoffice. It doesn't make any difference whether I use 14.2, current with or without KDE5 I get the same problem

It's been suggested that perhaps I've not using an up to date system or a system that not clean in some way.

My system is up to date - I'm using current with kde4. I have few extra packages installed


Quote:
apache-ant-1.9.9-noarch-1_SBo
jdk-8u202-x86_64-1_SBo
libreoffice-6.2.7-x86_64-1_SBo
libreoffice-helppack_en_US-6.2.7-x86_64-1_SBo
libreoffice-langpack_en_GB-6.2.7-x86_64-1_SBo
mariadb-java-client-2.4.0-noarch-1_SBo
As the suspicion is that my system is not clean I've elected to compile libreoffice myself.

I can compile libreoffice after cloning libreoffice's git.

I can't compile alienbob's libreoffice. I get this message


Quote:
:
: *****************************************************************
: ERROR: ERROR: Missing files at /tmp/build/tmp-libreoffice/libreoffice-6.3.0.4/solenv/bin/modules/installer/scriptitems.pm line 1212.
: *****************************************************************

Thu Sep 19 23:14:09 2019 (00:02 min.)
Failed to install: No such file or directory at /tmp/build/tmp-libreoffice/libreoffice-6.3.0.4/solenv/bin/ooinstall line 91.
make: *** [Makefile:336: install] Error 2
Installing XML files because 'make distro-pack-install' fails to do so...
mv: cannot stat '/tmp/build/package-libreoffice/usr/lib64/libreoffice/sdk/classes': No such file or directory
libreoffice.SlackBuild FAILED at line 1415

Can anyone point me in the right direction as to what I might be missing?

Alex
 
Old 09-20-2019, 04:08 AM   #2
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Have you tried the binary build supplied by LibreOffice (I use this one)? https://slackbuilds.org/repository/1...e/libreoffice/

If you want to build from source, do you have all the requirements listed here installed: https://slackbuilds.org/repository/1...e/LibreOffice/
 
Old 09-20-2019, 07:21 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You only show the last few lines from the build log. The real error will have occurred way earlier. You can capture the full build output by appending the following to your commandline:
Code:
 2>&1 | tee /tmp/build_libreoffice.log
which will still show the full output on your screen while also writing a copy into the logfile /tmp/build_libreoffice.log.
Then I have a script called "checkpkg" which I always use to check my build logs. Download it and use it as follows:
Code:
sh checkpkg -l /tmp/build_libreoffice.log
That will still give you a lot of output, but only the relevant stuff that needs your attention. At the beginning you should be able to find the real cause of your build failure.

By the way.
What is the failure with my binary packages of LibreOffice for Slackware-current?
 
3 members found this post helpful.
Old 09-20-2019, 10:26 AM   #4
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Original Poster
Rep: Reputation: 153Reputation: 153
Quote:
Originally Posted by Alien Bob View Post
The real error will have occurred way earlier.
Thanks for pointing out my error! I should have learnt this lesson by now - start from the beginning of the log.

It's looking like it's complaining that I haven't got gpgme installed. Downloaded your package dated 07-Mar-2007 05:15 which looks like it was compiled against Slackware-11.0.

I'm now getting a lot further.


Quote:
Originally Posted by Alien Bob View Post
By the way.
What is the failure with my binary packages of LibreOffice for Slackware-current?
The problem I'm getting with your packaged version of libreoffice is when I try and add a macro to a personalised toolbar in Calc by following the menu

Tools -> Customize -> Toolbars (tab)

Then in the “Category” drop down menu I choose the option “Macros”
LibreOffice then presents the “LibreOffice 6.2 Document Recovery” message box and crashes out.

You reported in the chat https://alien.slackbook.org/blog/lib...rent/#comments that I might have a stale system.

I'm hoping that compiling with your SlackBuild might throw some more light on what I'm seeing. So far it's highlighted the gpgme issue and that I might be out of step in not using your openjdk package.

So now just waiting for the compilation to complete.
 
1 members found this post helpful.
Old 09-20-2019, 10:42 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by aikempshall View Post
It's looking like it's complaining that I haven't got gpgme installed. Downloaded your package dated 07-Mar-2007 05:15 which looks like it was compiled against Slackware-11.0.
I don't understand why you use an ancient version of gpgme when this is part of Slackware 14.2 and -current?
Your problems may stem from having an incomplete install or a system broken for other reasons.
 
Old 09-20-2019, 10:45 AM   #6
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,026

Rep: Reputation: 618Reputation: 618Reputation: 618Reputation: 618Reputation: 618Reputation: 618
For grins I just tried what aikempshall described above Tools - Customize - Toolbars - Category - Macros and I see the same behaviour he is reporting. Drops into document recovery mode. I'm using the 6.3.0.4 version from Eric. I'm running 64-current with latest Plasma5.
 
Old 09-20-2019, 10:54 AM   #7
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,587

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
The problem I'm getting with your packaged version of libreoffice is when I try and add a macro to a personalised toolbar in Calc by following the menu

Tools -> Customize -> Toolbars (tab)

Then in the “Category” drop down menu I choose the option “Macros”
LibreOffice then presents the “LibreOffice 6.2 Document Recovery” message box and crashes out.
Huh, same here for me, and I'm current on current. (XFCE, though.) Bug in Libre Office?
 
Old 09-20-2019, 02:23 PM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by 3rensho View Post
For grins I just tried what aikempshall described above Tools - Customize - Toolbars - Category - Macros and I see the same behaviour he is reporting. Drops into document recovery mode. I'm using the 6.3.0.4 version from Eric. I'm running 64-current with latest Plasma5.
More fun is that I also run slackware64-current with Plasma5 on the laptop here, and cannot reproduce this.
 
Old 09-20-2019, 03:16 PM   #9
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,587

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
OK...had my partner on Windows 10 do the same steps and Calc, but it didn't crash. He got a message that 64-bit Java wasn't found.

(I've got OpenJDK installed: 1.8.0_222.)

I tried uninstalling java, but it still crashed.

Last edited by garpu; 09-20-2019 at 03:21 PM.
 
Old 09-20-2019, 03:18 PM   #10
qunying
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 258

Rep: Reputation: 147Reputation: 147
I have the same crash on current, but with the official binary release, it does not crash. I am running under i3wm.
 
Old 09-21-2019, 03:24 AM   #11
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Original Poster
Rep: Reputation: 153Reputation: 153
Quote:
Originally Posted by Alien Bob View Post
I don't understand why you use an ancient version of gpgme when this is part of Slackware 14.2 and -current?
Your problems may stem from having an incomplete install or a system broken for other reasons.

That's puzzled me for a few days.

I've now seen in the current changelog that there is a n/gpgme-1.13.1-x86_64-1.txz.

Using slackpkg tried every hoop I could think of to reinstall the correct gpgme.

Thinking it would put me in a clean position I'd thought I'd use slackpkg clean-system, as I'm running on a test platform with very few extra packages seemed the sensible solution.

Everything went well, though still couldn't reinstall gpgme from slackpkg even though slackpkg search had reference to it. So installed it manually.

Then tried to recompile libreoffice using alienbob's slackbuild. It fails with

Quote:
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/build/tmp-libreoffice/libreoffice-6.3.0.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error running configure at ./autogen.sh line 302.
sed: can't read Makefile: No such file or directory
libreoffice.SlackBuild FAILED at line 1381
I suspect that slackpkg clean-system has cleaned a bit too much.

I think I'll call it quits and resume on Monday.
 
Old 09-21-2019, 05:53 AM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Well, I can reproduce the crash myself now.
So I ran LibreOffice Writer in a debugger and noticed that it crashes in a OpenJDK library. So I removed the openjdk package from my system and tried again.
This time I am getting the error ''LibreOffice requires a Java runtime environment (JRE) to perform this task. The selected JRE is defective. Please select another version or install a new JRE and select it under Tools - Options - LibreOffice - Advanced". And then it crashes.
 
Old 09-23-2019, 02:40 AM   #13
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Original Poster
Rep: Reputation: 153Reputation: 153
I've managed to overcome my problems with compiling libreoffice with Alien Bob's slackbuild. The problem was with whatever I'd done with the package gpgme. I'm not really sure how I overcame the problem - may have been simply re-powering my machine!

Any way If I compile libreoffice with Alien Bob's SlackBuild this is what I find -
  1. It compiles sucessfully
  2. After installing the packages I get the crash when I run calc using Kickoff Application Launcher -> Office -> Calc
  3. I get the crash when I run calc from the command line
    Code:
    /usr/lib64/libreoffice/program/soffice --calc
  4. I DO NOT get the crash when I run Alien Bob's pre-packaged calc from the command line
    Code:
     /tmp/build/tmp-libreoffice/libreoffice-6.3.0.4/instdir/program/soffice --calc
  5. I get the crash when I run Alien Bob's pre-packaged calc from the command line
    Code:
    /tmp/build/package-libreoffice/usr/lib64/libreoffice/program/soffice --calc

Last edited by aikempshall; 09-23-2019 at 04:28 AM.
 
  


Reply



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
Chromium 64.0.3282.119 slackbuild from alienbob: garbled tooltips grobber Slackware 2 02-04-2018 07:57 PM
Any info on installing Mate SlackBuild aside AlienBob's Plasma 5? sombragris Slackware 1 08-23-2016 06:56 PM
alienBOB's vlc.Slackbuild script fails on libavcodec.pc on Slackware64 14.0 multilib. indubitableness Slackware 19 08-20-2013 07:37 AM
[BUG?] alienbob openjdk.SlackBuild zerouno Slackware 7 08-02-2012 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:59 AM.

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