From owner-freebsd-emulation@FreeBSD.ORG Fri Sep 5 20:57:37 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 321839EA for ; Fri, 5 Sep 2014 20:57:37 +0000 (UTC) Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (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 9A9651CC6 for ; Fri, 5 Sep 2014 20:57:36 +0000 (UTC) Received: by mail-lb0-f173.google.com with SMTP id c11so14240427lbj.18 for ; Fri, 05 Sep 2014 13:57:34 -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=C4Jo/jW7boTprG7XRi2uZWh7JERAfunlOW11yE15I0c=; b=BR5aXQO983RPuZxry9lgRbOBnhgAgoDeQ0it6VekGG01vO+UKT9TWdhz4ToZR/vrC4 hfVcCiZPC1PwCJ8CJjiYdRnUtDCy2poCZx+5n5JdPuhvhzzw2fjR6wFvnUmrJWASezFP HLXKD1a+TRAyFQbCKw/5Vd5SPD2b9o8AICPWRjqJ+03EoqaFMQdfcoLeuf1425X9x+ND I6ABrDueEIxfxFQeRGC9piMP+BNBxNoyJOaFcw6XiLX5SyH6YPMAjyLoi/5Fn0ixpKV+ HtVeHvL8FinhJz1/O/ILel/d+qHn/HtGmQIghFfTmxzUqWicO0uH7pbIcKSR9YHBlzCy K92g== X-Received: by 10.152.7.145 with SMTP id j17mr13923939laa.77.1409950654319; Fri, 05 Sep 2014 13:57:34 -0700 (PDT) Received: from notebook.com ([91.243.193.58]) by mx.google.com with ESMTPSA id js10sm1024555lab.23.2014.09.05.13.57.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Sep 2014 13:57:33 -0700 (PDT) From: Artyom Mirgorodskiy To: freebsd-emulation@freebsd.org Subject: Re: net-im/skype-[devel] won't connect Date: Fri, 05 Sep 2014 23:57:35 +0300 Message-ID: <1776702.ImuT7NHQLY@notebook.com> User-Agent: KMail/4.12.5 (FreeBSD/11.0-CURRENT; KDE/4.12.5; amd64; ; ) In-Reply-To: <20140905183335.GC9721@halon.org.uk> References: <20140813153823.E448F601EF@smtp.hushmail.com> <54081149.8010604@shurik.kiev.ua> <20140905183335.GC9721@halon.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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: Fri, 05 Sep 2014 20:57:37 -0000 Hm... Why sound doesn't work? Sound work fine with CentOS 6.4 base and = path from Henry Hu On Friday 05 September 2014 19:33:35 Vassilis Laganakos wrote: > Hi Alexandr, >=20 > 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-f20. > > 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 on= es. > Strange... >=20 > > 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 po= rts, > and to use linux_base-f20 et al you need to use the lemul kernel. (se= t also > the compat.linux.osrelease to 3.15.0). >=20 > 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 f= rom the > top of the cloned tree: >=20 > cd www/linux-f20-qt4-webkit/ > sudo PORTSDIR=3D$TOP_TREE make install=20 > sudo PORTSDIR=3D$TOP_TREE make clean >=20 > where $TOP_TREE the top of the cloned ports tree. >=20 > That *should* install all the dependencies which *should* cover you f= or > skype :) >=20 > Now because pulseaudio-libs don't work properly yet (see previous mes= sages > in this thread for details), you should "pkg delete linux-f20-pulseau= dio-libs" > and then you should be able to use Skype for messaging only. Unfortun= atelly no > sound until we finish with the missing syscalls. >=20 > Oh, don't forget to kldload linsysfs and linprocfs and do: >=20 > sudo mount /compat/linux/sys > sudo mount /compat/linux/proc >=20 > Hope this helps. >=20 > Cheers, > Vassilis >=20 > > 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 = understand > > >>> this library should be compiled for linux. I don't have linux a= t 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 erro= r in > > >>> syslog: > > >>>>>> linux: pid 95238 (pacat): syscall ppoll not implemented > > >>>>>> > > >>>>>> Anybody can help how to implement this syscall on linuxulato= r? > > >>>>>> > > >>>>> Didn't get the chance to update the thread on the work on thi= s (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 > > >>> 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 > > >>>> #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 s= till can't > > >>>> make calls or send messages. You need the experimental epoll p= atch from > > >>>> http://lev.vlakno.cz/~rdivacky/patches/linux_epoll.patch for t= he epoll > > >>>> syscall. You may also need to disable shared memory at the ser= ver side 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 e= mulation > > >>>> layer yet > > >>>> 3. epoll is not implemented > > >>>> > > >>>> > > >>>>> Cheers, > > >>>>> Vassilis > > >>>>> > > >>>>>> On Wednesday 13 August 2014 22:09:22 Vassilis Laganakos wrot= e: > > >>>>>>> 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 ge= t: > > >>>>>>>>> > > >>>>>>>>> "Periodic UIC Update Failed" > > >>>>>>>>> > > >>>>>>>>> I haven't updated ports recently. Does anyone have an ide= a? > > >>>>>>>>> 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 tod= ay. > > >>>>>>>>> Dear swhetzel, > > >>>>>>>>> > > >>>>>>>>> We are now retiring older versions of Skype and it appear= s > > >>> that at > > >>>>> some > > >>>>>>>>> point you signed into Skype with one of these. To continu= e > > >>> signing > > >>>>> into > > >>>>>>>>> Skype on Linux you'll need to download the latest version= . The > > >>> new > > >>>>>>>>> version comes with improved performance, the latest featu= res > > >>> 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 L= inux > > >>>>> version > > >>>>>>>> and see if it works on our current version of Linux emulat= ion. > > >>>>>>>> > > >>>>>>> I've read in various places (and tested myself with a coupl= e of > > >>>>> version on > > >>>>>>> Linux) that any version before skype 4.3.0.37 will not conn= ect. > > >>>>>>> > > >>>>>>> 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 worki= ng 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@fre= ebsd.org" >=20 >=20 --=20 Artyom Mirgorodskiy