From nobody@FreeBSD.org  Thu Dec 30 00:00:33 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BBB4416A4CF
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 30 Dec 2004 00:00:33 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9095543D39
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 30 Dec 2004 00:00:33 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iBU00Xwu067866
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 30 Dec 2004 00:00:33 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iBU00Xri067865;
	Thu, 30 Dec 2004 00:00:33 GMT
	(envelope-from nobody)
Message-Id: <200412300000.iBU00Xri067865@www.freebsd.org>
Date: Thu, 30 Dec 2004 00:00:33 GMT
From: Brian Behlendorf <brian@hyperreal.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: gnomespeech fails to build if a jdk is installed
X-Send-Pr-Version: www-2.3

>Number:         75642
>Category:       ports
>Synopsis:       gnomespeech fails to build if a jdk is installed
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-java
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 30 00:01:04 GMT 2004
>Closed-Date:    Thu Jan 13 23:46:58 GMT 2005
>Last-Modified:  Thu Jan 13 23:46:58 GMT 2005
>Originator:     Brian Behlendorf
>Release:        RELENG_5
>Organization:
>Environment:
FreeBSD eris.apache.org 5.3-STABLE FreeBSD 5.3-STABLE #5: Sat Dec 18 09:49:01 PST 2004     root@eris.apache.org:/usr/obj/usr/src/sys/SMP  i386
>Description:
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.

>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Thu Jan 13 23:46:26 GMT 2005 
State-Changed-Why:  
This is unreproducible with the latest jdk14 and gnomespeech. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75642 
>Unformatted:
