From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114279 invoked by alias); 3 Mar 2015 09:04:12 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 114259 invoked by uid 89); 3 Mar 2015 09:04:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Mar 2015 09:04:10 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id CCF39A80A1F; Tue, 3 Mar 2015 10:04:07 +0100 (CET) Date: Tue, 03 Mar 2015 09:04:00 -0000 From: Corinna Vinschen To: cygwin-xfree@cygwin.com Subject: Re: Cannot run Qt5 applications. Message-ID: <20150303090407.GA31622@calimero.vinschen.de> Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com References: <54D2A922.3060507@tiscali.co.uk> <54D2CA12.5080701@dronecode.org.uk> <54DE4334.9060101@dronecode.org.uk> <1425339264.7292.8.camel@cygwin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <1425339264.7292.8.camel@cygwin.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-03/txt/msg00004.txt.bz2 --huq684BweRXVnRxX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1518 On Mar 2 17:34, Yaakov Selkowitz wrote: > On Fri, 2015-02-13 at 18:32 +0000, Jon TURNEY wrote: > > On 05/02/2015 01:40, Jon TURNEY wrote: > > > On 04/02/2015 23:20, David Stacey wrote: > > >> I'm having difficulty running any Qt5 application. These are the > > >> commands I'm issuing: > > >> [snip] > > >> and I see the clock, so X is up and running. Then: > > >> [snip] > > > > > > Possibly you need to install and start cygserver (See [1]) > > > > > > If so, this is because Qt5 is assuming shared memory is available, wh= ich > > > could possibly be handled in a better way... > >=20 > > This looks like a portability problem in Qt5, where it only handles=20 > > shmget() failing with a return value of -1, not with SIGSYS, to fallbac= k=20 > > to using an image in unshared memory. > >=20 > > Patch attached. >=20 > Or is it a problem with our shmget()? >=20 > http://pubs.opengroup.org/onlinepubs/9699919799/functions/shmget.html > http://man7.org/linux/man-pages/man2/shmget.2.html >=20 > Perhaps we should be just returning -1 with an errno (ENOSYS?) instead > of raise(SIGSYS)? Or you just add signal(SIGSYS, SIG_IGN) prior to calling shmget. SIGSYS is raised when calling a system call which isn't available. That's perfectly valid. Of course, it would be nice if Qt5 used POSIX shared memory objects iunstead, but that's asked too much, probably. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --huq684BweRXVnRxX Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJU9XkHAAoJEPU2Bp2uRE+grHoP/0yPJrJTXSGM/eBzgZNREDVb eF9tt68FjZY4zu2xLxUbfuIOZFBJ4cU9zS4L0OejI7BhcSWKYvwWq7FjYPYYrwGx 0iGmxp6Ml/SiXVgWl8nkGpvuO72J8Ail0sBp0Ku/+Flu+HHcPN/R6gTuXupBZ+wk HOnuVl1uiRKJAHOmhO8k7+tfRZZZnZiahbJ/zpLYEmCQx5CC6MhNxxLotEqdXlUh CizgRdQ2FYDtvKxH4dJfHFkBOysQ62NFEaeQaWEkKDnmhDGjV1wVwLAfTYFljKDH 8sOaopgVAXtFehM9K+7otWHZLatwHDWSGTgkL3W8IKYJC2X/aqOJ1gq0th4HEdwE 0m7DqCJEYRoXo7orWAqNe5L9W9PwWxm4Z8QvtVlwTu3aYFN3iBpHU6qfHmMpmlFN a34pUGKfXBw3YvfhbpuB4sl6whZg0d7N4YUCKsld29sDH6bSGmhrR8cJRvhHSOdT GWofdlgLrjIJgg3r5wmeLD/mBS/u/WOIEu6L68bIpCcfoLjAuiC1ICofev4EPKKG 4zUBXy/Vn9+OZldjk7SK7zK6/I3iEkQMqgOr3h8Qg6svIyFxHgLcTCia8ZyKy5ZI 3L/zGrJJmxJ1c8LKf97CEMgIHD3NmNtduLQwYkXmCUjCK9PeBQGz1CY5YGSnkfQO KJizl8PFBQYrWbNcmDbr =3Blr -----END PGP SIGNATURE----- --huq684BweRXVnRxX--