Error when compiling corba orb files
Shea Levy
shea at shealevy.com
Wed Jan 12 05:40:01 PST 2011
I had the same error when I was compiling OpenJDK6 b20. I think the
Oracle JDK 6 update 21 or 22 might have dropped the
compactObjectToString method from the ObjectUtility class, since
recompiling with JDK 6 update 20 as my bootstrap jdk solved this problem.
Cheers,
Shea
On 1/12/11 5:24 AM, Thomas Anderson wrote:
> I notice it seems because ObjectUtility.java is not yet compiled
> because `ls build/linux-i586/corba/classes/com/sun/corba/se/impl/orbutil/'
> only shows a folder existed.
>
> resources
>
> What is the right command to compile corba manually before calling to
> compile OperationFactory.java? Or any way to change the order of
> classes compilation?
>
> Thanks.
>
> On Wed, Jan 12, 2011 at 12:02 AM, Kelly O'Hair<kelly.ohair at oracle.com> wrote:
>> Someone reported this a while back on Fedora 12, I think the recommendation
>> was
>> to try Fedora 14, but I don't know what the results were.
>>
>> -kto
>>
>> On Jan 11, 2011, at 2:29 AM, Thomas Anderson wrote:
>>
>>> I download openjdk 6 source from
>>> http://download.java.net/openjdk/jdk6/ and follow README-builds.html
>>> to build jdk from source. But the make result shows the error as
>>> below:
>>>
>>> # Running javac:
>>> /usr/lib/jvm/java-6-openjdk/bin/java -client -Xmx896m -Xms128m
>>> -XX:PermSize=32m -XX:MaxPermSize=160m
>>>
>>> -Xbootclasspath/p:/home/clin/openjdk6/build/linux-i586/langtools/dist/bootstrap/lib/javac.jar
>>> -jar
>>> /home/clin/openjdk6/build/linux-i586/langtools/dist/bootstrap/lib/javac.jar
>>> -XDignore.symbol.file=true -source 1.5 -target 5 -encoding ascii
>>> -classpath /usr/lib/jvm/java-6-openjdk/lib/tools.jar -sourcepath
>>>
>>> /home/clin/openjdk6/build/linux-i586/corba/gensrc:../../../../../../src/solaris/classes:../../../../../../src/share/classes
>>> -d /home/clin/openjdk6/build/linux-i586/corba/classes
>>>
>>> @/home/clin/openjdk6/build/linux-i586/corba/tmp/sun/com.sun.corba.se.impl.corespi/.classes.list
>>>
>>> ../../../../../../src/share/classes/com/sun/corba/se/spi/orb/OperationFactory.java:449:
>>> cannot find symbol
>>> symbol : method
>>> compactObjectToString(com.sun.corba.se.spi.orb.Operation[])
>>> location: class com.sun.corba.se.impl.orbutil.ObjectUtility
>>> ObjectUtility.compactObjectToString(actions) + ")" ;
>>> ^
>>>
>>> ../../../../../../src/share/classes/com/sun/corba/se/spi/orb/OperationFactory.java:536:
>>> cannot find symbol
>>> symbol : method
>>> compactObjectToString(com.sun.corba.se.spi.orb.Operation[])
>>> location: class com.sun.corba.se.impl.orbutil.ObjectUtility
>>> ObjectUtility.compactObjectToString(op) + ")" ;
>>> ^
>>>
>>> ../../../../../../src/share/classes/com/sun/corba/se/spi/orb/ParserImplBase.java:128:
>>> cannot find symbol
>>> symbol : method compactObjectToString(java.lang.Object)
>>> location: class com.sun.corba.se.impl.orbutil.ObjectUtility
>>> ObjectUtility.compactObjectToString(value) ) ;
>>> ^
>>> Note: Some input files use unchecked or unsafe operations.
>>> Note: Recompile with -Xlint:unchecked for details.
>>>
>>> The command used to build the source is exactly the same as described
>>> in README-builds.html#debian
>>>
>>> What might be the root cause or how to solve this problem?
>>>
>>> Environment: GNU Make 3.81, GNU/ Linux Debian (kernel 2.6.35.4), gcc
>>> (Debian 4.4.5-8) 4.4.5
>>>
>>> Thanks.
>>
More information about the jdk6-dev
mailing list