A different openjdk6 install problem

Brandon Allbery allbery at kf8nh.com
Mon Aug 17 16:49:04 PDT 2009


On Aug 17, 2009, at 18:43 , David Rowe wrote:
> Brandon Allbery wrote:
>> On Aug 16, 2009, at 19:32 , David Rowe wrote:
>>> ../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c: In function  
>>> 'J2DXErrHandler':
>>> ../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:966: error:  
>>> 'X_ShmAttach' undeclared (first use in this function)
>>> ../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:966: error:  
>>> (Each undeclared identifier is reported only once
>>> ../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:966: error:  
>>> for each function it appears in.)
>>
>> Er, this error doesn't mean X_ShmAttach wasn't found, it means the  
>> source file didn't #include the appropriate #include file.  Since  
>> there's no error about a missing #include file, this is a  
>> (compatibility?) error in the source.
>>
> Well I am not sure I know exactly what I am doing - but following  
> the clue from Brandon Allbery (thanks Brandon), I found that  
> X_ShmAttach is defined in /opt/local/include/X11/extensions/shmproto.h
>
> 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


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?

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090817/9b2586ce/attachment.bin>


More information about the macports-users mailing list