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

Bug#695064: conflicting declaration ‘typedef CARD8 BOOL’ in xmd.h



Package: libx11-dev:amd64
Version: 2:1.5.0-1


Hi,

I'm building a c++ application, which includes xf86vmode.h header.


I think this is part of the X11 library header files.  Here is the dpkg output:

jarrett@debian:~/$ dpkg --list libx11-dev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                Version                Architecture           Description
+++-===================================-======================-======================-============================================================================
ii  libx11-dev:amd64                    2:1.5.0-1              
amd64                  X11 client-side library (development headers)


When I compile with the g++ flag '-std=gnu++0x', I get the following error:

In file included from /usr/include/X11/extensions/xf86vmode.h:37:0,
                 from src/engine/../linux/LinuxGLWindow.h:31,
                 from src/engine/../linux/Common.h:11,
                 from src/engine/IceGraphicsEngine.h:27,
                 from src/engine/IceGraphicsEngine.cpp:8:
/usr/include/X11/Xmd.h:143:16: error: conflicting declaration ‘typedef CARD8 BOOL’


My guess is the new c++ features has a conflict or something here...

If I remove line 143 from Xmd.h, I no longer see this error.


Cheers

Jarrett


PS: the reportbug application crashed (I was using the gtk version) with
this error:

jarrett@debian:~$ reportbug
*** glibc detected *** **
Gdk:ERROR:/tmp/buildd/gtk+2.0-2.24.10/gdk/gdkregion-generic.c:1110:miUnionNonO:
assertion failed: (y1 < y2)
Aborted

Reply to: