From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 2 00:14:51 2014 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 429F2AD7 for ; Tue, 2 Sep 2014 00:14:51 +0000 (UTC) Received: from cheddar.halon.org.uk (cheddar.halon.org.uk [217.10.144.130]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 057C61535 for ; Tue, 2 Sep 2014 00:14:50 +0000 (UTC) Received: from vassilis by cheddar.halon.org.uk with local (Exim 4.80) (envelope-from ) id 1XObNv-0006ns-9u; Tue, 02 Sep 2014 00:51:43 +0100 Date: Tue, 2 Sep 2014 00:51:43 +0100 From: Vassilis Laganakos To: Henry Hu Subject: Re: net-im/skype-[devel] won't connect Message-ID: <20140901235143.GA9721@halon.org.uk> References: <20140813153823.E448F601EF@smtp.hushmail.com> <20140813210922.GC11788@halon.org.uk> <2936347.WYbkSbjIbI@notebook.com> <20140818152759.GG9346@halon.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zhXaljGHf11kAtnf" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2014 00:14:51 -0000 --zhXaljGHf11kAtnf Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Henry, On Mon, Sep 01, 2014 at 07:12:33PM -0400, Henry Hu wrote: > On Mon, Aug 18, 2014 at 11:27 AM, Vassilis Laganakos > wrote: >=20 > > 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 sysl= og: > > > 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 (albeit = 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 f= or > > 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. > > >=20 > Finally it works... Great stuff! :) > First, compile this to an .so and use LD_PRELOAD to load it: >=20 > #include > #include > #include > #include > #include >=20 > typedef int pa_bool_t; >=20 > typedef struct pa_mutex_t { > pthread_mutex_t mutex; > } pa_mutex; >=20 > char* pa_machine_id() { > char buf[256]; > assert(gethostname(buf, sizeof(buf)) =3D=3D 0); > return strdup(buf); > } >=20 > pa_mutex* pa_mutex_new(pa_bool_t recursive, pa_bool_t inherit_priority) { > // we don't support inherit_priority for now > pa_mutex *m; > pthread_mutexattr_t attr; >=20 > assert(pthread_mutexattr_init(&attr) =3D=3D 0); >=20 > if (recursive) > assert(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE) = =3D=3D 0); >=20 > m =3D malloc(sizeof(pa_mutex)); >=20 > assert(pthread_mutex_init(&m->mutex, &attr) =3D=3D 0); >=20 > return m; > } >=20 > This solves the connection problem with pulse audio, but you still can't > make calls or send messages. You need the experimental epoll patch from > http://lev.vlakno.cz/~rdivacky/patches/linux_epoll.patch for the epoll > syscall. Sending messages works fine with the lemul branch (contains the epoll stuff, among others), using the -f20 ports. Are you using -f10? > You may also need to disable shared memory at the server side of > pulse audio by changing /usr/local/etc/pulse/daemon.conf. >=20 I just had to disable that from the linux client side of pulse audio, in /compat/linux/etc/pulse/client.conf and didn't touch the server side. - I have it as a patch in the port: (https://github.com/vassilisl/freebsd-linux_base-f20/tree/master/audio/linu= x-f20-pulseaudio-libs) > Then it works. Sound input / sound output / webcam all ok. >=20 Excellent! > The main problems: > 1. pa_machine_id returns dbus' machine id, where on freebsd it should > return the machine's name. If you enter the machine's name in /compat/linux/etc/mahine-id (IIRC), that works around that problem as well - but it is a hack :) > 2. priority inherited mutexes are not supported by the linux emulation > layer yet > 3. epoll is not implemented >=20 3 is present in lemul, and 2 are being added as well. >=20 > > > > 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. wrot= e: > > > > > > 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 > > wrote: > > > > > > > > > > > > Your Skype for Linux version is being retired. > > > > > > Update today. =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 sign= ing > > 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 experie= nce. > > > > > > > > > > > > If you're on the latest version of Skype, the above will not ap= ply. > > > > > > > > > > > > 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 > > >=20 >=20 >=20 > --=20 > Cheers, > Henry Cheers, Vassilis --zhXaljGHf11kAtnf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJUBQaOAAoJEGmG3kbhKMxK6lwP/2lbY4Z8+ouii7bxnxiAM44l 5XH1D4HnKY88KxJh8oUjN0J80cRggtnnrgTHxuv+pQqL+eoRZLYBcTp+Onn2N3L3 giJUXv80x623BXgFoIdgbDJ+OS2AWpVGx/jsmfBj92z1TYMSC0LSiIQVPFCFnE+f uUE2vqrWhkjIc4bbtpAlRdLQdZPalrn/2yh0Yi/pjDrgT/Zu3z45fw91vvdz/1bt t1D+23mvbrjGHorFpxCL91Jx6EZWtbgSqUDcRdQWcwI8c3ZNeDwuDk7RIrkHr48u OWUO37nRlX+OIks2jBS2YWIc/4lLIbxrte7y2ZgoqsuuUmAzZmt3Bg/juNFj/9/M tK12OlrvaC79jSAgpXJI1ZeatRbvdOztVPypCCcmtogg9diIIeMbfmKvShzOQ+aR GDrNlxZOv3IKaXWuywV+J7K3A418dGWzd8JJLShgcboW9AMI5/Uw9RsvnVLJ0DBj L9ZpbHhyzrWoBD4FQgUVfJjWYKZBnpkQOP2DIUXQ4l/tgW4oJW/U7RfakQfsvlyd alInD9yyXODpu5asab7zYXG8IUQ3Q0L9Gxxh1YYPPuOqU5wdcHTNiq/BC6hHjemq MasXqGMOulExwQTUG9GjZEheWFRTlS8eEmKt9aKOh06ti3sQx26sB9SaZfWFbAon DXzptFiUwMYG0+wM4Tzn =nFxd -----END PGP SIGNATURE----- --zhXaljGHf11kAtnf--