From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 2 07:47:12 2014 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 875F33C5 for ; Tue, 2 Sep 2014 07:47:12 +0000 (UTC) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F21821547 for ; Tue, 2 Sep 2014 07:47:11 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id p9so7041043lbv.19 for ; Tue, 02 Sep 2014 00:47:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding:content-type; bh=YHe5VW/nLNl12qfKumqhppKpEqNfYBT+b/sZpvrUO/A=; b=bUSV0XSr4QUAKu8+y27J8LNZDNSCVh5XmjuaB7+O5xWfiYcw+c8D7JGHmGHoCJrGSC b/2gfAcxuvzPElRJWUWSsqjBArXzCp0SHHizBToPNL7F20HEzuiIZWEMkizWOwFFx4d/ T4NlR5Rtu7EH8aLVws0WwuCJNvexpIvYR99lbB4fsPDPjZqHlANT7mBiixBc+0cqRuUv f03IehQksEP0IqZIGLgkDoxoR93PiXZAe6fsQ1GPnoFiKD/pKwpmSUhr+h60aPm+8otq Lokh9Ax7QRyibSh2kmJBy4yvFW7AMBONloo4hJ8KL+OvccNpIz/zTWxc6WW3dcClvjA7 2w5Q== X-Received: by 10.152.203.130 with SMTP id kq2mr743256lac.89.1409644029800; Tue, 02 Sep 2014 00:47:09 -0700 (PDT) Received: from notebook.com ([91.243.193.58]) by mx.google.com with ESMTPSA id uj2sm4431229lbc.28.2014.09.02.00.47.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Sep 2014 00:47:08 -0700 (PDT) From: Artyom Mirgorodskiy To: freebsd-emulation@freebsd.org Subject: Re: net-im/skype-[devel] won't connect Date: Tue, 02 Sep 2014 10:47:09 +0300 Message-ID: <2193543.8WxQXG9cXZ@notebook.com> User-Agent: KMail/4.12.5 (FreeBSD/11.0-CURRENT; KDE/4.12.5; amd64; ; ) In-Reply-To: References: <20140813153823.E448F601EF@smtp.hushmail.com> <20140818152759.GG9346@halon.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" 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 07:47:12 -0000 This is fantastic! Can you please share compiled library? As I understa= nd this library should be compiled for linux. I don't have linux at thi= s time On Monday 01 September 2014 19:12:33 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 = 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 fstat= fs64, > > 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 th= e git > > repo for the -f20 libs the weekend. > > >=20 > Finally it works... > 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_priorit= y) { > // 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_RECURSI= VE) =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 ca= n't > make calls or send messages. You need the experimental epoll patch fr= om > http://lev.vlakno.cz/~rdivacky/patches/linux_epoll.patch for the epol= l > syscall. You may also need to disable shared memory at the server sid= e of > pulse audio by changing /usr/local/etc/pulse/daemon.conf. >=20 > Then it works. Sound input / sound output / webcam all ok. >=20 > 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 emulatio= n > layer yet > 3. epoll is not implemented >=20 >=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. = 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 > > 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 = signing > > into > > > > > > Skype on Linux you'll need to download the latest version. = The new > > > > > > version comes with improved performance, the latest feature= s and > > > > > > security updates, so you'll get the best possible Skype exp= erience. > > > > > > > > > > > > If you're on the latest version of Skype, the above will no= t apply. > > > > > > > > > > > > Update now at http://www.skype.com/download. > > > > > > > > > > Someone will need to update the Skype port to the latest Linu= x > > 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/skype= 4 > > > > 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 o= n > > 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 --=20 Artyom Mirgorodskiy