LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-02-2016, 06:55 AM   #1
karthik_holla
LQ Newbie
 
Registered: Jul 2016
Location: India
Distribution: slackware-14.2
Posts: 20

Rep: Reputation: Disabled
LibreOffice-5.1.4.2 compile error


Downloaded libreoffice-5.1.4.2 slackbuilds script from slackbuilds.org and I am getting this error.
Code:
cd /tmp/SBo/libreoffice-5.1.4.2/external/tarballs/tmp && bash -c 'wget --progress=dot:mega -4 -Q 0 -P "." -l 0 -nd -nH -N --no-use-server-timestamps http://dev-www.libreoffice.org/src/libabw-0.1.1.tar.bz2 2>&1 | tee -a /tmp/SBo/libreoffice-5.1.4.2/external/tarballs/fetch.log && [ $PIPESTATUS -eq 0 ]' && SUM=`md5sum libabw-0.1.1.tar.bz2 | sed "s/ .*//"` && if test "$SUM" != "7a3815b506d064313ba309617b6f5a0b"; then echo ERROR: expected checksum for libabw-0.1.1.tar.bz2 is 7a3815b506d064313ba309617b6f5a0b 2>&1 | tee -a /tmp/SBo/libreoffice-5.1.4.2/external/tarballs/fetch.log; false; fi && mv libabw-0.1.1.tar.bz2 ../ 
--2016-08-02 17:22:26--  http://dev-www.libreoffice.org/src/libabw-0.1.1.tar.bz2
Resolving dev-www.libreoffice.org (dev-www.libreoffice.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘dev-www.libreoffice.org’
/tmp/SBo/libreoffice-5.1.4.2/Makefile.fetch:103: recipe for target '/tmp/SBo/libreoffice-5.1.4.2/workdir/download' failed
make: *** [/tmp/SBo/libreoffice-5.1.4.2/workdir/download] Error 1
Switching ON the internet it downloads a chunk of dependencies like libabw,libcdr etc. Are these required???

Last edited by karthik_holla; 08-02-2016 at 06:58 AM.
 
Old 08-02-2016, 07:23 AM   #2
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 539

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
If you have both libreoffice-5.1.4.2.tar.xz and libreoffice-5.1.4.2-srcs.tar.xz source tarballs which are specified in the LibreOffice.info file, then nothing else will be downloaded from the internet (provided the LibreOffice.SlackBuild hasn't been altered).

chris
 
Old 08-02-2016, 08:12 AM   #3
karthik_holla
LQ Newbie
 
Registered: Jul 2016
Location: India
Distribution: slackware-14.2
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thanks. I will try.
 
Old 08-02-2016, 04:45 PM   #4
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 539

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
You also need to ensure that all the packages specified in the REQUIRES field of the LibreOffice.info file have been built and installed; also any packages specified in their own .info files. Calculating all those dependencies, you should end up with a build/install order list like:
Code:
development/jdk
development/apache-ant
perl/perl-Archive-Zip
libraries/libdaemon
network/avahi
python/python3
office/LibreOffice
chris
 
Old 08-03-2016, 10:28 AM   #5
karthik_holla
LQ Newbie
 
Registered: Jul 2016
Location: India
Distribution: slackware-14.2
Posts: 20

Original Poster
Rep: Reputation: Disabled
Compiling libreoffice is stuck at this point
Code:
CXX COLLADAParserAutoGen15PrivateFunctionMapFactory.cpp
from past 4-5 hrs.

Last edited by karthik_holla; 08-03-2016 at 10:29 AM.
 
Old 08-03-2016, 08:06 PM   #6
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 539

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
In a pristine complete SL 14.2 x86_64 VM, I just built & installed all the prerequisite packages mentioned previously, then ran the LibreOffice.SlackBuild script (without any changes). It built successfully. I kept a log of the build output and it contained no reference to the COLLADAParserAutoGen15PrivateFunctionMapFactory.cpp file that you are having trouble with. I also ran:
Code:
find /tmp/SBo/libreoffice-5.1.4.2 -name COLLADAParserAutoGen\*
which also found no reference to that file anywhere in the build directory tree.

There is clearly something different about your build environment.
 
Old 01-27-2017, 01:28 AM   #7
karthik_holla
LQ Newbie
 
Registered: Jul 2016
Location: India
Distribution: slackware-14.2
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thanks
 
Old 01-27-2017, 02:38 AM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,447

Rep: Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711
Perhaps a (lack of) memory issue?
 
Old 01-27-2017, 02:59 AM   #9
karthik_holla
LQ Newbie
 
Registered: Jul 2016
Location: India
Distribution: slackware-14.2
Posts: 20

Original Poster
Rep: Reputation: Disabled
I guess the same. Because my root partition was very small.
 
Old 01-27-2017, 08:58 AM   #10
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,545

Rep: Reputation: Disabled
Quote:
Originally Posted by chris.willing View Post
You also need to ensure that all the packages specified in the REQUIRES field of the LibreOffice.info file have been built and installed; also any packages specified in their own .info files. Calculating all those dependencies, you should end up with a build/install order list like:
Code:
development/jdk
development/apache-ant
perl/perl-Archive-Zip
libraries/libdaemon
network/avahi
python/python3
office/LibreOffice
chris
The only one that should be needed out of those is perl-Archive-Zip. The rest are optional dependencies. Except for libdaemon which libreoffice doesn't even use.

Edit: Also how are you avoiding libreoffice from downloading all the --with-system-lib it needs? You don't seem to be providing the tarballs or do you document any of the dependencies that are on SBo.

Last edited by orbea; 01-27-2017 at 09:03 AM.
 
Old 01-27-2017, 09:10 AM   #11
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,545

Rep: Reputation: Disabled
Quote:
Originally Posted by chris.willing View Post
In a pristine complete SL 14.2 x86_64 VM, I just built & installed all the prerequisite packages mentioned previously, then ran the LibreOffice.SlackBuild script (without any changes). It built successfully. I kept a log of the build output and it contained no reference to the COLLADAParserAutoGen15PrivateFunctionMapFactory.cpp file that you are having trouble with. I also ran:
Code:
find /tmp/SBo/libreoffice-5.1.4.2 -name COLLADAParserAutoGen\*
which also found no reference to that file anywhere in the build directory tree.

There is clearly something different about your build environment.
That is from opencollada, presumably the one libreoffice downloads during the build process since you do not document it can use a system version which works fine (Even though you maintain opencollada...)

Last edited by orbea; 01-27-2017 at 09:12 AM.
 
Old 01-27-2017, 09:45 AM   #12
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,545

Rep: Reputation: Disabled
For that matter how did you get past the root check in 5.2.4.2? Libreoffice doesn't allow compiling as root in that version.

I worked around it by using these two upstream commits where they removed that.

Makefile: move check-if-root earlier
https://github.com/LibreOffice/core/...06d1d4700a8d60

oss-fuzz runs under docker
https://github.com/LibreOffice/core/...c48ccf74cb26b4
 
Old 01-27-2017, 09:56 AM   #13
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,447

Rep: Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711
I have no issues compiling as root for my own libreoffice 5.2.4.2 package...
 
Old 01-27-2017, 10:15 AM   #14
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,545

Rep: Reputation: Disabled
Interesting, certainly was a problem for me since they have this in the Makefile.

Code:
-check-if-root:
	@if test `id -u` = 0; then \
		echo; \
		echo 'No. You make ME a sandwich.'; \
		echo; \
		exit 1; \
	fi
 
Old 01-27-2017, 04:59 PM   #15
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 539

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
Quote:
Originally Posted by orbea View Post
The only one that should be needed out of those is perl-Archive-Zip. The rest are optional dependencies. Except for libdaemon which libreoffice doesn't even use.
Slackbuilds are all editable by individual users to suit particular ideas of usefulness.

Quote:
Edit: Also how are you avoiding libreoffice from downloading all the --with-system-lib it needs? You don't seem to be providing the tarballs or do you document any of the dependencies that are on SBo.
Is "you" referring to OP or chris.willing? If chris.willing, then let me say that I don't want to bore all those who have actually read the build scripts with the full details of how that all works. Instead, can I suggest that you read the .info and .SlackBuild files and, in particular, look at how HAVE_SRCS_TARBALL is used to create or download the libreoffice-$VERSION-srcs.tar.xz tarball (which contains required sources not available on the build system). I do the creation of the additional -srcs.tar.gz file whenever a new version is released; it is listed in the DOWNLOAD field of the .info file, leaving the user nothing to do except install the listed dependencies, download the listed source tarballs and run the script.

The package dependencies to complete this particular build are listed in the .info file. The SlackBuild's README includes the statement
Code:
In seeking a fully functional LibreOffice, most optional features are included by default.
It is not my intention to provide a commentary on all options that are possible - just to provide as many of them as are easily doable. Of course, anyone else can provide such a commentary and/or alternative SlackBuilds. Since you (orbea) already provide what you evidently believe to be a superior alternative SlackBuild, feel free to promote it here in your next reply.

chris
 
  


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
LibreOffice 5.x application error davleema Slackware 4 03-01-2016 07:46 AM
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: Compile Your Own PDF Books with Wikipedia and Edit them with LibreOffice and Pdfmod LXer Syndicated Linux News 0 11-03-2012 05:30 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 - Distributions > Slackware

All times are GMT -5. The time now is 11:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration