Bug 8912 - error: applewm.h: No such file or directory
Summary: error: applewm.h: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.1 (2006.05)
Hardware: PowerPC Mac OS X (All)
: high normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-06 01:56 UTC by Peter Dyballa
Modified: 2007-03-11 14:07 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.