A different openjdk6 install problem
David Rowe
drowe at roden.myzen.co.uk
Tue Aug 18 02:21:35 PDT 2009
Brandon Allbery wrote:
> . . . . . . . . .
>
> What's on line 171 of that file? On my system it's
>
> > BYTE bpad1;
>
> and BYTE is also used on prior lines, so apparently my shmproto.h
> differs from yours. Can you paste lines 165-178?
>
Here is the requested chunk of
/opt/local/include/X11/extensions/shmproto.h (with line numbers)
<<<<<<<<<<<<<<<<<<<<<<<<
164
165 typedef struct _ShmCompletion {
166 BYTE type; /* always eventBase + ShmCompletion */
167 BYTE bpad0;
168 CARD16 sequenceNumber B16;
169 Drawable drawable B32;
170 CARD16 minorEvent B16;
171 BYTE majorEvent;
172 BYTE bpad1;
173 ShmSeg shmseg B32;
174 CARD32 offset B32;
175 CARD32 pad0 B32;
176 CARD32 pad1 B32;
177 CARD32 pad2 B32;
178 } xShmCompletionEvent;
179 #define sz_xShmCompletionEvent 32
>>>>>>>>>>>>>>>>>>>>>>>
It looks like my version has one more line than yours.
I have trouble understanding the error reports
<<<<<<<<<<<<<<<<<<<<<<<
Command output: /opt/local/include/X11/extensions/shmproto.h:171:
warning: data definition has no type or storage class
/opt/local/include/X11/extensions/shmproto.h:172: error: syntax error
before 'bpad1'
/opt/local/include/X11/extensions/shmproto.h:172: warning: type defaults
to 'int' in declaration of 'bpad1'
/opt/local/include/X11/extensions/shmproto.h:172: warning: data
definition has no type or storage class
/opt/local/include/X11/extensions/shmproto.h:173: error: syntax error
before 'shmseg'
/opt/local/include/X11/extensions/shmproto.h:173: warning: type defaults
to 'int' in declaration of 'B32'
/opt/local/include/X11/extensions/shmproto.h:173: warning: data
definition has no type or storage class
/opt/local/include/X11/extensions/shmproto.h:174: error: syntax error
before 'offset'
/opt/local/include/X11/extensions/shmproto.h:174: warning: type defaults
to 'int' in declaration of 'B32'
/opt/local/include/X11/extensions/shmproto.h:174: warning: data
definition has no type or storage class
/opt/local/include/X11/extensions/shmproto.h:175: error: syntax error
before 'pad0'
/opt/local/include/X11/extensions/shmproto.h:175: warning: type defaults
to 'int' in declaration of 'B32'
/opt/local/include/X11/extensions/shmproto.h:175: warning: data
definition has no type or storage class
/opt/local/include/X11/extensions/shmproto.h:176: error: syntax error
before 'pad1'
/opt/local/include/X11/extensions/shmproto.h:176: warning: type defaults
to 'int' in declaration of 'B32'
/opt/local/include/X11/extensions/shmproto.h:176: warning: data
definition has no type or storage class
/opt/local/include/X11/extensions/shmproto.h:177: error: syntax error
before 'pad2'
/opt/local/include/X11/extensions/shmproto.h:177: warning: type defaults
to 'int' in declaration of 'B32'
/opt/local/include/X11/extensions/shmproto.h:177: warning: data
definition has no type or storage class
/opt/local/include/X11/extensions/shmproto.h:178: warning: type defaults
to 'int' in declaration of 'xShmCompletionEvent'
/opt/local/include/X11/extensions/shmproto.h:178: warning: data
definition has no type or storage class
>>>>>>>>>>>>>>>>>>>>>>>>>>
The type 'BYTE' in line 171 (et.al.) might be a issue - I can't see
where it is defined - but it didn't cause any problems on lines 166 &
167 (and earlier in the file).
I probably need to dig out my copy of K&R to follow this.
Does it make sense to you?
David Rowe
More information about the macports-users
mailing list