Bug#649866: libx11-dev: #include<X11/Xlibint.h> -> compilation error: expected initializer before _X_NORETURN
Package: libx11-dev
Version: 2:1.4.4-2
Severity: important
The trivial C code:
#include <X11/Xlibint.h>
int main(int argc, char *argv[])
{
return 0;
}
fails to compile with error:
In file included from foo.cpp:1:0:
/usr/include/X11/Xlibint.h:907:3: error: expected initializer before ‘_X_NORETURN’
Solution:
Xlibint.h should
#include <X11/Xfuncproto.h>
to get the definition of _X_NORETURN *and* package libx11-dev should
depend on a recent enough version of x11proto-core-dev that ships a
Xfuncproto.h that does define _X_NORETURN, i.e. ">= 7.0.17".
-- System Information:
Debian Release: 6.0.3
APT prefers stable
APT policy: (500, 'stable'), (400, 'testing'), (300, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_LU.UTF-8, LC_CTYPE=fr_LU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libx11-dev depends on:
ii libx11-6 2:1.4.4-2 X11 client-side library
ii libxau-dev 1:1.0.6-1 X11 authorisation library (develop
ii libxcb1-dev 1.6-1 X C Binding, development files
ii libxdmcp-dev 1:1.0.3-2 X11 authorisation library (develop
ii x11proto-core-dev 7.0.16-1 X11 core wire protocol and auxilia
ii x11proto-input-dev 2.0-2 X11 Input extension wire protocol
ii x11proto-kb-dev 1.0.4-1 X11 XKB extension wire protocol
ii xorg-sgml-doctools 1:1.8-2 Common tools for building X.Org SG
ii xtrans-dev 1.2.5-1 X transport library (development f
libx11-dev recommends no packages.
libx11-dev suggests no packages.
-- no debconf information
Reply to: