Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Sep 2014 19:33:35 +0100
From:      Vassilis Laganakos <vassilis@einval.com>
To:        Alexandr Krivulya <shuriku@shurik.kiev.ua>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: net-im/skype-[devel] won't connect
Message-ID:  <20140905183335.GC9721@halon.org.uk>
In-Reply-To: <54081149.8010604@shurik.kiev.ua>
References:  <20140813153823.E448F601EF@smtp.hushmail.com> <2193543.8WxQXG9cXZ@notebook.com> <CAEJt7hZt%2BfFPbV1DpCWKRWzQENT6cShOEciua21tMBnKux-P7g@mail.gmail.com> <2207400.sXHmFWe1Da@notebook.com> <54081149.8010604@shurik.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--ABTtc+pdwF7KHXCz
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Alexandr,

On Thu, Sep 04, 2014 at 10:14:17AM +0300, Alexandr Krivulya wrote:
> I have removed linux-f10 from my CURRENT and install linux-f20 and
> skype-4.3.0.37_1,1 from https://github.com/vassilisl/freebsd-linux_base-f=
20.
> Now I cannot start skype because of error:
>=20
> /usr/local/share/skype/skype: error while loading shared libraries:
> /usr/lib/libQtDBus.so.4: ELF file OS ABI invalid
>=20
Looks like it is picking the native libraries instead of the linux ones.
Strange...

> linux_enable present in rc.conf. What else do I need to setup?
>=20
Please note that sound in Skype does not work with the -f20 set of ports,
and to use linux_base-f20 et al you need to use the lemul kernel. (set also
the compat.linux.osrelease to 3.15.0).

With the latest additions in the linux-f20 ports, you should be able to get
to install all the required libs for skype by running the following from the
top of the cloned tree:

    cd www/linux-f20-qt4-webkit/
    sudo PORTSDIR=3D$TOP_TREE make install=20
    sudo PORTSDIR=3D$TOP_TREE make clean

where $TOP_TREE the top of the cloned ports tree.

That *should* install all the dependencies which *should* cover you for
skype :)

Now because pulseaudio-libs don't work properly yet (see previous messages
in this thread for details), you should "pkg delete linux-f20-pulseaudio-li=
bs"
and then you should be able to use Skype for messaging only. Unfortunatelly=
 no
sound until we finish with the missing syscalls.

Oh, don't forget to kldload linsysfs and linprocfs and do:

    sudo mount /compat/linux/sys
    sudo mount /compat/linux/proc

Hope this helps.

Cheers,
Vassilis

> 03.09.2014 10:34, Artyom Mirgorodskiy =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
> > Thank you!
> >
> > On Tuesday 02 September 2014 22:49:22 Henry Hu wrote:
> >> On Tue, Sep 2, 2014 at 3:47 AM, Artyom Mirgorodskiy <
> >> artyom.mirgorodsky@gmail.com> wrote:
> >>
> >>> This is fantastic! Can you please share compiled library? As I unders=
tand
> >>> this library should be compiled for linux. I don't have linux at this=
 time
> >>>
> >> Here it is.
> >>
> >>
> >>> On Monday 01 September 2014 19:12:33 Henry Hu wrote:
> >>>> On Mon, Aug 18, 2014 at 11:27 AM, Vassilis Laganakos <
> >>> vassilis@einval.com>
> >>>> wrote:
> >>>>
> >>>>> Hi Artyom,
> >>>>>
> >>>>> On Mon, Aug 18, 2014 at 06:16:02PM +0300, Artyom Mirgorodskiy wrote:
> >>>>>> So I try again to run pulse audio and got the following error in
> >>> syslog:
> >>>>>> linux: pid 95238 (pacat): syscall ppoll not implemented
> >>>>>>
> >>>>>> Anybody can help how to implement this syscall on linuxulator?
> >>>>>>
> >>>>> Didn't get the chance to update the thread on the work on this (alb=
eit
> >>> for
> >>>>> -f20). I have an implementation for that syscall, as well for
> >>> fstatfs64,
> >>>>> and
> >>>>> seems to be working. Just need to test it a bit more and I'll push =
it
> >>> for
> >>>>> formal review and more testing :)
> >>>>>
> >>>>> I did push the linux-f20-pulseaudio-libs and related packages in the
> >>> git
> >>>>> repo for the -f20 libs the weekend.
> >>>>>
> >>>> Finally it works...
> >>>> First, compile this to an .so and use LD_PRELOAD to load it:
> >>>>
> >>>> #include <string.h>
> >>>> #include <pthread.h>
> >>>> #include <stdlib.h>
> >>>> #include <unistd.h>
> >>>> #include <assert.h>
> >>>>
> >>>> typedef int pa_bool_t;
> >>>>
> >>>> typedef struct pa_mutex_t {
> >>>>     pthread_mutex_t mutex;
> >>>> } pa_mutex;
> >>>>
> >>>> char* pa_machine_id() {
> >>>>     char buf[256];
> >>>>     assert(gethostname(buf, sizeof(buf)) =3D=3D 0);
> >>>>     return strdup(buf);
> >>>> }
> >>>>
> >>>> pa_mutex* pa_mutex_new(pa_bool_t recursive, pa_bool_t inherit_priori=
ty) {
> >>>>     // we don't support inherit_priority for now
> >>>>     pa_mutex *m;
> >>>>     pthread_mutexattr_t attr;
> >>>>
> >>>>     assert(pthread_mutexattr_init(&attr) =3D=3D 0);
> >>>>
> >>>>     if (recursive)
> >>>>         assert(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURS=
IVE)
> >>> =3D=3D
> >>>> 0);
> >>>>
> >>>>     m =3D malloc(sizeof(pa_mutex));
> >>>>
> >>>>     assert(pthread_mutex_init(&m->mutex, &attr) =3D=3D 0);
> >>>>
> >>>>     return m;
> >>>> }
> >>>>
> >>>> This solves the connection problem with pulse audio, but you still c=
an't
> >>>> make calls or send messages. You need the experimental epoll patch f=
rom
> >>>> http://lev.vlakno.cz/~rdivacky/patches/linux_epoll.patch for the epo=
ll
> >>>> syscall. You may also need to disable shared memory at the server si=
de of
> >>>> pulse audio by changing /usr/local/etc/pulse/daemon.conf.
> >>>>
> >>>> Then it works. Sound input / sound output / webcam all ok.
> >>>>
> >>>> The main problems:
> >>>> 1. pa_machine_id returns dbus' machine id, where on freebsd it should
> >>>> return the machine's name.
> >>>> 2. priority inherited mutexes are not supported by the linux emulati=
on
> >>>> layer yet
> >>>> 3. epoll is not implemented
> >>>>
> >>>>
> >>>>> Cheers,
> >>>>> Vassilis
> >>>>>
> >>>>>> On Wednesday 13 August 2014 22:09:22 Vassilis Laganakos wrote:
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> On Wed, Aug 13, 2014 at 10:47:25AM -0500, Scot Hetzel wrote:
> >>>>>>>> On Wed, Aug 13, 2014 at 10:38 AM, Kenta S. <kentas@hush.com>
> >>> wrote:
> >>>>>>>>> Hello. This afternoon when I try to sign onto Skype, I get:
> >>>>>>>>>
> >>>>>>>>> "Periodic UIC Update Failed"
> >>>>>>>>>
> >>>>>>>>> I haven't updated ports recently. Does anyone have an idea?
> >>>>>>>>> I heard Skype was closing down old versions.
> >>>>>>>>>
> >>>>>>>> I had received the following e-mail from Skype a few days ago:
> >>>>>>>>
> >>>>>>>> On Fri, Aug 8, 2014 at 7:53 PM, Skype <noreply3@emails.skype.com
> >>>>> wrote:
> >>>>>>>>> Your Skype for Linux version is being retired.
> >>>>>>>>> Update today. =C2=BB
> >>>>>>>>> Can't see this email properly? Forgotten your password?
> >>>>>>>>> Your Skype for Linux version is being retired. Update today.
> >>>>>>>>> Dear swhetzel,
> >>>>>>>>>
> >>>>>>>>> We are now retiring older versions of Skype and it appears
> >>> that at
> >>>>> some
> >>>>>>>>> point you signed into Skype with one of these. To continue
> >>> signing
> >>>>> into
> >>>>>>>>> Skype on Linux you'll need to download the latest version. The
> >>> new
> >>>>>>>>> version comes with improved performance, the latest features
> >>> and
> >>>>>>>>> security updates, so you'll get the best possible Skype
> >>> experience.
> >>>>>>>>> If you're on the latest version of Skype, the above will not
> >>> apply.
> >>>>>>>>> Update now at http://www.skype.com/download.
> >>>>>>>> Someone will need to update the Skype port to the latest Linux
> >>>>> version
> >>>>>>>> and see if it works on our current version of Linux emulation.
> >>>>>>>>
> >>>>>>> I've read in various places (and tested myself with a couple of
> >>>>> version on
> >>>>>>> Linux) that any version before skype 4.3.0.37 will not connect.
> >>>>>>>
> >>>>>>> The skype port at:
> >>>>> https://github.com/vassilisl/freebsd-ports/tree/master/net-im/skype4
> >>>>>>> will connect (if you use the f20 ports
> >>>>> https://github.com/vassilisl/freebsd-linux_base-f20 ;) )
> >>>>>>> but it doesn't have sound working. Both xmj and I are working on
> >>>>> getting
> >>>>>>> that version of Skype on c6 and f20 linux emulation bases
> >>>>> respectivelly,
> >>>>>>> which basically means get it to talk to pulseaudio.
> >>>>>>>
> >>>>>>> If anyone has experience with that, please shout! :)
> >>>>>>>
> >>>>>>> Regards,
> >>>>>>> Vassilis
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> --
> >>>>>> Artyom Mirgorodskiy
> >>>>
> >>>>
> >>> --
> >>> Artyom Mirgorodskiy
> >>>
> >>
> >>
>=20
> _______________________________________________
> freebsd-emulation@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
> To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.o=
rg"

