[xorg-bugzilla-noise] [Bug 1102] New: AIX compile error in Xprint
extension (redefined macro)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Aug 16 14:32:57 PDT 2004
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://freedesktop.org/bugzilla/show_bug.cgi?id=1102
Summary: AIX compile error in Xprint extension (redefined macro)
Product: xorg
Version: CVS_head
Platform: Other
OS/Version: AIX
Status: NEW
Severity: blocker
Priority: P2
Component: Server/general
AssignedTo: xorg-bugzilla-noise at freedesktop.org
ReportedBy: mcnichol at austin.ibm.com
CC: kem at freedesktop.org
Here is the error I am seeing:
rm -f PsPixmap.o
xlc -c -O -D__STR31__ -DNDEBUG -I. -I../../cfb -I../../mi -
I../../mfb -I../../../../lib -I../../../../exports/include/X11 -
I../../include -I.. -I../../../../include -I../../../../include/extensions -
I../../../../include/fonts -I../../../../lib/font/include -
I../../../../lib/font/FreeType -I../../../.. -I../../../../exports/include -
DSYSV -DAIXV3 -DAIXV4 -DAIXV5 -D_ALL_SOURCE -DSHAPE -DXKB -DLBX -DXAPPGROUP -
DXCSECURITY -DTOGCUP -DDPMSExtension -DPIXPRIV -DRENDER -DRANDR -
DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE -D_IBM_LFT -DNDEBUG -DFUNCPROTO=15 -
UXFree86LOADER -DXP_PSTEXT -D_XP_PRINT_SERVER_ -DMITMISC -DXTEST -DXTRAP -
DXSYNC -DXCMISC -DXRECORD -DMITSHM -DBIGREQS -DDBE -DDPMSExtension -
DEVI -DXTESTEXT1 PsPixmap.c
"PsPixmap.c", line 82.9: 1506-213 (S) Macro name BitsPerPixel cannot be
redefined.
"PsPixmap.c", line 82.9: 1506-358 (I) "BitsPerPixel" is defined on line 552
of ../../include/servermd.h.
make: The error code from the last command is 1.
Stop.
And here is a very simple patch to fix it:
*** xc/programs/Xserver/Xprint/ps/PsPixmap.c.orig Fri Apr 23 13:57:56
2004
--- xc/programs/Xserver/Xprint/ps/PsPixmap.c Mon Aug 16 10:37:28 2004
***************
*** 79,84 ****
--- 79,87 ----
#include "Ps.h"
+ #ifdef BitsPerPixel
+ #undef BitsPerPixel
+ #endif
#define BitsPerPixel(d) (\
(1 << PixmapWidthPaddingInfo[d].padBytesLog2) * 8 / \
(PixmapWidthPaddingInfo[d].padRoundUp+1))
--
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the xorg-bugzilla-noise
mailing list