Fatal IO Error: 11 (resource temporarily unavailable)

2013-05-19 Thread First Last
Hi,


I got this error when I try to run all example I have of xlib :

Fatal IO Error: 11 (resource temporarily unavailable)

I tried some examples form the book X WINDOW APPLICATION PROGRAMMING from 
ERIC F. JOHNSON  KEVIN REICHARD some from the web, like these one 
:http://www.everything2.com/index.pl?node_id=39055

I guess in all these examples I should see the mouse pointer, particulary in 
the last example of the link I pasted before, I don't see my mouse, clicking 
doesn't works etc. I guess it's linked with my IO error.

I have to kill X from another console, I search how to fix for days now but I 
didn't found it

Don't know if it can help, (it doesn't help me), I add the Xorg.1.logas 
attachment file.


I know, I don't give many informations, simply because I don't know right now 
how to get more interesting informations.

nicoo[  5418.123] 
X.Org X Server 1.14.1
Release Date: 2013-04-17
[  5418.134] X Protocol Version 11, Revision 0
[  5418.137] Build Operating System: Linux 3.8.7-1-ARCH x86_64 
[  5418.141] Current Operating System: Linux band 3.8.11-1-ARCH #1 SMP PREEMPT Wed May 1 20:18:57 CEST 2013 x86_64
[  5418.141] Kernel command line: root=/dev/sda3 ro initrd=../initramfs-linux.img BOOT_IMAGE=../vmlinuz-linux 
[  5418.148] Build Date: 17 April 2013  02:37:06PM
[  5418.151]  
[  5418.155] Current version of pixman: 0.30.0
[  5418.162] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  5418.162] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  5418.177] (==) Log file: /var/log/Xorg.1.log, Time: Sun May 19 11:14:58 2013
[  5418.181] (==) Using config directory: /etc/X11/xorg.conf.d
[  5418.185] (==) Using system config directory /usr/share/X11/xorg.conf.d
[  5418.185] (==) No Layout section.  Using the first Screen section.
[  5418.185] (==) No screen section available. Using defaults.
[  5418.185] (**) |--Screen Default Screen Section (0)
[  5418.185] (**) |   |--Monitor default monitor
[  5418.186] (==) No monitor specified for screen Default Screen Section.
	Using a default monitor configuration.
[  5418.186] (==) Automatically adding devices
[  5418.186] (==) Automatically enabling devices
[  5418.186] (==) Automatically adding GPU devices
[  5418.186] (WW) `fonts.dir' not found (or not valid) in /usr/share/fonts/100dpi/.
[  5418.186] 	Entry deleted from font path.
[  5418.186] 	(Run 'mkfontdir' on /usr/share/fonts/100dpi/).
[  5418.186] (WW) `fonts.dir' not found (or not valid) in /usr/share/fonts/75dpi/.
[  5418.186] 	Entry deleted from font path.
[  5418.186] 	(Run 'mkfontdir' on /usr/share/fonts/75dpi/).
[  5418.186] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/Type1/
[  5418.186] (==) ModulePath set to /usr/lib/xorg/modules
[  5418.186] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[  5418.186] (II) Loader magic: 0x7fcc20
[  5418.186] (II) Module ABI versions:
[  5418.186] 	X.Org ANSI C Emulation: 0.4
[  5418.186] 	X.Org Video Driver: 14.1
[  5418.186] 	X.Org XInput driver : 19.1
[  5418.186] 	X.Org Server Extension : 7.0
[  5418.187] (II) config/udev: Adding drm device (/dev/dri/card0)
[  5418.190] (--) PCI:*(0:1:5:0) 1002:5955:1631:c00e rev 0, Mem @ 0x9000/268435456, 0xc000/65536, I/O @ 0xc000/256, BIOS @ 0x/131072
[  5418.194] Initializing built-in extension Generic Event Extension
[  5418.198] Initializing built-in extension SHAPE
[  5418.203] Initializing built-in extension MIT-SHM
[  5418.207] Initializing built-in extension XInputExtension
[  5418.211] Initializing built-in extension XTEST
[  5418.215] Initializing built-in extension BIG-REQUESTS
[  5418.219] Initializing built-in extension SYNC
[  5418.231] Initializing built-in extension XKEYBOARD
[  5418.233] Initializing built-in extension XC-MISC
[  5418.236] Initializing built-in extension SECURITY
[  5418.239] Initializing built-in extension XINERAMA
[  5418.242] Initializing built-in extension XFIXES
[  5418.244] Initializing built-in extension RENDER
[  5418.247] Initializing built-in extension RANDR
[  5418.250] Initializing built-in extension COMPOSITE
[  5418.253] Initializing built-in extension DAMAGE
[  5418.255] Initializing built-in extension MIT-SCREEN-SAVER
[  5418.258] Initializing built-in extension DOUBLE-BUFFER
[  5418.261] Initializing built-in extension RECORD
[  5418.264] Initializing built-in extension DPMS
[  5418.266] Initializing built-in extension X-Resource
[  5418.269] Initializing built-in extension XVideo
[  5418.272] Initializing built-in extension XVideo-MotionCompensation
[  5418.274] Initializing built-in extension XFree86-VidModeExtension
[  5418.276] Initializing built-in extension XFree86-DGA
[  5418.279] 

Re: Fatal IO Error: 11 (resource temporarily unavailable)

2013-05-19 Thread walter harms

hi,
I have tried the first example an it works fine for me.
(you may like to add \n for the printf() to get more readable output).

re,
 wh


Am 19.05.2013 17:35, schrieb First Last:
 Hi,
 
 
 I got this error when I try to run all example I have of xlib :
 
 Fatal IO Error: 11 (resource temporarily unavailable)
 
 I tried some examples form the book X WINDOW APPLICATION PROGRAMMING from 
 ERIC F. JOHNSON  KEVIN REICHARD some from the web, like these one 
 :http://www.everything2.com/index.pl?node_id=39055
 
 I guess in all these examples I should see the mouse pointer, particulary in 
 the last example of the link I pasted before, I don't see my mouse, clicking 
 doesn't works etc. I guess it's linked with my IO error.
 
 I have to kill X from another console, I search how to fix for days now but I 
 didn't found it
 
 Don't know if it can help, (it doesn't help me), I add the Xorg.1.logas 
 attachment file.
 
 
 I know, I don't give many informations, simply because I don't know right now 
 how to get more interesting informations.
 
 nicoo
 
 
 
 ___
 xorg@lists.x.org: X.Org support
 Archives: http://lists.freedesktop.org/archives/xorg
 Info: http://lists.x.org/mailman/listinfo/xorg
 Your subscription address: wha...@bfs.de
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Re: Fatal IO Error: 11 (resource temporarily unavailable)

2013-05-19 Thread Alan Coopersmith

On 05/19/13 08:35 AM, First Last wrote:

I got this error when I try to run all example I have of xlib :

Fatal IO Error: 11 (resource temporarily unavailable)


If you got that after killed Xorg, then that's a common client response.


I guess in all these examples I should see the mouse pointer, particulary in the
last example of the link I pasted before, I don't see my mouse, clicking doesn't
works etc. I guess it's linked with my IO error.


Unless you start Xorg with the -retro flag it won't draw a cursor until a client
(usually the window manager or desktop environment) sets the cursor image.  This
is one of many changes in the years since people last wrote books on Xlib. (They
don't anymore since the advice is much shorter now: Don't use Xlib directly,
use a toolkit.)

--
-Alan Coopersmith-  alan.coopersm...@oracle.com
 Oracle Solaris Engineering - http://blogs.oracle.com/alanc
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Re: (Crowd funded) fix for SiS 671/771 video cards

2013-05-19 Thread Pander
On 05/18/2013 10:28 PM, Tormod Volden wrote:
 On Sat, May 18, 2013 at 7:52 PM, Pander wrote:
 (manual) patch results in

 [74.465] (II) LoadModule: sisimedia
 [74.465] (II) Loading /usr/lib/xorg/modules/drivers/sisimedia_drv.so
 [74.465] (EE) Failed to load
 /usr/lib/xorg/modules/drivers/sisimedia_drv.so:
 /usr/lib/xorg/modules/drivers/sisimedia_drv.so: undefined symbol:
 SiSUploadToScratch
 [74.465] (II) UnloadModule: sisimedia
 [74.465] (II) Unloading sisimedia
 [74.465] (EE) Failed to load module sisimedia (loader failed, 7)

 I used this file: http://pastebin.com/XkYfxrQy
 
 It would be more useful if you told which file it is and which version
 instead of paste-binning it. I assume this is the src/sis310_accel.c
 from git://gitorious.org/xf86-video-sis671/sis-671-fix.git

Sorry, I forgot indeed that filename. I have removed declarations and
usage of SiSUploadToScreen, SiSUploadToScratch and SiSDownloadFromScreen.

Do I need to do that also for
  void SiSScratchSave(ScreenPtr pScreen, ExaOffscreenArea *area);