--=20
    =E2=80=9CPrediction is very difficult, especially if it's about the fut=
ure.=E2=80=9D =20
    =E2=80=95 Niels Bohr

             F5E2 30B5 72BB DB1E EB24  B06F 6986 DE46 E128 CC4A

--ABTtc+pdwF7KHXCz
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJUCgH/AAoJEGmG3kbhKMxKD5MP/jrpw7xkCJm0LYAIFFPKpamk
hfdcjZJIcgELYNUTvpFkp+IhntLk7aEj1y0goDnV4ys4JKe0P5PIUiIthkLAXBU7
mNDSm3iYSzsvUVTNzRNLtVB9/yB0vWNFcBeXjS5hy7XfBh8obPGmWFX3rPT9LXo5
dRhICt+fnHSuMIpoKmyY/LX+Jq38t0K+iO6k1atrWt3QjaCbAgblIkFkdHmPR0Tj
V4+f9GHTQ9x2vbkJPN/YpPRneqOJcabbdI1KjR6sVqLIx66Fu7Sr7n4sXcYXTLKH
srUnMlxi1ZD2flDwlZsDKH3VGp341PhmPvYI7qsQv6LT013E342kLV08CxrhOu0f
ESKKWh6UVSA3o+m0RsXw0tnJ5FozWZl/2pGoUE323UtdgBxSGQDEzq5qtRSTGmXC
Kej19Z/v9Pl7y6c0oJeS3LsaN43UVr40GSJfpjR6sTrx5L457jaGZk3mB71qoxyN
wRRJyJR6ud/r5PrNjRMw0juKfzd9IZ/vIwaxmmNOSLp809xp2lrWZkcXCKq33cSR
JC5S71aFEGoOd1mBWEACbqWmPDSR98N0Q0OpqXpTU9YhK5K2CguYaLNyQWkBDebR
U9ecQ7wQkujeLrqvulJ9KDsmteqRpMi9sAV/WfHhtmwQ5NyUSobIQlp69aiaxyOp
yznA1JQTaIzpCrdd6xZ5
=NOn1
-----END PGP SIGNATURE-----

--ABTtc+pdwF7KHXCz--



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