LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-01-2018, 03:00 PM   #1
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
PSA: slackbuild.org RPM LibreOffice Draw dependency with avahi


Note to Willy:

I hadn't launched Libre Office Draw in a month or so. Since that time I updated to 6.0.5. Today Draw failed to open. The error was something like:

Code:
loading component library file:///opt/libreoffice6.0/program/../program/libsdlo.so failed
Running ldd against the library revealed a dependency on libavahi-common.so.3 and libavahi-client.so.3.

There are two LibreOffice packages at slackbuilds.org. One performs a full build and has been updated to note the avahi dependency. The other package (Willy is the maintainer) converts the upstream RPM. The slackbuilds.org web page is not yet updated to reflect the new dependency.

To use Draw from the converted RPM package, be sure to build libdaemon and avahi packages from slackbuilds.org.

Avahi does not need to run from the rc.d scripts. Only the shared libraries need to be installed to run Draw.

Interesting to me is the 6.0.4 version did not have this dependency. I understand if the dependency was introduced in 6.1, but 6.0.5 is supposed to be a bug fix release.

Willy, thanks for the package. I hope this helps you and others.
 
Old 08-01-2018, 03:48 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107
My own libreoffice-6.0.5 package does not have a dependency on avahi. Period.
 
1 members found this post helpful.
Old 08-01-2018, 04:14 PM   #3
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
My own libreoffice-6.0.5 package does not have a dependency on avahi. Period.
I likewise build libreoffice without avahi and have found no examples where libreoffice has failed without it.
 
Old 08-01-2018, 05:04 PM   #4
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 522

Rep: Reputation: 279Reputation: 279Reputation: 279
Thanks for that, Alien. I'll replace my current install from SBO with yours. Why on earth would Draw rely on Avahi anyway? What's so special about Draw that it requires Bonjour support?
 
Old 08-01-2018, 07:13 PM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,687

Rep: Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803
Yeah, i was confused when i noticed i failed to open simpress and then later i found the same problem.
 
Old 08-02-2018, 08:46 PM   #6
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,994

Rep: Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565
My main box (this one) has Avahi installed on it. I recompiled cups to support avahi. Thus my repository has a cups compiled for avahi to override the Slackware cups (slackpkg+). On updating one of my laptops I decided to go with my version of cups. On launching Calc I got a related error.

Code:
/usr/lib64/libreoffice/program/soffice.bin: error while loading shared libraries: libavahi-common.so.3: cannot open shared object file: No such file or directory
Of course going back to the Slackware cups fixed the problem.

I use Alien Bob's LibreOffice packages.
 
Old 08-03-2018, 01:05 AM   #7
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
The problem is whoever built the rpm package. The slackbuild only converts that package.

I support other distros at work. Packaging is getting sloppy in that area pulling in unnecessary deps.
 
Old 08-18-2018, 05:08 PM   #8
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Rep: Reputation: Disabled
Quote:
Originally Posted by Poprocks View Post
... Why on earth would Draw rely on Avahi anyway? What's so special about Draw that it requires Bonjour support?
Avahi/Bonjour is used by LibreOffice Impress for "remote control". Draw and Impress apparently share enough code that this results in Draw depending on Avahi too, even though Draw doesn't need it, if LibreOffice was compiled to use Avahi.

This TDF wiki page says remote control of Impress won't work if "for example the version of LibreOffice was compiled without support for that (like is the case for the Linux builds provided by TDF)". This was true through 5.4.7 and maybe some of 6.0.x, but on 2018-05-19 there was a commit to the source to always enable Avahi on Linux. I didn't find any explanation why this was done, and I think it is a bug.

Since I want to use the TDF builds, and Slackware 14.2 doesn't offer Avahi, I compiled 2 little stub libraries libavahi-client and libavahi-common and installed them into the Libreoffice program directory. That's enough for Draw and Impress to work once again.
 
Old 12-28-2018, 02:30 AM   #9
mishahu
LQ Newbie
 
Registered: Dec 2018
Posts: 1

Rep: Reputation: Disabled
Thumbs up Solved

Great . . . . .it works


Quote:
Originally Posted by upnort View Post
Note to Willy:

I hadn't launched Libre Office Draw in a month or so. Since that time I updated to 6.0.5. Today Draw failed to open. The error was something like:

Code:
loading component library file:///opt/libreoffice6.0/program/../program/libsdlo.so failed
Running ldd against the library revealed a dependency on libavahi-common.so.3 and libavahi-client.so.3.

There are two LibreOffice packages at slackbuilds.org. One performs a full build and has been updated to note the avahi dependency. The other package (Willy is the maintainer) converts the upstream RPM. The slackbuilds.org web page is not yet updated to reflect the new dependency.

To use Draw from the converted RPM package, be sure to build libdaemon and avahi packages from slackbuilds.org.

Avahi does not need to run from the rc.d scripts. Only the shared libraries need to be installed to run Draw.

Interesting to me is the 6.0.4 version did not have this dependency. I understand if the dependency was introduced in 6.1, but 6.0.5 is supposed to be a bug fix release.

Willy, thanks for the package. I hope this helps you and others.
 
  


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
LibreOffice from source SlackBuild. orbea Slackware 29 02-17-2020 12:30 AM
[SOLVED] Help with LibreOffice Draw AlexBB Linux - Newbie 8 03-09-2014 08:36 PM
LibreOffice.SlackBuild in RAM? Konphine Slackware 12 02-18-2012 01:14 PM
LibreOffice: saving file as odg and adjusting the font in Draw. JosephS Linux - Software 0 01-23-2012 09:21 PM
LXer: LibreOffice Draw -- my new favorite application LXer Syndicated Linux News 0 09-09-2011 06:20 PM

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

All times are GMT -5. The time now is 04:47 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