GNOME Bugzilla – Bug 443989
gnome-speech 0.4.13 compile failure
Last modified: 2007-06-04 23:33:29 UTC
make[2]: Entering directory `/usr/src/gnome-speech-0.4.13/java' /usr/lib/j2sdk/bin/javac -source 1.4 org/GNOME/Speech/*.java org/GNOME/Speech/SpeakerOperations.java:11: package org.GNOME.Bonobo does not exist public interface SpeakerOperations extends org.GNOME.Bonobo.UnknownOperations ^ org/GNOME/Speech/Speaker.java:11: package org.GNOME.Bonobo does not exist public interface Speaker extends SpeakerOperations, org.GNOME.Bonobo.Unknown, org.omg.CORBA.portable.IDLEntity ^ org/GNOME/Speech/SpeechCallbackOperations.java:11: package org.GNOME.Bonobo does not exist public interface SpeechCallbackOperations extends org.GNOME.Bonobo.UnknownOperations ^ org/GNOME/Speech/SpeechCallback.java:11: package org.GNOME.Bonobo does not exist public interface SpeechCallback extends SpeechCallbackOperations, org.GNOME.Bonobo.Unknown, org.omg.CORBA.portable.IDLEntity ^ org/GNOME/Speech/SpeakerPOATie.java:119: package org.GNOME.Bonobo does not exist public org.GNOME.Bonobo.Unknown queryInterface (String repoid) ^ org/GNOME/Speech/SpeechCallbackPOATie.java:73: package org.GNOME.Bonobo does not exist public org.GNOME.Bonobo.Unknown queryInterface (String repoid) ^ org/GNOME/Speech/SynthesisDriverOperations.java:11: package org.GNOME.Bonobo does not exist public interface SynthesisDriverOperations extends org.GNOME.Bonobo.UnknownOperations ^ org/GNOME/Speech/SynthesisDriver.java:11: package org.GNOME.Bonobo does not exist public interface SynthesisDriver extends SynthesisDriverOperations, org.GNOME.Bonobo.Unknown, org.omg.CORBA.portable.IDLEntity ^ org/GNOME/Speech/SynthesisDriverPOATie.java:121: package org.GNOME.Bonobo does not exist public org.GNOME.Bonobo.Unknown queryInterface (String repoid) ^ org/GNOME/Speech/_SpeakerStub.java:254: package org.GNOME.Bonobo does not exist public org.GNOME.Bonobo.Unknown queryInterface (String repoid) ^ org/GNOME/Speech/_SpeechCallbackStub.java:92: package org.GNOME.Bonobo does not exist public org.GNOME.Bonobo.Unknown queryInterface (String repoid) ^ org/GNOME/Speech/_SynthesisDriverStub.java:252: package org.GNOME.Bonobo does not exist public org.GNOME.Bonobo.Unknown queryInterface (String repoid) ^ org/GNOME/Speech/SpeakerPOA.java:145: cannot find symbol symbol : method ref() location: class org.GNOME.Speech.SpeakerPOA this.ref (); ^ org/GNOME/Speech/SpeakerPOA.java:158: cannot find symbol symbol : method unref() location: class org.GNOME.Speech.SpeakerPOA this.unref (); ^ org/GNOME/Speech/SpeakerPOA.java:175: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = null; ^ org/GNOME/Speech/SpeakerPOA.java:176: cannot find symbol symbol : method queryInterface(java.lang.String) location: class org.GNOME.Speech.SpeakerPOA $result = this.queryInterface (repoid); ^ org/GNOME/Speech/SpeakerPOA.java:178: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.UnknownHelper.write (out, $result); ^ org/GNOME/Speech/SpeakerPOATie.java:96: cannot find symbol symbol : method ref() location: interface org.GNOME.Speech.SpeakerOperations _impl.ref(); ^ org/GNOME/Speech/SpeakerPOATie.java:107: cannot find symbol symbol : method unref() location: interface org.GNOME.Speech.SpeakerOperations _impl.unref(); ^ org/GNOME/Speech/SpeakerPOATie.java:121: cannot find symbol symbol : method queryInterface(java.lang.String) location: interface org.GNOME.Speech.SpeakerOperations return _impl.queryInterface(repoid); ^ org/GNOME/Speech/SpeechCallbackPOA.java:55: cannot find symbol symbol : method ref() location: class org.GNOME.Speech.SpeechCallbackPOA this.ref (); ^ org/GNOME/Speech/SpeechCallbackPOA.java:68: cannot find symbol symbol : method unref() location: class org.GNOME.Speech.SpeechCallbackPOA this.unref (); ^ org/GNOME/Speech/SpeechCallbackPOA.java:85: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = null; ^ org/GNOME/Speech/SpeechCallbackPOA.java:86: cannot find symbol symbol : method queryInterface(java.lang.String) location: class org.GNOME.Speech.SpeechCallbackPOA $result = this.queryInterface (repoid); ^ org/GNOME/Speech/SpeechCallbackPOA.java:88: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.UnknownHelper.write (out, $result); ^ org/GNOME/Speech/SpeechCallbackPOATie.java:50: cannot find symbol symbol : method ref() location: interface org.GNOME.Speech.SpeechCallbackOperations _impl.ref(); ^ org/GNOME/Speech/SpeechCallbackPOATie.java:61: cannot find symbol symbol : method unref() location: interface org.GNOME.Speech.SpeechCallbackOperations _impl.unref(); ^ org/GNOME/Speech/SpeechCallbackPOATie.java:75: cannot find symbol symbol : method queryInterface(java.lang.String) location: interface org.GNOME.Speech.SpeechCallbackOperations return _impl.queryInterface(repoid); ^ org/GNOME/Speech/SynthesisDriverPOA.java:144: cannot find symbol symbol : method ref() location: class org.GNOME.Speech.SynthesisDriverPOA this.ref (); ^ org/GNOME/Speech/SynthesisDriverPOA.java:157: cannot find symbol symbol : method unref() location: class org.GNOME.Speech.SynthesisDriverPOA this.unref (); ^ org/GNOME/Speech/SynthesisDriverPOA.java:174: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = null; ^ org/GNOME/Speech/SynthesisDriverPOA.java:175: cannot find symbol symbol : method queryInterface(java.lang.String) location: class org.GNOME.Speech.SynthesisDriverPOA $result = this.queryInterface (repoid); ^ org/GNOME/Speech/SynthesisDriverPOA.java:177: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.UnknownHelper.write (out, $result); ^ org/GNOME/Speech/SynthesisDriverPOATie.java:98: cannot find symbol symbol : method ref() location: interface org.GNOME.Speech.SynthesisDriverOperations _impl.ref(); ^ org/GNOME/Speech/SynthesisDriverPOATie.java:109: cannot find symbol symbol : method unref() location: interface org.GNOME.Speech.SynthesisDriverOperations _impl.unref(); ^ org/GNOME/Speech/SynthesisDriverPOATie.java:123: cannot find symbol symbol : method queryInterface(java.lang.String) location: interface org.GNOME.Speech.SynthesisDriverOperations return _impl.queryInterface(repoid); ^ org/GNOME/Speech/_SpeakerStub.java:261: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = org.GNOME.Bonobo.UnknownHelper.read ($in); ^ org/GNOME/Speech/_SpeakerStub.java:261: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = org.GNOME.Bonobo.UnknownHelper.read ($in); ^ org/GNOME/Speech/_SpeechCallbackStub.java:99: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = org.GNOME.Bonobo.UnknownHelper.read ($in); ^ org/GNOME/Speech/_SpeechCallbackStub.java:99: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = org.GNOME.Bonobo.UnknownHelper.read ($in); ^ org/GNOME/Speech/_SynthesisDriverStub.java:259: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = org.GNOME.Bonobo.UnknownHelper.read ($in); ^ org/GNOME/Speech/_SynthesisDriverStub.java:259: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = org.GNOME.Bonobo.UnknownHelper.read ($in); ^ 42 errors make[2]: Leaving directory `/usr/src/gnome-speech-0.4.13/java' make[2]: *** [org/GNOME/Speech/*.class] Error 1 make[1]: Leaving directory `/usr/src/gnome-speech-0.4.13' make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
I'm not sure this is specific to 0.4.13 since very little has changed in this space for a long time. I definitely compiled and tested this on my Ubuntu machine with Sun's Java(TM) SE Runtime Environment (build 1.6.0-b105). As for what might be going wrong on your machine, I don't know. What parameters did you pass to ./configure? What was the output of ./configure? In addition,is it possible you might not have the prerequisites for building the gnome-speech Java support? Here's the relevant section from the the gnome-speech README: "2.3 GNOME Speech Java Package =============================================================================== If the Java SDK version 1.4.1 is detected when building GNOME Speech, gnome-speech.jar is built. This Java package requires code from the java-access-bridge module, and is required to build GNOME Speech drivers written in the Java(tm) programming language." Finally, if configure.in patches are needed, I'm happy to accept them! :-)
Created attachment 89346 [details] complete compile log with config.log attached at the end.
That is why then I don't have java-access-bridge installed, and didn't have java installed when I compiled 0.4.12. If it is auto detecting and doesn't find java-access-bridge shouldn't it not do the java compile then?
I tried adding --without-java-home and --with-java-home=no and it still tries to compile the java.
(In reply to comment #3) > That is why then I don't have java-access-bridge installed, and didn't have > java installed when I compiled 0.4.12. > > If it is auto detecting and doesn't find java-access-bridge shouldn't it not do > the java compile then? > The fact that you didn't have Java before and now have it might be the problem. But, even if I delete the java-access-bridge, I still cannot seem to reproduce the problem you are seeing. So, this is very strange. I'm not sure what's going on here. What kind of machine are you running this on? Can you also try doing some things by hand from your gnome-speech java directory? idlj -emitAll -i /usr/share/idl/bonobo-activation-2.0 -i ../idl -pkgPrefix GNOME org -pkgPrefix Bonobo org.GNOME -fallTie ../idl/GNOME_Speech_SynthesisDriver.idl javac -source 1.4 org/GNOME/Speech/*.java find org/GNOME/Bonobo/ I'm not sure how much they will help.
root@pheuri:/usr/src/gnome-speech-0.4.13/java# idlj -emitAll -i /usr/share/idl/bonobo-activation-2.0 -i ../idl -pkgPrefix GNOME org -pkgPrefix Bonobo org.GNOME -fallTie ../idl/GNOME_Speech_SynthesisDriver.idl root@pheuri:/usr/src/gnome-speech-0.4.13/java# javac -source 1.4 org/GNOME/Speech/*.java org/GNOME/Speech/SpeakerOperations.java:11: package org.GNOME.Bonobo does not exist public interface SpeakerOperations extends org.GNOME.Bonobo.UnknownOperations ^ org/GNOME/Speech/Speaker.java:11: package org.GNOME.Bonobo does not exist public interface Speaker extends SpeakerOperations, org.GNOME.Bonobo.Unknown, org.omg.CORBA.portable.IDLEntity ^ org/GNOME/Speech/SpeechCallbackOperations.java:11: package org.GNOME.Bonobo does not exist public interface SpeechCallbackOperations extends org.GNOME.Bonobo.UnknownOperations ^ org/GNOME/Speech/SpeechCallback.java:11: package org.GNOME.Bonobo does not exist public interface SpeechCallback extends SpeechCallbackOperations, org.GNOME.Bonobo.Unknown, org.omg.CORBA.portable.IDLEntity ^ org/GNOME/Speech/SpeakerPOATie.java:119: package org.GNOME.Bonobo does not exist public org.GNOME.Bonobo.Unknown queryInterface (String repoid) ^ org/GNOME/Speech/_SpeakerStub.java:254: package org.GNOME.Bonobo does not exist public org.GNOME.Bonobo.Unknown queryInterface (String repoid) ^ org/GNOME/Speech/SpeechCallbackPOATie.java:73: package org.GNOME.Bonobo does not exist public org.GNOME.Bonobo.Unknown queryInterface (String repoid) ^ org/GNOME/Speech/_SpeechCallbackStub.java:92: package org.GNOME.Bonobo does not exist public org.GNOME.Bonobo.Unknown queryInterface (String repoid) ^ org/GNOME/Speech/SynthesisDriverOperations.java:11: package org.GNOME.Bonobo does not exist public interface SynthesisDriverOperations extends org.GNOME.Bonobo.UnknownOperations ^ org/GNOME/Speech/SynthesisDriver.java:11: package org.GNOME.Bonobo does not exist public interface SynthesisDriver extends SynthesisDriverOperations, org.GNOME.Bonobo.Unknown, org.omg.CORBA.portable.IDLEntity ^ org/GNOME/Speech/SynthesisDriverPOATie.java:121: package org.GNOME.Bonobo does not exist public org.GNOME.Bonobo.Unknown queryInterface (String repoid) ^ org/GNOME/Speech/_SynthesisDriverStub.java:252: package org.GNOME.Bonobo does not exist public org.GNOME.Bonobo.Unknown queryInterface (String repoid) ^ org/GNOME/Speech/SpeakerPOA.java:145: cannot find symbol symbol : method ref() location: class org.GNOME.Speech.SpeakerPOA this.ref (); ^ org/GNOME/Speech/SpeakerPOA.java:158: cannot find symbol symbol : method unref() location: class org.GNOME.Speech.SpeakerPOA this.unref (); ^ org/GNOME/Speech/SpeakerPOA.java:175: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = null; ^ org/GNOME/Speech/SpeakerPOA.java:176: cannot find symbol symbol : method queryInterface(java.lang.String) location: class org.GNOME.Speech.SpeakerPOA $result = this.queryInterface (repoid); ^ org/GNOME/Speech/SpeakerPOA.java:178: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.UnknownHelper.write (out, $result); ^ org/GNOME/Speech/SpeakerPOATie.java:96: cannot find symbol symbol : method ref() location: interface org.GNOME.Speech.SpeakerOperations _impl.ref(); ^ org/GNOME/Speech/SpeakerPOATie.java:107: cannot find symbol symbol : method unref() location: interface org.GNOME.Speech.SpeakerOperations _impl.unref(); ^ org/GNOME/Speech/SpeakerPOATie.java:121: cannot find symbol symbol : method queryInterface(java.lang.String) location: interface org.GNOME.Speech.SpeakerOperations return _impl.queryInterface(repoid); ^ org/GNOME/Speech/_SpeakerStub.java:261: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = org.GNOME.Bonobo.UnknownHelper.read ($in); ^ org/GNOME/Speech/_SpeakerStub.java:261: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = org.GNOME.Bonobo.UnknownHelper.read ($in); ^ org/GNOME/Speech/SpeechCallbackPOA.java:55: cannot find symbol symbol : method ref() location: class org.GNOME.Speech.SpeechCallbackPOA this.ref (); ^ org/GNOME/Speech/SpeechCallbackPOA.java:68: cannot find symbol symbol : method unref() location: class org.GNOME.Speech.SpeechCallbackPOA this.unref (); ^ org/GNOME/Speech/SpeechCallbackPOA.java:85: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = null; ^ org/GNOME/Speech/SpeechCallbackPOA.java:86: cannot find symbol symbol : method queryInterface(java.lang.String) location: class org.GNOME.Speech.SpeechCallbackPOA $result = this.queryInterface (repoid); ^ org/GNOME/Speech/SpeechCallbackPOA.java:88: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.UnknownHelper.write (out, $result); ^ org/GNOME/Speech/SpeechCallbackPOATie.java:50: cannot find symbol symbol : method ref() location: interface org.GNOME.Speech.SpeechCallbackOperations _impl.ref(); ^ org/GNOME/Speech/SpeechCallbackPOATie.java:61: cannot find symbol symbol : method unref() location: interface org.GNOME.Speech.SpeechCallbackOperations _impl.unref(); ^ org/GNOME/Speech/SpeechCallbackPOATie.java:75: cannot find symbol symbol : method queryInterface(java.lang.String) location: interface org.GNOME.Speech.SpeechCallbackOperations return _impl.queryInterface(repoid); ^ org/GNOME/Speech/_SpeechCallbackStub.java:99: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = org.GNOME.Bonobo.UnknownHelper.read ($in); ^ org/GNOME/Speech/_SpeechCallbackStub.java:99: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = org.GNOME.Bonobo.UnknownHelper.read ($in); ^ org/GNOME/Speech/SynthesisDriverPOA.java:144: cannot find symbol symbol : method ref() location: class org.GNOME.Speech.SynthesisDriverPOA this.ref (); ^ org/GNOME/Speech/SynthesisDriverPOA.java:157: cannot find symbol symbol : method unref() location: class org.GNOME.Speech.SynthesisDriverPOA this.unref (); ^ org/GNOME/Speech/SynthesisDriverPOA.java:174: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = null; ^ org/GNOME/Speech/SynthesisDriverPOA.java:175: cannot find symbol symbol : method queryInterface(java.lang.String) location: class org.GNOME.Speech.SynthesisDriverPOA $result = this.queryInterface (repoid); ^ org/GNOME/Speech/SynthesisDriverPOA.java:177: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.UnknownHelper.write (out, $result); ^ org/GNOME/Speech/SynthesisDriverPOATie.java:98: cannot find symbol symbol : method ref() location: interface org.GNOME.Speech.SynthesisDriverOperations _impl.ref(); ^ org/GNOME/Speech/SynthesisDriverPOATie.java:109: cannot find symbol symbol : method unref() location: interface org.GNOME.Speech.SynthesisDriverOperations _impl.unref(); ^ org/GNOME/Speech/SynthesisDriverPOATie.java:123: cannot find symbol symbol : method queryInterface(java.lang.String) location: interface org.GNOME.Speech.SynthesisDriverOperations return _impl.queryInterface(repoid); ^ org/GNOME/Speech/_SynthesisDriverStub.java:259: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = org.GNOME.Bonobo.UnknownHelper.read ($in); ^ org/GNOME/Speech/_SynthesisDriverStub.java:259: package org.GNOME.Bonobo does not exist org.GNOME.Bonobo.Unknown $result = org.GNOME.Bonobo.UnknownHelper.read ($in); ^ 42 errors root@pheuri:/usr/src/gnome-speech-0.4.13/java# root@pheuri:/usr/src/gnome-speech-0.4.13/java# find org/GNOME/Bonobo/ org/GNOME/Bonobo/ org/GNOME/Bonobo/UnknownPOATie.java org/GNOME/Bonobo/UnknownPOA.java org/GNOME/Bonobo/_UnknownStub.java org/GNOME/Bonobo/UnknownHolder.java org/GNOME/Bonobo/UnknownHelper.java org/GNOME/Bonobo/Unknown.java org/GNOME/Bonobo/UnknownOperations.java
How about "echo $CLASSPATH"? Can you think of anything else you might have done above and beyond the Java installation?
This is on a dual athlon-mp system with 2 gigs of ram. linux: 2.6.21.3 gcc: 4.1.2 glibc: 2.4 jdk6-bin: 6u1 JAVA_HOME=/usr/lib/j2sdk CLASSPATH=/usr/share/antlr-2.7.7/antlr.jar ANT_HOME=/opt/ant
> JAVA_HOME=/usr/lib/j2sdk > CLASSPATH=/usr/share/antlr-2.7.7/antlr.jar > ANT_HOME=/opt/ant Interesting. What if you try unsetting CLASSPATH?
Removing the CLASSPATH allowed it to build.
Does something need to be added to classpath for it to build without unsetting it?
Yeah! Glad to hear clearing CLASSPATH fixed things. I'd guess that maybe adding "." to the CLASSPATH would let it build. Can you also try changing java/Makefile.amin your gnome-speech directory as so (it just adds a '-cp .' argument to the javac command line)? You'll need to redo the ./configure to regenerate the Makefile: Index: java/Makefile.am =================================================================== --- java/Makefile.am (revision 287) +++ java/Makefile.am (working copy) @@ -12,7 +12,7 @@ $(JAR) -cf gnome-speech.jar $(GNOME_SPEECH_CLASS_FILES) $(GNOME_SPEECH_CLASS_FILES): $(GNOME_SPEECH_JAVA_FILES) - $(JAVAC) $(GNOME_SPEECH_JAVA_FILES) + $(JAVAC) -cp . $(GNOME_SPEECH_JAVA_FILES) $(GNOME_SPEECH_JAVA_FILES): $(IDLJ) \ I'd be curious if this fixes the problem for you.
Yes that patch works without needing to unset CLASSPATH
Created attachment 89367 [details] [review] Patch to add -cp to javac command line Thanks! I've checked the patch in. It will go out with the next release, which I'll most likely do in conjunction with GNOME 2.19.4.