Bug #25186 MySql Gui Common fails to compile
Submitted: 19 Dec 2006 20:22 Modified: 26 Jan 2007 21:55
Reporter: Mark Johnson (Basic Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Preview Severity:S3 (Non-critical)
Version:5.0r8 OS:Linux (linux)
Assigned to: CPU Architecture:Any

[19 Dec 2006 20:22] Mark Johnson
Description:
While compiling MySql Gui Common, the build ended due to a missing prerequisite.  However, configure had succeeded.  Here is the end of the build output:
Making all in java
make[3]: Entering directory `/mnt/raid/download/computer/software/database/mysql/src/mysql-gui-tools-5.0r8/mysql-gui-common/source/java'
(cd ../..; ./mkjava.sh all)
Copying JAR files...
Autogenerating Java code from XML definitions from ./res/grt to source/java/com...
Cleaning up old builds from source/java/com...
Processing base ...
Processing canvas ...
Processing db ...
Processing db.mysql ...
Processing forms ...
Processing db.mgmt ...
Processing db.migration ...
Processing db.oracle ...
Processing db.mssql ...
Processing db.maxdb ...
Processing db.sybase ...
Processing db.query ...
Processing model ...
Processing db.workbench ...
Autogeneration done.
Building Java code in source/java...
Removing old files...
Compiling...
Build done.
Creating jar file...
./mkjava.sh: line 106: type: gtar: not found
Jar file mysql-grt-java-1.0.0-bin.jar created.
make[3]: *** No rule to make target `lib/mysql-connector-java-3.1.11a-bin.jar', needed by `all-am'.  Stop.
make[3]: Leaving directory `/mnt/raid/download/computer/software/database/mysql/src/mysql-gui-tools-5.0r8/mysql-gui-common/source/java'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/raid/download/computer/software/database/mysql/src/mysql-gui-tools-5.0r8/mysql-gui-common/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/raid/download/computer/software/database/mysql/src/mysql-gui-tools-5.0r8/mysql-gui-common'
make: *** [all] Error 2
Failed to make Gui Common

Note the last line is output from my script indicating what phase of the build failed.

How to repeat:
See attached config.log for the configure parameters.  I do not have Connector/J installed.

Suggested fix:
If 'lib/mysql-connector-java-3.1.11a-bin.jar' is truly required to build with these configure options, configure should ensure that it is present.  This should have failed at the configure stage.

If the library is required for an optional component, then that component should not be built when the library is not present, and then build will succeed, but without such optional component.
[19 Dec 2006 20:23] Mark Johnson
Config.log from failed build

Attachment: config.log (text/x-log), 50.46 KiB.

[20 Dec 2006 16:32] Mark Johnson
The directory mysql-gui-tools-5.0r8/mysql-gui-common/source/java/lib
contains the file mysql-connector-java-5.0.4-bin.jar.

So it seems likely that the problem is the wrong version of the file has been packaged in the tarball rather than a bad check in configure as I originally thought.
[26 Jan 2007 13:29] Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, from GUI Tools 5.0r9, and inform about the results.
[26 Jan 2007 21:55] Mark Johnson
Gui common of 5.0r9 successfully compiled with Java support.
I am closing the bug.
Thanks.