Bug 8908

Summary: error: ‘struct _Pixmap’ has no member named ‘devPrivates’
Product: xorg Reporter: Peter Dyballa <Peter_Dyballa>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED INVALID 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:
Attachments:
Description Flags
Proposed patch to make xserver/hw/darwin/quartz/xpr/dri.c work on Mac OS X none

Description Peter Dyballa 2006-11-06 01:41:57 UTC
While making the X server in xserver/hw/darwin/quartz/xpr/dri.c these errors are reported:

dri.c: In function ‘DRIExtensionInit’:
dri.c:271: warning: implicit declaration of function ‘AllocatePixmapPrivateIndex’
dri.c:271: warning: nested extern declaration of ‘AllocatePixmapPrivateIndex’
dri.c: In function ‘DRICreateSurface’:
dri.c:425: error: ‘struct _Pixmap’ has no member named ‘devPrivates’
dri.c:450: error: ‘struct _Pixmap’ has no member named ‘devPrivates’
dri.c: In function ‘DRIDestroySurface’:
dri.c:521: error: ‘struct _Pixmap’ has no member named ‘devPrivates’
dri.c: In function ‘DRIDrawablePrivDelete’:
dri.c:555: error: ‘struct _Pixmap’ has no member named ‘devPrivates’
dri.c:579: error: ‘struct _Pixmap’ has no member named ‘devPrivates’
{standard input}:593:non-relocatable subtraction expression, "_DRIDrawablePrivResType" minus 
"L00000000005$pb"
{standard input}:593:symbol: "_DRIDrawablePrivResType" can't be undefined in a subtraction expression
{standard input}:592:non-relocatable subtraction expression, "_DRIDrawablePrivResType" minus 
"L00000000005$pb"
{standard input}:592:symbol: "_DRIDrawablePrivResType" can't be undefined in a subtraction expression

This patch makes it go away:

40,42d39
< #ifdef HAVE_XORG_CONFIG_H
< #include <xorg-config.h>
< #endif

Mac OS X 10.4.8
GCC 4.0.1
Release 7.1.99.2
Comment 1 Peter Dyballa 2006-11-06 09:45:42 UTC
Created attachment 7672 [details] [review]
Proposed patch to make xserver/hw/darwin/quartz/xpr/dri.c work on Mac OS X
Comment 2 Peter Dyballa 2006-11-08 13:24:04 UTC
This patch was originally written by Peter O'Gorman.
Comment 3 Peter Dyballa 2006-11-08 13:27:01 UTC
This patch was originally written by Peter O'Gorman.
Comment 4 Daniel Stone 2007-02-27 01:34:27 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 5 Peter Dyballa 2007-03-12 04:26:25 UTC
Building XDarwin with --disable-glx because GLX is not supported in XDarwin, I can't reproduce this. So let's assume this all my fault.

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.