LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Issues running 32-bit apps on 64-bit (Opera, Skype) (http://www.linuxquestions.org/questions/linux-software-2/issues-running-32-bit-apps-on-64-bit-opera-skype-479937/)

lydgate 09-03-2006 01:50 AM

Issues running 32-bit apps on 64-bit (Opera, Skype)
 
I'm trying to get Skype working. I set up a directory called /opt/lib32 where I put all the necessary libraries (from ldd skype) copied from a 32-bit Arch Linux. I'm running 64-bit Arch Linux. I load skype like this: LD_LIBRARY_PATH=/opt/lib32 linux32 skype. Loads fine, everything looks good, except alsa seems not to work:

ALSA lib pcm_direct.c:1467:(snd_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)

ALSA works in all other cases (I'm listening to mpd right now on it).

Opera likewise loads, but can't seem to load any pages. Everything else works fine, notes etc. Just seems not to load any pages, and doesn't give any missing library messages as it was for a while before I put everything needed into /opt/lib32.

Any help greatly appreciated, or let me know if I can give any more information.

Lenard 09-04-2006 01:41 PM

Install the needed alsa 32-bit libs and it would work better if you used the 32-bit version of Opera also.

lydgate 09-04-2006 03:20 PM

It turns out that Skype just implements ALSA really badly, hopefully it will be improved since it's only a beta, but I solved it by looking at this:
http://juljas.net/linux/skype/alsa-configuration.html

And I had to install the alsa 32-bit libraries, like I said. If it tries to access any 64-bit libraries it won't work at all, not just be less stable. In this case the issue is Skype's code apparently.

But Opera is still not loading any pages. And Opera is only 32-bit, which is why I'm having trouble running it in the first place. I have all the libraries afaik, and it seems to load fine. When you're missing a library it yells at you that it's the wrong ELF type (64-bit instead of 32-bit), but that's not happening to me.

philverb 11-24-2006 08:08 PM

It's actually an OS Group issue.
 
`groupadd audio` will make it go away.

Code:

[root@mymachine ~]# mplayer !$
mplayer When\ Smokey\ Sings.mp3
MPlayer 1.0pre8-rpm.livna.org-4.1.1 (C) 2000-2006 MPlayer Team
CPU:              Intel(R) Pentium(R) D CPU 2.80GHz (Family: 15, Model: 4, Stepping: 7)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.


Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.

Playing When Smokey Sings.mp3.
Audio file file format detected.
Clip info:
 Title: When Smokey Sings
 Artist: ABC
 Album: ABC - Look Of Love: The Very B
 Year: 2001
 Comment:
 Track: 4
 Genre: Other
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
alsa-init: using device default
alsa-lib: pcm_direct.c:1587:(snd_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
alsa-init: playback open error: Invalid argument
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)
[root@mymachine ~]# alsa
alsacard      alsaconf      alsactl      alsalisp      alsamixer    alsamixergui  alsaunmute
[root@mymachine ~]# alsaplayer
-bash: alsaplayer: command not found
[root@mymachine ~]# groupadd audio
[root@mymachine ~]# mplayer When\ Smokey\ Sings.mp3
MPlayer 1.0pre8-rpm.livna.org-4.1.1 (C) 2000-2006 MPlayer Team
CPU:              Intel(R) Pentium(R) D CPU 2.80GHz (Family: 15, Model: 4, Stepping: 7)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.


Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.

Playing When Smokey Sings.mp3.
Audio file file format detected.
Clip info:
 Title: When Smokey Sings
 Artist: ABC
 Album: ABC - Look Of Love: The Very B
 Year: 2001
 Comment:
 Track: 4
 Genre: Other
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
alsa-init: using device default
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Position: 10 %
alsa-uninit: pcm closed0 (06:30.0)  0.3%


lydgate 12-17-2006 05:45 AM

Quote:

Originally Posted by philverb
`groupadd audio` will make it go away.

Code:

# groupadd audio
groupadd: group audio exists



All times are GMT -5. The time now is 08:38 PM.