Bug 8909 - error: applewmstr.h: No such file or directory
Summary: error: applewmstr.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:47 UTC by Peter Dyballa
Modified: 2007-03-11 14:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Proposed patch to make xserver/hw/darwin/quartz/applewm.c work on Mac OS X (670 bytes, patch)
2006-11-06 09:44 UTC, Peter Dyballa
no flags Details | Splinter Review

Description Peter Dyballa 2006-11-06 01:47:30 UTC
While compiling the X server in  xserver/hw/darwin/quartz/applewm.c these error are reported:

In file included from applewm.c:44:
./../darwin.h:50: warning: function declaration isn’t a prototype
applewm.c:46:24: error: applewmstr.h: No such file or directory
applewm.c:83: error: parse error before ‘*’ token
applewm.c:83: warning: function declaration isn’t a prototype
applewm.c: In function ‘AppleWMExtensionInit’:
applewm.c:115: error: ‘APPLEWMNAME’ undeclared (first use in this function)
applewm.c:115: error: (Each undeclared identifier is reported only once
applewm.c:115: error: for each function it appears in.)
applewm.c:116: error: ‘AppleWMNumberEvents’ undeclared (first use in this function)
applewm.c:117: error: ‘AppleWMNumberErrors’ undeclared (first use in this function)
applewm.c: In function ‘ProcAppleWMQueryVersion’:
applewm.c:184: error: ‘xAppleWMQueryVersionReply’ undeclared (first use in this function)
applewm.c:184: error: parse error before ‘rep’
applewm.c:187: error: ‘xAppleWMQueryVersionReq’ undeclared (first use in this function)
applewm.c:188: error: ‘rep’ undeclared (first use in this function)
applewm.c:191: error: ‘APPLE_WM_MAJOR_VERSION’ undeclared (first use in this function)
applewm.c:192: error: ‘APPLE_WM_MINOR_VERSION’ undeclared (first use in this function)
applewm.c:193: error: ‘APPLE_WM_PATCH_VERSION’ undeclared (first use in this function)
applewm.c: At top level:
applewm.c:263: warning: function declaration isn’t a prototype
applewm.c: In function ‘ProcAppleWMSelectInput’:
applewm.c:265: error: nested functions are disabled, use -fnested-functions to re-enable
applewm.c:265: error: syntax error before ‘*’ token
applewm.c:269: error: ‘xAppleWMSelectInputReq’ undeclared (first use in this function)
applewm.c:272: error: ‘stuff’ undeclared (first use in this function)
applewm.c: In function ‘AppleWMSendEvent’:
applewm.c:358: error: ‘xAppleWMNotifyEvent’ undeclared (first use in this function)
applewm.c:358: error: parse error before ‘se’
applewm.c:370: error: ‘se’ undeclared (first use in this function)
applewm.c: In function ‘ProcAppleWMDisableUpdate’:
applewm.c:394: error: ‘xAppleWMDisableUpdateReq’ undeclared (first use in this function)
applewm.c: In function ‘ProcAppleWMReenableUpdate’:
applewm.c:406: error: ‘xAppleWMReenableUpdateReq’ undeclared (first use in this function)
applewm.c: In function ‘ProcAppleWMSetWindowMenu’:
applewm.c:424: error: nested functions are disabled, use -fnested-functions to re-enable
applewm.c:424: error: syntax error before ‘*’ token
applewm.c:426: error: ‘xAppleWMSetWindowMenuReq’ undeclared (first use in this function)
applewm.c:428: error: ‘stuff’ undeclared (first use in this function)
applewm.c: In function ‘ProcAppleWMSetWindowMenuCheck’:
applewm.c:460: error: nested functions are disabled, use -fnested-functions to re-enable
applewm.c:460: error: syntax error before ‘*’ token
applewm.c:462: error: ‘xAppleWMSetWindowMenuCheckReq’ undeclared (first use in this function)
applewm.c:464: error: ‘stuff’ undeclared (first use in this function)
applewm.c: In function ‘ProcAppleWMSetFrontProcess’:
applewm.c:475: error: ‘xAppleWMSetFrontProcessReq’ undeclared (first use in this function)
applewm.c: In function ‘ProcAppleWMSetWindowLevel’:
applewm.c:487: error: nested functions are disabled, use -fnested-functions to re-enable
applewm.c:487: error: syntax error before ‘*’ token
applewm.c:489: warning: function declaration isn’t a prototype
applewm.c:489: warning: nested extern declaration of ‘__error’
applewm.c:491: error: ‘xAppleWMSetWindowLevelReq’ undeclared (first use in this function)
applewm.c:493: error: ‘stuff’ undeclared (first use in this function)
applewm.c:499: error: ‘AppleWMNumWindowLevels’ undeclared (first use in this function)
applewm.c: In function ‘ProcAppleWMSetCanQuit’:
applewm.c:516: error: nested functions are disabled, use -fnested-functions to re-enable
applewm.c:516: error: syntax error before ‘*’ token
applewm.c:518: error: ‘xAppleWMSetCanQuitReq’ undeclared (first use in this function)
applewm.c:520: error: ‘stuff’ undeclared (first use in this function)
applewm.c: In function ‘ProcAppleWMFrameGetRect’:
applewm.c:534: error: ‘xAppleWMFrameGetRectReply’ undeclared (first use in this function)
applewm.c:534: error: parse error before ‘rep’
applewm.c:536: error: nested functions are disabled, use -fnested-functions to re-enable
applewm.c:536: error: syntax error before ‘*’ token
applewm.c:538: error: ‘xAppleWMFrameGetRectReq’ undeclared (first use in this function)
applewm.c:539: error: ‘rep’ undeclared (first use in this function)
applewm.c:543: error: ‘stuff’ undeclared (first use in this function)
applewm.c: In function ‘ProcAppleWMFrameHitTest’:
applewm.c:567: error: ‘xAppleWMFrameHitTestReply’ undeclared (first use in this function)
applewm.c:567: error: parse error before ‘rep’
applewm.c:570: error: nested functions are disabled, use -fnested-functions to re-enable
applewm.c:570: error: syntax error before ‘*’ token
applewm.c:572: error: ‘xAppleWMFrameHitTestReq’ undeclared (first use in this function)
applewm.c:573: error: ‘rep’ undeclared (first use in this function)
applewm.c:577: error: ‘stuff’ undeclared (first use in this function)
applewm.c: In function ‘ProcAppleWMFrameDraw’:
applewm.c:600: error: nested functions are disabled, use -fnested-functions to re-enable
applewm.c:600: error: syntax error before ‘*’ token
applewm.c:603: error: ‘xAppleWMFrameDrawReq’ undeclared (first use in this function)
applewm.c:605: error: ‘stuff’ undeclared (first use in this function)
applewm.c: In function ‘ProcAppleWMDispatch’:
applewm.c:644: error: ‘X_AppleWMQueryVersion’ undeclared (first use in this function)
applewm.c:649: error: ‘AppleWMClientNotLocal’ undeclared (first use in this function)
applewm.c:653: error: ‘X_AppleWMSelectInput’ undeclared (first use in this function)
applewm.c:655: error: ‘X_AppleWMDisableUpdate’ undeclared (first use in this function)
applewm.c:657: error: ‘X_AppleWMReenableUpdate’ undeclared (first use in this function)
applewm.c:659: error: ‘X_AppleWMSetWindowMenu’ undeclared (first use in this function)
applewm.c:661: error: ‘X_AppleWMSetWindowMenuCheck’ undeclared (first use in this function)
applewm.c:663: error: ‘X_AppleWMSetFrontProcess’ undeclared (first use in this function)
applewm.c:665: error: ‘X_AppleWMSetWindowLevel’ undeclared (first use in this function)
applewm.c:667: error: ‘X_AppleWMSetCanQuit’ undeclared (first use in this function)
applewm.c:669: error: ‘X_AppleWMFrameGetRect’ undeclared (first use in this function)
applewm.c:671: error: ‘X_AppleWMFrameHitTest’ undeclared (first use in this function)
applewm.c:673: error: ‘X_AppleWMFrameDraw’ undeclared (first use in this function)
applewm.c: At top level:
applewm.c:682: error: parse error before ‘xAppleWMNotifyEvent’
applewm.c:682: warning: type defaults to ‘int’ in declaration of ‘from’
applewm.c:682: warning: type defaults to ‘int’ in declaration of ‘to’
applewm.c:682: warning: data definition has no type or storage class
applewm.c:683: error: parse error before ‘{’ token
applewm.c:686: error: parse error before ‘char’
applewm.c:687: error: parse error before ‘char’
applewm.c:687: error: parse error before ‘char’
applewm.c:687: error: parse error before ‘char’
applewm.c:688: error: parse error before ‘char’
applewm.c:688: error: parse error before ‘char’
applewm.c:688: error: parse error before ‘char’
applewm.c: In function ‘SProcAppleWMQueryVersion’:
applewm.c:697: error: nested functions are disabled, use -fnested-functions to re-enable
applewm.c:697: error: syntax error before ‘*’ token
applewm.c:698: error: ‘stuff’ undeclared (first use in this function)
applewm.c: In function ‘SProcAppleWMDispatch’:
applewm.c:711: error: ‘AppleWMClientNotLocal’ undeclared (first use in this function)
applewm.c:716: error: ‘X_AppleWMQueryVersion’ undeclared (first use in this function)


This patch makes them go away:

27c27,29
< 
---
> #ifdef HAVE_XORG_CONFIG_H
> #include <xorg-config.h>
> #endif
46c48
< #include "applewmstr.h"
---
> #include "X11/extensions/applewmstr.h"

Mac OS X 10.4.8
GCC 4.0.1
Release 7.1.99.2
Comment 1 Peter Dyballa 2006-11-06 09:44:19 UTC
Created attachment 7671 [details] [review]
Proposed patch to make xserver/hw/darwin/quartz/applewm.c work on Mac OS X
Comment 2 Peter Dyballa 2006-11-08 13:26:24 UTC
Part of this patch was originally written by Peter O'Gorman.
Comment 3 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 4 Peter Dyballa 2007-03-11 14:06:39 UTC
The errors are gone, some 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.