Bug 75642 - gnomespeech fails to build if a jdk is installed
Summary: gnomespeech fails to build if a jdk is installed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-java (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-30 00:01 UTC by brian
Modified: 2005-01-13 23:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brian 2004-12-30 00:01:04 UTC
Trying to build gnome2, building dependency accessibility/gnomespeech, with jdk1.4p7 and javavmwrapper-1.5, and the build fails.  If there is no jdk installed, then gnomespeech builds fine.  Other Java applications (apache-ant, netbeans) appear to compile fine.

cc -shared  .libs/GNOME_Speech-imodule.o  -L/usr/local/lib -L/usr/X11R6/lib  -Wl,-soname -Wl,GNOME_Speech_module.so -o .libs/GNOME_Speech_module.so
creating GNOME_Speech_module.la
(cd .libs && rm -f GNOME_Speech_module.la && ln -s ../GNOME_Speech_module.la GNOME_Speech_module.la)
gmake[3]: Leaving directory `/usr/ports/accessibility/gnomespeech/work/gnome-speech-0.3.5/gnome-speech'
gmake[2]: Leaving directory `/usr/ports/accessibility/gnomespeech/work/gnome-speech-0.3.5/gnome-speech'
Making all in java
gmake[2]: Entering directory `/usr/ports/accessibility/gnomespeech/work/gnome-speech-0.3.5/java'
/usr/local/bin/idlj \
-emitAll -i /usr/local/share/idl/bonobo-activation-2.0 -i ../idl \
-pkgPrefix GNOME org \
-pkgPrefix Bonobo org.GNOME \
-fallTie ../idl/GNOME_Speech_SynthesisDriver.idl 
Unrecognized option: -emitAll
Could not create the Java virtual machine.
gmake[2]: *** [org/GNOME/Speech/*.java] Error 1
gmake[2]: Leaving directory `/usr/ports/accessibility/gnomespeech/work/gnome-speech-0.3.5/java'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/accessibility/gnomespeech/work/gnome-speech-0.3.5'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/accessibility/gnomespeech.



Note that /usr/local/bin/idlj is soft linked to /usr/local/bin/javavm, as are other java-related programs in /usr/local/bin: java, java_vm, javac, javah, javap, etc.  Linking idlj to /usr/local/jdk1.4.2/bin/idlj and rerunning from scratch gives a different error:

[...]
cc -shared  .libs/GNOME_Speech-imodule.o  -L/usr/local/lib -L/usr/X11R6/lib  -Wl,-soname -Wl,GNOME_Speech_module.so -o .libs/GNOME_Speech_module.so
creating GNOME_Speech_module.la
(cd .libs && rm -f GNOME_Speech_module.la && ln -s ../GNOME_Speech_module.la GNOME_Speech_module.la)
gmake[3]: Leaving directory `/usr/ports/accessibility/gnomespeech/work/gnome-speech-0.3.5/gnome-speech'
gmake[2]: Leaving directory `/usr/ports/accessibility/gnomespeech/work/gnome-speech-0.3.5/gnome-speech'
Making all in java
gmake[2]: Entering directory `/usr/ports/accessibility/gnomespeech/work/gnome-speech-0.3.5/java'
/usr/local/bin/idlj \
-emitAll -i /usr/local/share/idl/bonobo-activation-2.0 -i ../idl \
-pkgPrefix GNOME org \
-pkgPrefix Bonobo org.GNOME \
-fallTie ../idl/GNOME_Speech_SynthesisDriver.idl 
/usr/local/bin/javac org/GNOME/Speech/*.java
Exception in thread "main" java.lang.NoClassDefFoundError: org/GNOME/Speech/Parameter/java
gmake[2]: *** [org/GNOME/Speech/*.class] Error 1
gmake[2]: Leaving directory `/usr/ports/accessibility/gnomespeech/work/gnome-speech-0.3.5/java'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/accessibility/gnomespeech/work/gnome-speech-0.3.5'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/accessibility/gnomespeech.





Personally I don't care in the slightest about getting gnomespeech to work as a jar with Java; I just want to be able to compile gnome2 on a system that also has a jdk installed.
Comment 1 Joe Marcus Clarke freebsd_committer freebsd_triage 2005-01-13 23:46:26 UTC
State Changed
From-To: open->closed

This is unreproducible with the latest jdk14 and gnomespeech.