Summary: | xserver/include/dix-config.h:415:1: warning: "X_BYTE_ORDER" redefined | ||
---|---|---|---|
Product: | xorg | Reporter: | Peter Dyballa <Peter_Dyballa> |
Component: | Server/General | Assignee: | Xorg Project Team <xorg-team> |
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> |
Severity: | normal | ||
Priority: | high | ||
Version: | 7.1 (2006.05) | ||
Hardware: | PowerPC | ||
OS: | Mac OS X (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Peter Dyballa
2006-11-05 13:50:03 UTC
the transformation is not at all erroneous, it's entirely intentional. Xarch.h safeguards by checking if X_BYTE_ORDER is already defined, and doesn't redefine if so. dix-config.h should always be included by any other header, so which file is it that includes dix-config.h after Xarch.h? This is the sequence of warnings when compiling miext/rootless/safeAlpha/safeAlphaWindow.c:
In file included from ./../rootlessCommon.h:32,
from safeAlphaWindow.c:37:
../../../include/dix-config.h:415:1: warning: "X_BYTE_ORDER" redefined
In file included from ../../../include/pixmapstr.h:51,
from ../../../fb/fb.h:31,
from safeAlphaWindow.c:35:
/usr/X11R7/include/X11/Xarch.h:120:1: warning: this is the location of the previous definition
The original C file produces two other errors:
In file included from safeAlphaWindow.c:37:
./../rootlessCommon.h:99: error: parse error before 'SetShapeProcPtr'
./../rootlessCommon.h:99: warning: no semicolon at end of struct or union
./../rootlessCommon.h:111: error: parse error before ':' token
./../rootlessCommon.h:112: error: parse error before ':' token
./../rootlessCommon.h:113: error: parse error before ':' token
./../rootlessCommon.h:114: warning: type defaults to 'int' in declaration of 'RootlessScreenRec'
./../rootlessCommon.h:114: warning: type defaults to 'int' in declaration of 'RootlessScreenPtr'
./../rootlessCommon.h:114: warning: data definition has no type or storage class
When I add a patch from another Mac OS X user
34a35,38
>
> #ifdef HAVE_DIX_CONFIG_H
> #include <dix-config.h>
> #endif
it seems to compile fine ... He recommends some more of these simple patches to files in the miext tree.
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future. Does not appear again. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.