[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with: #include <X11/Xlib.h>



Kevin B. McCarty wrote:
gustavo halperin wrote:

Kevin B. McCarty wrote:

The _X_SENTINEL macro is defined in /usr/include/X11/Xfuncproto.h
-- try installing the latest version of the x11proto-core-dev
package that supplies this file. (Should be version 7.0.4-3 in Sid
or Etch.)
OK, I'm using Debian Sarge version, but my X is Xorg from
"www.backports.org/backports.org/" version 6.9..... . This unofficial
APT repository unfortunately haven't the x11proto-core-dev package,
but the file /usr/include/X11/Xfuncproto.h is there but without the
"_X_SENTINEL" definition.

Hmm, then try (re-)installing the latest version of the "x-dev" package
from backports.org (version 6.9.0.dfsg.1-5bpo2).  The Xfuncproto.h in
there does include the _X_SENTINEL stuff.
Thank you, you are right. I fixed it now like you say.
BTW: So, maybe I must to update all the packages from the Xorg family. For example if I have currently installed the "xlibmesa-gl" version "4.3.0.dfsg.1-14sarge1" mean that also this package I must upgrade ?? And if your answer is yes, there are any way to see which of this Xorg family package I have installed and not missing no one ??

 Thank you,
        Gustavo
/* _X_SENTINEL BS */
#if defined(__GNUC__) && (__GNUC__ >= 4)
# define _X_SENTINEL(x) __attribute__ ((__sentinel__(x)))
# define _X_ATTRIBUTE_PRINTF(x,y) __attribute__((__format__(__printf__,x,y)))
#else
# define _X_SENTINEL(x)
# define _X_ATTRIBUTE_PRINTF(x,y)
#endif /* GNUC >= 4 */

If you don't want to install the newer x-dev package from backports,
then "fixing" Xlib.h by sticking this at the beginning seems fine to me
-- this is the same as the block of code in my version of Xfuncproto.h
in Sid.

regards,



--
I'm thinking.                | \\  l\\l_ //    |
   _              _         |  \\/ `/  `.|    |
 /~\\   \        //~\       | Y |   |   ||  Y |
 |  \\   \      //  |       |  \|   |   |\ /  |
 [   ||        ||   ]       \   |  o|o  | >  /
] Y  ||        ||  Y [       \___\_--_ /_/__/
|  \_|l,------.l|_/  |       /.-\(____) /--.\
|   >'          `<   |       `--(______)----'
\  (/~`--____--'~\)  /           U// U / \
 `-_>-__________-<_-'            / \  / /|
     /(_#(__)#_)\               ( .) / / ]
     \___/__\___/                `.`' /   [
      /__`--'__\                  |`-'    |
   /\(__,>-~~ __)                 |       |__
/\//\\(  `--~~ )                 _l       |--:.
'\/  <^\      /^>               |  `   (  <   \\
     _\ >-__-< /_             ,-\  ,-~~->. \   `:.___,/
    (___\    /___)           (____/    (____)    `---'



Reply to: