LinuxQuestions.org
Help answer threads with 0 replies.
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 10-21-2019, 01:16 PM   #1
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
MEGAsync launch/compilation now fails in -current


I just tried to open MEGAsync on -current and it won't launch. I tried to rebuild against any relevant new libraries and it fails with the message:

Code:
In file included from /usr/include/signal.h:374,
                 from google_breakpad/client/linux/handler/exception_handler.h:37,
                 from google_breakpad/client/linux/handler/exception_handler.cc:66:
/usr/include/bits/signal_ext.h:29:12: note: previous declaration of ‘int tgkill(__pid_t, __pid_t, int)’
   29 | extern int tgkill (__pid_t __tgid, __pid_t __tid, int __signal);
      |            ^~~~~~
make[1]: *** [Makefile:3094: exception_handler.o] Error 1
make[1]: Leaving directory '/tmp/SBo/MEGAsync-3.7.1.0_Linux/src/MEGASync'
make: *** [Makefile:39: sub-MEGASync-make_default] Error 2

This is the SBo version which is the same version as ponce has in his repo. I reinstalled the 3.7.1 binary I had but it still doesn't launch.

Launching via the terminal gives:

Code:
lysander@lysultra-vi:~$ megasync
megasync: error while loading shared libraries: libavcodec.so.57: cannot open shared object file: No such file or directory

Is this an issue with ffmpeg?

Code:
lysander@lysultra-vi:~$ ls /var/log/packages | grep ffmpeg
ffmpeg-4.2.1-x86_64-1
ffmpeg-compat32-4.2.1-x86_64-1compat32
ffmpegthumbnailer-2.2.0-x86_64-1_SBo
vivaldi-codecs-ffmpeg-extra-77.0.3865.90-x86_64-1_SBo
 
Old 10-21-2019, 01:24 PM   #2
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

You can try this workaround. Otherwise, there is this patch.

--
SeB
 
Old 10-22-2019, 06:22 AM   #3
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by phenixia2003 View Post
Hello,

You can try this workaround. Otherwise, there is this patch.

--
SeB
Thank you, I'm going to be honest here, I have no idea how to apply that patch. How does one do it?
 
Old 10-22-2019, 06:34 AM   #4
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Quote:
Originally Posted by Lysander666 View Post
Thank you, I'm going to be honest here, I have no idea how to apply that patch. How does one do it?
See 'man patch'.

Code:
patch -p1 < fix-double-declaration-of-tgkill.patch
https://aur.archlinux.org/cgit/aur.g...1d8098b987#n33
 
Old 10-22-2019, 08:10 AM   #5
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Thank you both. It seems that this issue is caused by MEGAsync 3.7.1 looking for libavcodec.so.57 when I am running libavcodec.so.58. I am guessing that libavcodec.so.58 is the version installed via the latest ffmpeg.

Downgrading the MEGAsync client to 3.6.6 gives a different error, it looks for cryptopp 5.6 but can't find it, because SBo has a later version, 7.0, which I installed. Downgrading cryptopp to 5.6 allows the MEGAsync client 3.6.6 to run.

Not the best solution, but it does work.
 
Old 10-22-2019, 08:18 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
what the application looks for depends on which libraries you have built it and its dependencies with: here, on the latest slackware64-current, with the patch from archlinux I was able to build and run either MEGAsync 3.7.1.0 and 4.2.5.0 (and its dependencies) and the final megasync binary links to the libraries installed in the system
Code:
# ldd /usr/bin/megasync | grep libav
        libavcodec.so.58 => /usr/lib64/libavcodec.so.58 (0x00007fa39be60000)
        libavformat.so.58 => /usr/lib64/libavformat.so.58 (0x00007fa39bc12000)
        libavutil.so.56 => /usr/lib64/libavutil.so.56 (0x00007fa39baf6000)
http://cgit.ponce.cc/slackbuilds/commit/?h=MEGAsync
 
1 members found this post helpful.
Old 10-22-2019, 08:30 AM   #7
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 765

Rep: Reputation: 863Reputation: 863Reputation: 863Reputation: 863Reputation: 863Reputation: 863Reputation: 863
I was going to say that alienBOB also has a ffmpeg3-compat package with the older libavcodec.so.57 library which may make things work, but if ponce has the build patched for the newer libraries then you might as well try that.

Last edited by 0XBF; 10-22-2019 at 08:35 AM. Reason: spell check
 
Old 10-22-2019, 08:43 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by 0XBF View Post
I was going to say that alienBOB also has a ffmpeg3-compat package with the older libavcodec.so.57 library which may make things work, but if ponce has the build patched for the newer libraries then you might as well try that.
basically I just applied the patch pointed to by phenixia2003, nothing more...
 
Old 10-22-2019, 09:07 AM   #9
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 765

Rep: Reputation: 863Reputation: 863Reputation: 863Reputation: 863Reputation: 863Reputation: 863Reputation: 863
Sorry for the misinformation, I see that its the same patch. I was trying to say that if you can build it with the tgkill patch and it links the newer libraries then go for that route. It would be simpler than using an older version with compat libraries.
 
Old 10-22-2019, 09:50 AM   #10
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Thanks ponce, I managed to build your 4.2 package and install it, but the settings menu is illegible with a dark theme [not your fault] so I have stuck with the 3.6 package.

My sbopkg is still pointing to the 14.2 repo. I updated it to point to your repo but I must have done something wrong because your MEGAsync then wouldn't build with sbopkg, so I downloaded the relevant packages manually and then it built. I used these instructions to change the repo.

Going forward I may need to use your repo instead but I don't know how to update sbopkg so it updates any packages already installed via the 14.2 repo to yours. Unless this happens automatically.
 
Old 10-22-2019, 10:00 AM   #11
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by Lysander666 View Post
My sbopkg is still pointing to the 14.2 repo. I updated it to point to your repo but I must have done something wrong because your MEGAsync then wouldn't build with sbopkg, so I downloaded the relevant packages manually and then it built. I used these instructions to change the repo.
the branch I linked is not merged yet, it will be in the weekend: don't forget to delete the repositoy before resyncing like explained in the isntructions you linked.
Quote:
Going forward I may need to use your repo instead but I don't know how to update sbopkg so it updates any packages already installed via the 14.2 repo to yours. Unless this happens automatically.
not at all.
I also suggest you to build all the packages you need for your system from scratch in a fresh and full installation of current (a virtual machine, a chroot, a container, whatever you prefer) or you risk to have stuff linked to old libraries or not being able to build packages at all in some cases (perl comes to mind).
 
1 members found this post helpful.
Old 10-22-2019, 10:03 AM   #12
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by ponce View Post
the branch I linked is not merged yet, it will be in the weekend: don't forget to delete the repositoy before resyncing like explained in the isntructions you linked.
Got you.

Quote:
Originally Posted by ponce View Post
I also suggest you to build all the packages you need for your system from scratch in a fresh and full installation of current (a virtual machine, a chroot, a container, whatever you prefer) or you risk to have stuff linked to old libraries or not being able to build packages at all in some cases (perl comes to mind).
I was wondering if this was going to be the case. Something to do on a long winter's night, I suppose.

Last edited by Lysander666; 10-22-2019 at 10:05 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
MegaSync Cloud Client crazyporscheman Sabayon 2 12-09-2017 04:03 AM
[SOLVED] Zorin dock launch (ie quick launch) instalation and use provobis Linux - Newbie 4 01-16-2015 07:25 PM
[SOLVED] Compilation of semantik fails on Slack64-current and KDE 4.7.1 sombragris Slackware 3 09-13-2011 08:20 AM
Unable to launch application from workstation but able to launch from vnc chaitanya1982 Linux - Desktop 2 04-30-2010 03:52 AM
slackware64-current : pulseaudio compilation fails, wrong version of libtool pokipoki08 Slackware 2 07-31-2009 11:59 PM

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

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