From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 2 00:17:31 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 8AEF1BBC for ; Tue, 2 Sep 2014 00:17:31 +0000 (UTC) Received: from mail-ob0-x22f.google.com (mail-ob0-x22f.google.com [IPv6:2607:f8b0:4003:c01::22f]) (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 4F768155F for ; Tue, 2 Sep 2014 00:17:31 +0000 (UTC) Received: by mail-ob0-f175.google.com with SMTP id wp4so4280919obc.6 for ; Mon, 01 Sep 2014 17:17:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=VxzueWs4aVbuCEmZPq9xYO0bc8wZsZAZGbq8ZdCpXLo=; b=H/ptX7dmsIp+oy0shY9Vf/dQEpDjDTy8rLGR418tAFsJ87p1kky/cueOCiDE1YE1aT o+DuIQU9S01cyTiV7+qlUOtbEgn++KpyaiLGPc4iKmewKOjKGDIP4wo3zZrjXtrXvh/T N1Wcr49ENBjompKO3uk1w2/Bs6w1RAzSEV3TcyQEGs/Um+2iMMjqdxIAHxPh+UmED13o FnB6gayrZFZHGqnXWfLQ2pGav/VjZyIfqaAIfFEDDSMXnUpOnxAHcuzwaE6mEKY1rze0 msAdLcmGwYIuaxaenpw2VZv+6HGbUco8UnAD541HZ9UHgCJHayuVtXRNkEtOw9UZPYZw TbJg== X-Received: by 10.182.209.5 with SMTP id mi5mr28896435obc.33.1409617050445; Mon, 01 Sep 2014 17:17:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.151.1 with HTTP; Mon, 1 Sep 2014 17:16:50 -0700 (PDT) In-Reply-To: <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> <20140901235143.GA9721@halon.org.uk> From: Henry Hu Date: Mon, 1 Sep 2014 20:16:50 -0400 Message-ID: Subject: Re: net-im/skype-[devel] won't connect To: Vassilis Laganakos Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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:17:31 -0000 On Mon, Sep 1, 2014 at 7:51 PM, Vassilis Laganakos wrote: > 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 < > 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 (albei= t > 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... > > Great stuff! :) > > > First, compile this to an .so and use LD_PRELOAD to load it: > > > > #include > > #include > > #include > > #include > > #include > > > > 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_priority)= { > > // 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_RECURSIVE= ) > =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 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? > I'm using -c6 from github.com/xmj/linux-ports. > > You may also need to disable shared memory at the server side of > > pulse audio by changing /usr/local/etc/pulse/daemon.conf. > > > 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/lin= ux-f20-pulseaudio-libs > ) > I did this because if I don't disable it, in my small test program it fails to record and says "Received SHM frame on a socket where SHM is disabled". > > > Then it works. Sound input / sound output / webcam all ok. > > > 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), th= at > works around that problem as well - but it is a hack :) > I don't know which is more hackish, but I'll try that also. > > > 2. priority inherited mutexes are not supported by the linux emulation > > layer yet > > 3. epoll is not implemented > > > 3 is present in lemul, and 2 are being added as well. > Great work! It's good to know that they are being 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. > 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. =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. Th= e > 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 > > > > > > > > > > > -- > > Cheers, > > Henry > > Cheers, > Vassilis > --=20 Cheers, Henry