Bug 8912

Summary: error: applewm.h: No such file or directory
Product: xorg Reporter: Peter Dyballa <Peter_Dyballa>
Component: Server/GeneralAssignee: 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-06 01:56:04 UTC
While compiling the X server in xserver/hw/darwin/quartz/quartz.c these errors are reported:

In file included from quartz.h:37,
                 from quartz.c:34:
quartzPasteboard.h:37: warning: function declaration isn’t a prototype
quartzPasteboard.h:41: warning: function declaration isn’t a prototype
In file included from quartz.c:35:
./../darwin.h:50: warning: function declaration isn’t a prototype
quartz.c:39:21: error: applewm.h: No such file or directory
quartz.c: In function ‘DarwinModeAddScreen’:
quartz.c:87: warning: target of assignment not really an lvalue; this will be a hard error in the future
quartz.c: In function ‘DarwinModeInitOutput’:
quartz.c:136: warning: passing argument 1 of ‘RegisterBlockAndWakeupHandlers’ from incompatible 
pointer type
quartz.c: In function ‘DarwinModeProcessEvent’:
quartz.c:343: error: ‘AppleWMActivationNotify’ undeclared (first use in this function)
quartz.c:343: error: (Each undeclared identifier is reported only once
quartz.c:343: error: for each function it appears in.)
quartz.c:344: error: ‘AppleWMActivationNotifyMask’ undeclared (first use in this function)
quartz.c:345: error: ‘AppleWMIsActive’ undeclared (first use in this function)
quartz.c:351: error: ‘AppleWMIsInactive’ undeclared (first use in this function)
quartz.c:375: error: ‘AppleWMControllerNotify’ undeclared (first use in this function)
quartz.c:376: error: ‘AppleWMControllerNotifyMask’ undeclared (first use in this function)
quartz.c:382: error: ‘AppleWMPasteboardNotify’ undeclared (first use in this function)
quartz.c:383: error: ‘AppleWMPasteboardNotifyMask’ undeclared (first use in this function)

This patch makes it go away:

33,35d32
< #ifdef HAVE_XORG_CONFIG_H
< #include <xorg-config.h>
< #endif
42c39
< #include "X11/extensions/applewm.h"
---
> #include "applewm.h"

Mac OS X 10.4.8
GCC 4.0.1
Release 7.1.99.2
Comment 1 Peter Dyballa 2006-11-08 13:25:11 UTC
Part of this patch was originally written by Peter O'Gorman.
Comment 2 Daniel Stone 2007-02-27 01:34:28 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 3 Peter Dyballa 2007-03-11 14:07:33 UTC
The errors are gone, warnings are left.

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.