LinuxQuestions.org
Review your favorite Linux distribution.
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-03-2018, 11:43 AM   #1
bvandonselaar
LQ Newbie
 
Registered: Oct 2018
Location: The Netherlands
Distribution: Slackware
Posts: 5

Rep: Reputation: Disabled
Question The build of OStree fails


Hi all,

I am pretty new to Slackware(2 months). I am using Slackware-current right now with plans for Slackware 15. Recently my Spotify broke, it does not launch anymore with the error:

Code:
/opt/spotify/usr/bin/spotify: /usr/lib64/libcurl.so.4: no version information available (required by /opt/spotify/usr/bin/spotify) /usr/bin/spotify: line 2: 2821 Segmentation fault /opt/spotify/usr/bin/spotify "$@"
I have read that this happens more often, because of Spotify being propieretary and build for Debian based distros. One solution i found was to just use Spotify with Flatpak. Everything I need to compile Flatpak with is ready(like the "This requires:" section), instead of one. OStree just won't compile. I got OStree from ponce's current SlackBuild repo.

The error was this:

Code:
  CC       src/libostree/libostree_1_la-ostree-async-progress.lo
  CC       src/libostree/libostree_1_la-ostree-cmdprivate.lo
  CC       src/libostree/libostree_1_la-ostree-core.lo
In file included from ./libglnx/glnx-missing.h:95,
                 from ./libglnx/libglnx.h:28,
                 from src/libostree/ostree-core.c:29:
./libglnx/glnx-missing-syscall.h:66:19: error: static declaration of ‘renameat2’ follows non-static declaration
 static inline int renameat2(int oldfd, const char *oldname, int newfd, const char *newname, unsigned flags) {
                   ^~~~~~~~~
In file included from src/libostree/ostree-core.c:25:
/usr/include/stdio.h:164:12: note: previous declaration of ‘renameat2’ was here
 extern int renameat2 (int __oldfd, const char *__old, int __newfd,
            ^~~~~~~~~
make[2]: *** [Makefile:4566: src/libostree/libostree_1_la-ostree-core.lo] Error 1
make[2]: Leaving directory '/tmp/SBo/libostree-2017.14'
 
Old 10-04-2018, 04:26 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,356

Rep: Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105
Quote:
Originally Posted by bvandonselaar View Post
Hi all,

I am pretty new to Slackware(2 months). I am using Slackware-current right now with plans for Slackware 15. Recently my Spotify broke, it does not launch anymore with the error:

Code:
/opt/spotify/usr/bin/spotify: /usr/lib64/libcurl.so.4: no version information available (required by /opt/spotify/usr/bin/spotify) /usr/bin/spotify: line 2: 2821 Segmentation fault /opt/spotify/usr/bin/spotify "$@"
Part of the issue is that SBo is only set for 14.2, and it is likely 14.2 doesn't have this issue (it seems it was problem was introduced because that spotify version is incompatible with the curl version used in -current). There are two newer versions available from spotify (1.0.80.480 and 1.0.89.313). It might be worth trying one of them to see if it fixes your spotify issue.

http://repository.spotify.com/pool/n...potify-client/

Quote:
Originally Posted by bvandonselaar View Post
I have read that this happens more often, because of Spotify being propieretary and build for Debian based distros. One solution i found was to just use Spotify with Flatpak. Everything I need to compile Flatpak with is ready(like the "This requires:" section), instead of one. OStree just won't compile. I got OStree from ponce's current SlackBuild repo.

The error was this:

Code:
  CC       src/libostree/libostree_1_la-ostree-async-progress.lo
  CC       src/libostree/libostree_1_la-ostree-cmdprivate.lo
  CC       src/libostree/libostree_1_la-ostree-core.lo
In file included from ./libglnx/glnx-missing.h:95,
                 from ./libglnx/libglnx.h:28,
                 from src/libostree/ostree-core.c:29:
./libglnx/glnx-missing-syscall.h:66:19: error: static declaration of ‘renameat2’ follows non-static declaration
 static inline int renameat2(int oldfd, const char *oldname, int newfd, const char *newname, unsigned flags) {
                   ^~~~~~~~~
In file included from src/libostree/ostree-core.c:25:
/usr/include/stdio.h:164:12: note: previous declaration of ‘renameat2’ was here
 extern int renameat2 (int __oldfd, const char *__old, int __newfd,
            ^~~~~~~~~
make[2]: *** [Makefile:4566: src/libostree/libostree_1_la-ostree-core.lo] Error 1
make[2]: Leaving directory '/tmp/SBo/libostree-2017.14'
To report problems with packages in ponce's repo on -current, it is best to use his sticky thread after reading the first post.
 
Old 10-05-2018, 04:03 AM   #3
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,422

Rep: Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348
Quote:
Originally Posted by bvandonselaar View Post
Everything I need to compile Flatpak with is ready(like the "This requires:" section), instead of one. OStree just won't compile. I got OStree from ponce's current SlackBuild repo.

The error was this:

Code:
  CC       src/libostree/libostree_1_la-ostree-async-progress.lo
  CC       src/libostree/libostree_1_la-ostree-cmdprivate.lo
  CC       src/libostree/libostree_1_la-ostree-core.lo
In file included from ./libglnx/glnx-missing.h:95,
                 from ./libglnx/libglnx.h:28,
                 from src/libostree/ostree-core.c:29:
./libglnx/glnx-missing-syscall.h:66:19: error: static declaration of ‘renameat2’ follows non-static declaration
 static inline int renameat2(int oldfd, const char *oldname, int newfd, const char *newname, unsigned flags) {
                   ^~~~~~~~~
In file included from src/libostree/ostree-core.c:25:
/usr/include/stdio.h:164:12: note: previous declaration of ‘renameat2’ was here
 extern int renameat2 (int __oldfd, const char *__old, int __newfd,
            ^~~~~~~~~
make[2]: *** [Makefile:4566: src/libostree/libostree_1_la-ostree-core.lo] Error 1
make[2]: Leaving directory '/tmp/SBo/libostree-2017.14'
to have flatpak building with current, version-bumps for bubblewrap, ostree and flatpak are necessary: can you please test if it actually works this way?
 
Old 10-07-2018, 04:42 AM   #4
MDKDIO
Member
 
Registered: Mar 2004
Location: Sweden
Distribution: Slackware 14.2
Posts: 82

Rep: Reputation: 13
Is Ponce's spotify package working on current?
Thinkin' it got updated just yesterday to 1.0.89
https://github.com/Ponce/slackbuilds...imedia/spotify
 
Old 10-07-2018, 04:48 AM   #5
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,422

Rep: Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348
Quote:
Originally Posted by MDKDIO View Post
Is Ponce's spotify package working on current?
Thinkin' it got updated just yesterday to 1.0.89
https://github.com/Ponce/slackbuilds...imedia/spotify
from the tests that me, willysr and bvandonselaar have done it seems to be working.
consider that I don't think that I will personally maintain it further as it's built on ubuntu and released as a package only, resulting in a binary that links to many ubuntu libraries that have to be identified, extracted from ubuntu packages and manually copied somewhere (madness): other distributions had simply removed spotify from their repository.

Last edited by ponce; 10-07-2018 at 04:50 AM.
 
Old 10-07-2018, 04:57 AM   #6
MDKDIO
Member
 
Registered: Mar 2004
Location: Sweden
Distribution: Slackware 14.2
Posts: 82

Rep: Reputation: 13
Thanks Ponce!

Yeah, noticed that as well... That some other distributions removed spotify.

Sure is a shame, as I like spotify and use it a lot.
 
Old 10-07-2018, 09:10 AM   #7
bvandonselaar
LQ Newbie
 
Registered: Oct 2018
Location: The Netherlands
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
from the tests that me, willysr and bvandonselaar have done it seems to be working.
consider that I don't think that I will personally maintain it further as it's built on ubuntu and released as a package only, resulting in a binary that links to many ubuntu libraries that have to be identified, extracted from ubuntu packages and manually copied somewhere (madness): other distributions had simply removed spotify from their repository.
Indeed madness. It is a shame Spotify does support different distros so bad. I am sorry for my late reply everyone. I had talked with Ponce on github (wrong place for this discussion) about Spotify. So i totally forgot this thread for a moment.

Quote:
to have flatpak building with current, version-bumps for bubblewrap, ostree and flatpak are necessary: can you please test if it actually works this way?
Do you mean with 'version-bumps' using the more recent versions of ostree/flatpak?
Because I have taken the latest release of OStree and changed the slackbuild to the newer version and the compilation succeeded.
Code:
ostree --version

libostree:
 Version: 2018.8
 Features:
  - libsoup
  - gpgme
  - libarchive
  - libmount
  - release
  - p2p
And no segfaulting of some kind.

I installed Flatpak the same way. I grabbed Ponce's SlackBuild for Flatpak and changed it to the latest release. I have not tested with bubblewrap, because i deleted the line '--with-system-bubblewrap' from the SlackBuild and quickly tested it with the build-in bubblewrap.
I installed Flatpak and i installed spotify with Flatpak, but when i want to play a song i get:
Code:
ALSA lib ../../pulse/pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
Maybe it had something to do with what is said about pulseaudio on the SlackBuild page about Flatpak.
I didn't test any further because, around that time, Ponce already got me replied at Github with a fix for the Spotify package and this thread was not posted yet at LQ by the admin.
I am especially new to LQ so i thought for a minute that this thread wasn't going to be posted. So excuse me for the late reply .
 
  


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
dkms fails to build even the build process is successful? Crounus Linux - Kernel 1 04-26-2018 04:52 AM
SBCL build from slack builds fails to build - failed contribs sb-bsd-sockets sunlight Slackware 3 11-07-2015 04:31 PM
self build rpm fails with missing dependencies on build host zhjim Linux - Software 1 09-24-2009 08:47 AM
Build libmcrypt Fails tronayne Amigo 4 04-07-2008 03:17 PM
glibc fails to build pauledwards03 Linux - Software 5 10-31-2007 11:16 PM

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

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