Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Source Java 6 Developer Preview Release



Landon Fuller wrote:

On Nov 21, 2007, at 1:01 PM, Ralph Martin wrote:

/usr/include/sys/types.h: At global scope:
/usr/include/sys/types.h:91: error: declaration does not declare
anything
/usr/include/sys/types.h:92: error: multiple types in one declaration
/usr/include/sys/types.h:92: error: declaration does not declare
anything

On my system, those two lines are: typedef unsigned short ushort; /* Sys V compatibility */ typedef unsigned int uint; /* Sys V compatibility */

These #defines could cause the error you're seeing, but I don't know
why your compiles would fail while other's work fine.
landonf@max:Documents/Code/Java/javasrc_1_6_jrl> grep '^#define' j2se/
src/share/native/com/sun/java/util/jar/pack/zip.h
#define ushort unsigned short
#define uint unsigned int


You might try commenting those out, and trying to see how they are
evaluated prior to sys/types.h on your system

Try running the C compiler with -E, which will place the C preprocessor output into the output file, then look to see what it did to those two typedefs.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden


This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.