Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Oct 2015 13:06:53 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        freebsd-ports@FreeBSD.org, xmj@chaot.net, freebsd-emulation@FreeBSD.org
Cc:        mexas@bris.ac.uk
Subject:   Re: skype4 on -current: error while loading shared libraries: libpulse-mainloop-glib.so.0
Message-ID:  <5634A0CD.1020103@FreeBSD.org>
In-Reply-To: <201508132340.t7DNeRA7020621@mech-as222.men.bris.ac.uk>
References:  <201508132340.t7DNeRA7020621@mech-as222.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On 14/08/2015 02:40, Anton Shterenlikht wrote:
> Anybody else is seeing this?
> 
> $ skype
> /usr/local/share/skype/skype: error while loading shared libraries: libpulse-mainloop-glib.so.0: cannot open shared object file: No such file or directory
> 
> $ pkg info -xl pulse | grep mainloop-glib.so
>         /usr/local/lib/libpulse-mainloop-glib.so
>         /usr/local/lib/libpulse-mainloop-glib.so.0
>         /usr/local/lib/libpulse-mainloop-glib.so.0.0.5
> 

It's several months since Anton asked this question and now I have to ask
exactly the same one.
I've built net-im/skype4 without VIDEO option using poudriere and installed it
like this:

$ pkg install net-im/skype4
[snip]
New packages to be INSTALLED:
        skype4: 4.3.0.37,1 [poudriere]
        linux-c6-qt47-x11: 4.7.2_1 [FreeBSD]
        linux-c6-alsa-lib: 1.0.22_2 [poudriere]
        linux-c6-qt47: 4.7.2_1 [FreeBSD]
        linux-c6-hicolor-icon-theme: 0.5_3 [poudriere]
        linux-c6-dbus-libs: 1.2.24_4 [poudriere]
        linux-c6-dri: 10.1_1 [poudriere]
        linux-c6-qt47-webkit: 4.7.2_1 [FreeBSD]
        linux-skype_oss_wrapper: 0.1.1 [FreeBSD]

[snip]

Running skype results in:
$ skype
/usr/local/share/skype/skype: error while loading shared libraries:
libpulse-mainloop-glib.so.0: cannot open shared object file: No such file or
directory

ldd produces this:
$ env LD_LIBRARY_PATH=/lib/skype_oss_wrapper:${LD_LIBRARY_PATH}
/compat/linux/bin/bash /compat/linux/usr/bin/ldd /usr/local/share/skype/skype |
fgrep pulse
/usr/local/share/skype/skype: /lib/skype_oss_wrapper/libpulse.so.0: no version
information available (required by /usr/lib/qt47/libphonon.so.4)
        libpulse-mainloop-glib.so.0 => not found
        libpulse.so.0 => /lib/skype_oss_wrapper/libpulse.so.0 (0x249c9000)
        libpulse-mainloop-glib.so.0 => not found

With a little bit of help from Google I found this thread and in particular the
following post: http://article.gmane.org/gmane.os.freebsd.devel.ports/127782
In the end I had to do a slightly different thing:
$ pkg install linux-c6-pulseaudio-libs
$ cd /compat/linux
$ rpm2archive < ~/tmp/pulseaudio-libs-glib2-0.9.21-21.el6.i686.rpm| tar xvf -
x ./usr/lib/libpulse-mainloop-glib.so.0
x ./usr/lib/libpulse-mainloop-glib.so.0.0.4

Where pulseaudio-libs-glib2-0.9.21-21.el6.i686.rpm was downloaded from the
Internet in advance.

After this skype seems to finally work, but it would be nice if I hadn't to do
the extra steps.  Maybe I did something wrong before installing skype?

BTW, it seems that libpulse-mainloop-glib.so.0 dependency comes from
/compat/linux/usr/lib/qt47/libphonon.so.4.

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5634A0CD.1020103>