Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172478 - dev-db/mysql-gui-tools-5.0_p10-r1 tries to use gcc (gcj) jni.h and fails to build
Summary: dev-db/mysql-gui-tools-5.0_p10-r1 tries to use gcc (gcj) jni.h and fails to b...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-27 23:08 UTC by Oliver B. Warzecha
Modified: 2010-02-14 21:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver B. Warzecha 2007-03-27 23:08:27 UTC
When building mysql-gui-tools 5.0_p10-r1 on a system with enabled gcj USE-flag, autoconf finds the jni.h include from gcc and tries to use it while building the jars in the mysql-gui-common directory, failing at the following point:

make[3]: Entering directory `/var/tmp/portage/dev-db/mysql-gui-tools-5.0_p10-r1/
work/mysql-gui-tools-5.0r10/mysql-gui-common/source/java'
(cd ../..; ./mkjava.sh all)
(cd ../..; ./mkjava.sh all)
make[3]: *** No rule to make target `lib/jtds-1.2.jar', needed by `all-am'.  Sto
p.
make[3]: *** Waiting for unfinished jobs....
[snipped several lines of background work which then leads to:]
mv: cannot stat `source/java/tmpjar/mysql-grt-java-1.0.0-bin.jar': No such file 
or directory
rm: cannot remove directory `source/java/tmpjar/com/mysql/grt/base': No such fil
e or directory
rm: cannot remove directory `source/java/tmpjar/com/mysql/grt/canvas': No such f
ile or directory
rm: cannot remove directory `source/java/tmpjar/com/mysql/grt/db/mgmt': No such 
file or directory
rm: cannot remove directory `source/java/tmpjar/com/mysql/grt/db/mssql': No such
 file or directory
rm: cannot remove directory `source/java/tmpjar/com/mysql/grt/db/mysql': No such
 file or directory
rm: cannot remove directory `source/java/tmpjar/com/mysql/grt/db/oracle': No suc
h file or directory
rm: cannot remove directory `source/java/tmpjar/com/mysql/grt/db/maxdb': No such
 file or directory
rm: cannot remove directory `source/java/tmpjar/com/mysql/grt/db/sybase': No suc
h file or directory
rm: cannot remove directory `source/java/tmpjar/com/mysql/grt/db/query': No such
 file or directory
rm: cannot remove directory `source/java/tmpjar/com/mysql/grt/db/workbench': No 
such file or directory
rm: cannot remove directory `source/java/tmpjar/com/mysql/grt/forms': No such fi
le or directory
rm: cannot remove directory `source/java/tmpjar/com/mysql/grt/model': No such fi
le or directory
Jar file mysql-grt-java-1.0.0-bin.jar created.
Jar file mysql-grt-java-1.0.0-bin.jar created.
make[3]: Leaving directory `/var/tmp/portage/dev-db/mysql-gui-tools-5.0_p10-r1/w
ork/mysql-gui-tools-5.0r10/mysql-gui-common/source/java'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-gui-tools-5.0_p10-r1/w
ork/mysql-gui-tools-5.0r10/mysql-gui-common/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-gui-tools-5.0_p10-r1/w
ork/mysql-gui-tools-5.0r10/mysql-gui-common'
make: *** [all] Error 2
!!! ERROR: dev-db/mysql-gui-tools-5.0_p10-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3794:   Called src_compile
  mysql-gui-tools-5.0_p10-r1.ebuild, line 70:   Called gnome2_src_compile '--ena
ble-grt' '--enable-canvas' '--enable-i18n'
  gnome2.eclass, line 71:   Called die


Reproducible: Always

Steps to Reproduce:
1. build gcc with USE=gcj enabled
2. (try to) build mysql-gui-tools-5.0_p10-r1

Actual Results:  
build failed

Expected Results:  
It should have built flawlessly.

I could narrow it down fast to the gcj flag because I have 2 systems, one with gcj enabled and the other without and it only worked on the system without gcj. Also renaming of /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/jni.h to something else fixed the problem. A closer scrutinization revealed that mysql-gui-tools has the following configure-flag:
--with-java-includes  directory where JDK include files are located

Maybe the setting of this value to the system JDK include dir might make even the java part work, as with a renamed jni.h you only get a java-less build (whatever those java tools may do...). Sorry, I am no ebuild wizard or I would have tested it already.
Comment 1 Sven Wegener gentoo-dev 2007-04-03 19:42:34 UTC
I'm disabling the java support in 5.0_p11 until we work out the issues.
Comment 2 Sven Wegener gentoo-dev 2010-02-14 21:36:29 UTC
dev-db/mysql-gui-tools has been package.mask'ed, because it has been discontinued by upstream. please consider using its successor dev-db/mysql-workbench.