Extension of Xorg server 32/64 Bits problem - SOLVED!

Leo l.chapiro at novamedia.de
Tue Aug 14 02:44:10 PDT 2012


Hi,

Just for Information: I had a strange problem with a small loadable 
extention for Xorg server but only on 64-Bit system.
On 32-Bit Linux System the extention works fine, on 64-Bit system I got 
an error "X Error of failed request: BadLength (poly request too large 
or internal Xlib length error).
I have asked here in forum but nothing helps :(
Now I know what the problem was and hope, this solution will help 
somebody who try to write a loadable extension too.

Simply the /usr/include/xorg/xorg-server.h was missed! That is a 
generated header file and must be included at the first place in the 
extension AND NOT in the client application / lib!
After including it the _XSERVER64 flag is set to 1 and everything allright!…

HTH

Leo




More information about the xorg-devel mailing list