Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Where to find libaudio.so.2 ? Porting from Ubuntu [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2646
Location: Illinois, USA

PostPosted: Tue Aug 28, 2018 1:37 pm    Post subject: Where to find libaudio.so.2 ? Porting from Ubuntu [SOLVED] Reply with quote

I'm trying to run a java program developed for Windows and Ubuntu, SageTv.

The latest version does everything but display in real time. For that it uses a modified form of mplayer. When run on my Gentoo systems, this mplayer crashes and re-spawns quickly. in a few minutes "ps a|grep mplayer" shows from the PID that mplayer has re-spawned thousands of times.
Code:
MSI ~ # ps a|grep mplayer
18513 pts/1    S+     0:00 grep --colour=auto mplayer
MSI ~ # ps a|grep mplayer
18519 pts/1    S+     0:00 grep --colour=auto mplayer
MSI ~ # ps a|grep mplayer
18521 pts/1    S+     0:00 grep --colour=auto mplayer
MSI ~ # ps a|grep mplayer
18523 pts/1    S+     0:00 grep --colour=auto mplayer

Code:
$ ./mplayer --help
./mplayer: error while loading shared libraries: libaudio.so.2: cannot open shared object file: No such file or directory

One of the developers suggested that I may be missing libalsa or libpulse. They are using a customized mplayer (which I am attempting to run).
I don't use pulseaudio and hate to do so. Portage has no package named libalsa but it sounds promising. "equery b" only works on packages already installed. Is there a way, maybe with eix, that will search for a package that provides libaudio.so ?


Last edited by Tony0945 on Tue Aug 28, 2018 3:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3485
Location: Dallas area

PostPosted: Tue Aug 28, 2018 1:50 pm    Post subject: Reply with quote

libaudio.so.2 not alsa, don't know about pulseaudio but a good chance

edit to add:
Quote:
that will search for a package that provides libaudio.so ?

I don't know of something that will tell you what might be installed, either someone that has pulseaudio installed can view their files "equery f pulseaudio"
or you can fetch (don't need to install) pulseaudio and look at the tarball and see if it indeed is there.

eta2: googled libaudio.so.2 and debian mentions it comes from a package called Network Audio System, which is probably media-libs/nas
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 19888
Location: here

PostPosted: Tue Aug 28, 2018 2:01 pm    Post subject: Reply with quote

libaudio.so is contained in media-libs/nas package
Code:
$ equery f nas | grep libaudio
/usr/lib64/libaudio.so
/usr/lib64/libaudio.so.2
/usr/lib64/libaudio.so.2.4

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1657

PostPosted: Tue Aug 28, 2018 2:04 pm    Post subject: Reply with quote

Code:
$ ./mplayer --help


Now, you know that mplayer is in portage, so you could have just installed that package and have all the needed dependencies for mplayer...
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2646
Location: Illinois, USA

PostPosted: Tue Aug 28, 2018 3:34 pm    Post subject: Reply with quote

ct85711 wrote:

Now, you know that mplayer is in portage, so you could have just installed that package and have all the needed dependencies for mplayer...

The package uses a modified mplayer. I tried replacing it with my Gentoo mplayer. Didn't work.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2646
Location: Illinois, USA

PostPosted: Tue Aug 28, 2018 3:39 pm    Post subject: Reply with quote

fedeliallalinea wrote:
libaudio.so is contained in media-libs/nas package

Thank you. The application will also play music and videos from the network so this makes sense. It might not be needed since I don't do that, but it's best to clear all error messages.
I suspect that mplayer is crashing because of the missing DLL and the application respawns it.

And thank you too, Anon-A-Moose.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6578
Location: Austria

PostPosted: Wed Aug 29, 2018 9:31 am    Post subject: Reply with quote

Tony0945 wrote:
ct85711 wrote:

Now, you know that mplayer is in portage, so you could have just installed that package and have all the needed dependencies for mplayer...

The package uses a modified mplayer. I tried replacing it with my Gentoo mplayer. Didn't work.

What ct85711 meant was: by emerging mplayer you would have gained its dependencies, making it possible to find libaudio.so on your system. Although this is only the case with USE=nas enabled.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2646
Location: Illinois, USA

PostPosted: Wed Aug 29, 2018 12:41 pm    Post subject: Reply with quote

Mplayer no longer crashing with nas emerged. I downloaded the source and compared it to the Gentoo source. So far, all I see are differences in comments. Ubuntu must distribute with all options enabled because their (Ubuntu-based) executable is four times the size of my Gentoo executable.
Following a post on their forum on how to debug with gdb, I find a segfault inside java. All I know about java is that it's a pain in the butt to do those Oracle pre-fetches. Considering taking a course at the local community college. Tuition is $169. Probably worth it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum