Bug 8919 - error: too few arguments to function ‘InitPointerDeviceStruct’
Summary: error: too few arguments to function ‘InitPointerDeviceStruct’
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:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-06 07:55 UTC by Peter Dyballa
Modified: 2006-11-30 16:38 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Proposed patch to make xserver/hw/xprint/ddxInit.c work on Mac OS X (444 bytes, patch)
2006-11-06 09:37 UTC, Peter Dyballa
no flags Details | Splinter Review

Description Peter Dyballa 2006-11-06 07:55:48 UTC
When making the X server in xserver/hw/xprint/ddxInit.c these errors are reported:

ddxInit.c: In function ‘PointerProc’:
ddxInit.c:161: warning: ‘miPointerGetMotionBufferSize’ is deprecated (declared at ../../include/../mi/
mipointer.h:105)
ddxInit.c:161: error: too few arguments to function ‘InitPointerDeviceStruct’
ddxInit.c: At top level:
ddxInit.c:210: warning: no previous prototype for ‘DarwinHandleGUI’
ddxInit.c:214: warning: no previous prototype for ‘DarwinGlxExtensionInit’
ddxInit.c:220: warning: no previous prototype for ‘DarwinGlxWrapInitVisuals’
ddxInit.c:294: warning: no previous prototype for ‘ChangePointerDevice’
ddxInit.c:334: warning: no previous prototype for ‘ChangeKeyboardDevice’
{standard input}:103:non-relocatable subtraction expression, "_printModMap" minus "L00000000002
$pb"
{standard input}:103:symbol: "_printModMap" can't be undefined in a subtraction expression
{standard input}:102:non-relocatable subtraction expression, "_printModMap" minus "L00000000002
$pb"
{standard input}:102:symbol: "_printModMap" can't be undefined in a subtraction expression
{standard input}:91:non-relocatable subtraction expression, "_printKeyMap" minus "L00000000002$pb"
{standard input}:91:symbol: "_printKeyMap" can't be undefined in a subtraction expression
{standard input}:90:non-relocatable subtraction expression, "_printKeyMap" minus "L00000000002$pb"
{standard input}:90:symbol: "_printKeyMap" can't be undefined in a subtraction expression
make[3]: *** [Xprt-ddxInit.o] Error 1

This patch corrects it:

161c161,162
< 				      miPointerGetMotionBufferSize());
---
> 				      miPointerGetMotionBufferSize(),
> 				      2);

Mac OS X 10.4.8
GCC 4.0.1
Release 7.1.99.2
Comment 1 Peter Dyballa 2006-11-06 09:37:58 UTC
Created attachment 7668 [details] [review]
Proposed patch to make xserver/hw/xprint/ddxInit.c work on Mac OS X
Comment 2 Daniel Stone 2006-11-30 16:38:29 UTC
it's still broken in a few ways, but has been fixed otherwise


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.