Re: Cannot run Qt5 applications.

Corinna Vinschen <[email protected]> Tue, 3 Mar 2015 10:04:07 +0100
Newsgroups gmane.os.cygwin.xfree
Message-ID <[email protected]>
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, which
> > > could possibly be handled in a better way...
> > 
> > This looks like a portability problem in Qt5, where it only handles 
> > shmget() failing with a return value of -1, not with SIGSYS, to fallback 
> > to using an image in unshared memory.
> > 
> > Patch attached.
> 
> Or is it a problem with our shmget()?
> 
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/shmget.html
> http://man7.org/linux/man-pages/man2/shmget.2.html
> 
> 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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
signature.asc (application/pgp-signature, 819 B)
-----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-----