Bug #18336 mysql-gui-common/source/grtsh/grtsh.cc compile fails w/o java
Submitted: 18 Mar 2006 20:03 Modified: 26 Apr 2006 15:08
Reporter: John Yodsnukis (Basic Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Preview Severity:S3 (Non-critical)
Version:1.0.5beta svn revision 1217 OS:Linux (Linux (Gentoo on PPC))
Assigned to: Alfredo Kojima CPU Architecture:Any

[18 Mar 2006 20:03] John Yodsnukis
Description:
./mysql-gui-common/source/grtsh/grtsh.cc compile fails when java is not installed and the build is configured with --enable-java-modules=no or --disable-java-modules.

How to repeat:
svn update --revision 1217 ./mysql-gui-common/source/grtsh/grtsh.cc
cd ./mysql-gui-common
sh autogen.sh --enable-grt --enable-canvas --disable-java-modules
make

will produce errors in myx_grt_java.h which shouldn't happen because --disabled-java-modules.

Suggested fix:
Index: grtsh.cc
===================================================================
--- grtsh.cc (revision 1217)
+++ grtsh.cc (working copy)
@@ -25,7 +25,9 @@
#endif

#include <myx_grt_public_interface.h>
+#ifdef ENABLE_JAVA_MODULES
#include <myx_grt_java.h>
+#endif
#include <myx_sql_resultset.h>

#include <myx_grt_builtin_module_public_interface.h>
[29 Mar 2006 15:20] John Yodsnukis
Can this be verified?  Is the included fix appropriate for this problem?
[26 Apr 2006 15:08] Alfredo Kojima
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html