?

 

 How can I fix this?

 
 Connor's pastebin patch only removed SiSUploadToScratch() from that
 one file. You will have to remove all references to that function.
 git grep SiSUploadToScratch will help you.
 
 Regards,
 Tormod
 ___
 xorg-devel@lists.x.org: X.Org development
 Archives: http://lists.x.org/archives/xorg-devel
 Info: http://lists.x.org/mailman/listinfo/xorg-devel
 

___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel


Re: [PATCH:libX11] Make sure internal headers include required headers

2013-05-19 Thread Peter Hutterer
On Fri, May 17, 2013 at 03:28:04PM -0700, Alan Coopersmith wrote:
 From: Niveditha Rau niveditha@oracle.com
 
 Fixes builds with Solaris Studio 12.3 when lint is enabled, since it no
 longer ignores *.h files, but complains when they reference undefined
 typedefs or macros.
 
 Signed-off-by: Niveditha Rau niveditha@oracle.com
 Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com

Reviewed-by: Peter Hutterer peter.hutte...@who-t.net

Cheers,
   Peter

 ---
  src/Cmap.h |2 ++
  src/Cr.h   |2 ++
  src/Key.h  |3 +++
  src/Xintatom.h |1 +
  src/Xintconn.h |1 +
  src/Xprivate.h |2 ++
  src/Xresinternal.h |2 ++
  src/locking.h  |2 ++
  8 files changed, 15 insertions(+)
 
 diff --git a/src/Cmap.h b/src/Cmap.h
 index 062b538..78cc3ea 100644
 --- a/src/Cmap.h
 +++ b/src/Cmap.h
 @@ -2,6 +2,8 @@
  #ifndef _CMAP_H_
  #define _CMAP_H_
  
 +#include X11/Xlib.h
 +
  extern void
  _XcmsDeleteCmapRec(
  Display *dpy,
 diff --git a/src/Cr.h b/src/Cr.h
 index 800c9ab..635e9e4 100644
 --- a/src/Cr.h
 +++ b/src/Cr.h
 @@ -2,6 +2,8 @@
  #ifndef _CR_H_
  #define _CR_H_
  
 +#include X11/Xlib.h
 +
  extern int _XUpdateGCCache(
  register GC gc,
  register unsigned long mask,
 diff --git a/src/Key.h b/src/Key.h
 index 0fe89ba..bb25439 100644
 --- a/src/Key.h
 +++ b/src/Key.h
 @@ -2,6 +2,9 @@
  #ifndef _KEY_H_
  #define _KEY_H_
  
 +#include X11/Xlib.h
 +#include X11/Xresource.h
 +
  #ifndef NEEDKTABLE
  extern const unsigned char _XkeyTable[];
  #endif
 diff --git a/src/Xintatom.h b/src/Xintatom.h
 index 82dba36..516a72b 100644
 --- a/src/Xintatom.h
 +++ b/src/Xintatom.h
 @@ -2,6 +2,7 @@
  #ifndef _XINTATOM_H_
  #define _XINTATOM_H_ 1
  
 +#include X11/Xlib.h
  #include X11/Xfuncproto.h
  
  /* IntAtom.c */
 diff --git a/src/Xintconn.h b/src/Xintconn.h
 index db59061..cd9aee3 100644
 --- a/src/Xintconn.h
 +++ b/src/Xintconn.h
 @@ -3,6 +3,7 @@
  #define _XINTCONN_H_ 1
  
  #include X11/Xfuncproto.h
 +#include X11/Xlib.h
  
  _XFUNCPROTOBEGIN
  
 diff --git a/src/Xprivate.h b/src/Xprivate.h
 index 006b170..6bfe70b 100644
 --- a/src/Xprivate.h
 +++ b/src/Xprivate.h
 @@ -8,6 +8,8 @@
  #ifndef XPRIVATE_H
  #define XPRIVATE_H
  
 +#include X11/Xlib.h
 +
  extern _X_HIDDEN void _XIDHandler(Display *dpy);
  extern _X_HIDDEN void _XSeqSyncFunction(Display *dpy);
  extern _X_HIDDEN void _XSetPrivSyncFunction(Display *dpy);
 diff --git a/src/Xresinternal.h b/src/Xresinternal.h
 index c2f355f..b5cc7ff 100644
 --- a/src/Xresinternal.h
 +++ b/src/Xresinternal.h
 @@ -2,6 +2,8 @@
  #ifndef _XRESINTERNAL_H_
  #define _XRESINTERNAL_H_
  
 +#include X11/Xlib.h
 +#include X11/Xresource.h
  #include inttypes.h
  
  /* type defines */
 diff --git a/src/locking.h b/src/locking.h
 index 96019fc..5251a60 100644
 --- a/src/locking.h
 +++ b/src/locking.h
 @@ -36,6 +36,8 @@ in this Software without prior written authorization from 
 The Open Group.
  
  #define xmalloc(s) Xmalloc(s)
  #define xfree(s) Xfree(s)
 +#include X11/Xlib.h
 +#include X11/Xlibint.h
  #include X11/Xthreads.h
  
  struct _XCVList {
 -- 
 1.7.9.2
 
 ___
 xorg-devel@lists.x.org: X.Org development
 Archives: http://lists.x.org/archives/xorg-devel
 Info: http://lists.x.org/mailman/listinfo/xorg-devel
 
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel


Re: (Crowd funded) fix for SiS 671/771 video cards

2013-05-19 Thread Connor Behan
On 19/05/13 09:48 AM, Pander wrote:
 On 05/18/2013 10:28 PM, Tormod Volden wrote:
 On Sat, May 18, 2013 at 7:52 PM, Pander wrote:
 (manual) patch results in

 [74.465] (II) LoadModule: sisimedia
 [74.465] (II) Loading /usr/lib/xorg/modules/drivers/sisimedia_drv.so
 [74.465] (EE) Failed to load
 /usr/lib/xorg/modules/drivers/sisimedia_drv.so:
 /usr/lib/xorg/modules/drivers/sisimedia_drv.so: undefined symbol:
 SiSUploadToScratch
 [74.465] (II) UnloadModule: sisimedia
 [74.465] (II) Unloading sisimedia
 [74.465] (EE) Failed to load module sisimedia (loader failed, 7)

 I used this file: http://pastebin.com/XkYfxrQy
 It would be more useful if you told which file it is and which version
 instead of paste-binning it. I assume this is the src/sis310_accel.c
 from git://gitorious.org/xf86-video-sis671/sis-671-fix.git
 Sorry, I forgot indeed that filename. I have removed declarations and
 usage of SiSUploadToScreen, SiSUploadToScratch and SiSDownloadFromScreen.

 Do I need to do that also for
   void SiSScratchSave(ScreenPtr pScreen, ExaOffscreenArea *area);
 ?

No, that can be left in. Sorry for messing up the patch.



signature.asc
Description: OpenPGP digital signature
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

where does CARD18 come from?

2013-05-19 Thread wempwer
Hello,

I was wondering where the names of various data types listed here may
come from:
http://www.x.org/wiki/XSessionManagementProtocol#Data_Types

Most of them are clear, but these ones picked my interest:

 CARD8
 a one-byte unsigned integer

 CARD16
 a two-byte unsigned integer

 CARD32
 a four-byte unsigned integer 

Do you know what is the etymology of these type names? Do they mean
character..., but what does d stand for? In Lisp car is a
function that returns the first element of the list but I think Xorg
has nothing to do with Lisp.

History is interesting ;)
-- 
wemp...@gmail.com
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel


Re: where does CARD18 come from?

2013-05-19 Thread Dave Airlie

 I was wondering where the names of various data types listed here may
 come from:
 http://www.x.org/wiki/XSessionManagementProtocol#Data_Types

 Most of them are clear, but these ones picked my interest:

  CARD8
  a one-byte unsigned integer

  CARD16
  a two-byte unsigned integer

  CARD32
  a four-byte unsigned integer

If memory serves, it just means Graphics card.

Dave.
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel


Re: where does CARD18 come from?

2013-05-19 Thread Jasper St. Pierre
It's short for Cardinal, as in Cardinal number

http://en.wikipedia.org/wiki/Cardinal_numbers


On Mon, May 20, 2013 at 1:12 AM, wemp...@gmail.com wrote:

 Hello,

 I was wondering where the names of various data types listed here may
 come from:
 http://www.x.org/wiki/XSessionManagementProtocol#Data_Types

 Most of them are clear, but these ones picked my interest:

  CARD8
  a one-byte unsigned integer

  CARD16
  a two-byte unsigned integer

  CARD32
  a four-byte unsigned integer

 Do you know what is the etymology of these type names? Do they mean
 character..., but what does d stand for? In Lisp car is a
 function that returns the first element of the list but I think Xorg
 has nothing to do with Lisp.

 History is interesting ;)
 --
 wemp...@gmail.com
 ___
 xorg-devel@lists.x.org: X.Org development
 Archives: http://lists.x.org/archives/xorg-devel
 Info: http://lists.x.org/mailman/listinfo/xorg-devel




-- 
  Jasper
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel