[Bug 303904] New: Is the gnu.classpath.home. url property set correctly in gcj-4.2.1?
https://bugzilla.novell.com/show_bug.cgi?id=303904#c299635 Summary: Is the gnu.classpath.home.url property set correctly in gcj-4.2.1? Product: openSUSE 10.3 Version: Beta 1 Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: pmladek@novell.com QAContact: qa@suse.de Found By: Development OpenOffice.org dlopens libjvm.so and create it's own java runtime environment. It used the property gnu.classpath.home.url to search the needed libraries (the functionality was in libgcj.so in past). It does not longer work with our current gij on openSUSE-10.3, see the bug #299635. The current gij-4.2 has the value: gnu.classpath.home.url=file:///usr/lib/gcc/i586-suse-linux/4.2.1 The gcj info page says: --- cut --- `gnu.classpath.home.url' A base URL used for finding system property files (e.g., `classpath.security'). By default this is a `file:' URL pointing to the `lib' directory under `java.home'. --- cut --- I wonder if the current value is correct. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=303904#c1 --- Comment #1 from Petr Mladek <pmladek@novell.com> 2007-08-23 09:24:40 MST --- Created an attachment (id=159503) --> (https://bugzilla.novell.com/attachment.cgi?id=159503) Small utility to print the java properties (taken from OOo). Just run "gij JREProperties". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=303904#c2 --- Comment #2 from Petr Mladek <pmladek@novell.com> 2007-08-23 09:25:29 MST --- Created an attachment (id=159504) --> (https://bugzilla.novell.com/attachment.cgi?id=159504) Source code of JREProperties.class -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=303904#c3 --- Comment #3 from Petr Mladek <pmladek@novell.com> 2007-08-23 12:09:25 MST --- Strange, it seems that gij prints completely different paths on Fedora, see http://qa.openoffice.org/issues/show_bug.cgi?id=80975 gij-4.1.2 on Fedora: java.home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre gnu.classpath.home.url=file:///usr/lib64 java.library.path=/usr/lib64/gcj-4.1.2 gij-4.2.1 on openSUSE-10.3: java.home=/usr gnu.classpath.home.url=file:///usr/lib/gcc/i586-suse-linux/4.2.1 java.library.path=/usr/lib/gcj-4.2.1 Just to be sure, are our paths intended? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=303904 User mvyskocil@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=303904#c4 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mvyskocil@novell.com Status|NEW |NEEDINFO Info Provider| |pmladek@novell.com --- Comment #4 from Michal Vyskocil <mvyskocil@novell.com> 2008-05-22 08:14:44 MST --- Hi, is this issue still valid? If yes, maybe it'll be better to re-assign it to the gcc maintaners, because gij is a part of it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=303904 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=303904#c5 Petr Mladek <pmladek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|pmladek@novell.com | --- Comment #5 from Petr Mladek <pmladek@novell.com> 2008-05-22 08:36:29 MST --- gij (GNU libgcj) version 4.3.1 20080425 (prerelease) [gcc-4_3-branch revision 134659] on openSUSE-11.0-beta2: java.home=/usr gnu.classpath.home.url=file:///usr/lib64/gcc/x86_64-suse-linux/4.3 java.library.path=/usr/lib64/../lib64/gcj-4.3-9 So, it is still different from the above paths from Fedora. The gcc-team is probably the right assignee. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=303904 User anosek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=303904#c6 Ales Nosek <anosek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anosek@novell.com AssignedTo|bnc-team-java@forge.provo.novell.com |matz@novell.com --- Comment #6 from Ales Nosek <anosek@novell.com> 2008-09-24 07:36:05 MDT --- Re-assigning to Michael, hopefully the right person. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=303904 User rguenther@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=303904#c7 --- Comment #7 from Richard Guenther <rguenther@novell.com> 2008-09-30 04:54:30 MDT --- Fedora probably builds with --enable-java-home. Eventually this will conflict with the java-1_5_0-gcj-compat package though. I'll check. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=303904 User rguenther@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=303904#c8 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matz@novell.com AssignedTo|matz@novell.com |rguenther@novell.com --- Comment #8 from Richard Guenther <rguenther@novell.com> 2008-10-03 07:35:50 MDT --- I am somewhat confused as to what is expected beyond gnu.classpath.home.url. It is currently ls /usr/lib64/gcc/x86_64-suse-linux/4.3/ 32 crtbeginT.o finclude libgcj.la libgomp.so adainclude crtend.o gnat1 libgcj.so libgomp.spec adalib crtendS.o include libgcj.spec libobjc.a cc1 crtfastmath.o include-fixed libgcj_bc.so libobjc.so cc1obj crtprec32.o jc1 libgcov.a libstdc++.a cc1objplus crtprec64.o jvgenmain libgfortran.a libstdc++.so cc1plus crtprec80.o libgcc.a libgfortran.so libsupc++.a collect2 ecj.jar libgcc_eh.a libgfortranbegin.a crtbegin.o ecj1 libgcc_s.so libgij.so crtbeginS.o f951 libgcj-tools.so libgomp.a where you can find things like libgij.so, libgcj.so and libgcj-tools.so but there is also java.library.path ls /usr/lib64/gcj-4.3-9/ classmap.db libgtkpeer.so libjawt.so libjvm.so libgtkpeer.la libjawt.la libjvm.la where the libjvm.so is. I fail to see the connection to java.home which I can trivially make to point to /usr/lib64/jvm/java-1.5.0-gcj-4.3-1.5.0.0/jre, which is a location provided by java-1_5_0-gcj-compat-1.5.0.0-65.1. So, what is "the needed libraries" that OpenOffice tries to find? You can test mbuild murzim-rguenther-127 which has the java.home adjusted to the above value. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=303904 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |pmladek@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=303904 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=303904#c9 Petr Mladek <pmladek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pmladek@novell.com Status|NEEDINFO |NEW Info Provider|pmladek@novell.com | --- Comment #9 from Petr Mladek <pmladek@novell.com> 2008-10-06 09:02:53 MDT --- OOo needs to find libjvm.so. You might see the last code at http://udk.openoffice.org/source/browse/*checkout*/udk/jvmfwk/plugins/sunmaj... It searches (see GnuInfo::getRuntimePaths): "/libjvm.so", "/lib/" GCJ_JFW_PLUGIN_ARCH "/client/libjvm.so", "/gcj-4.1.1/libjvm.so", In the prefixes defined by (see GnuInfo::initialize): gnu.classpath.home.url java.home java.library.path We search too many paths because "every" distribution and "every" gcj version uses another approach. To be honest, I have no idea what is the right setting and what is the purpose of the properties. We only need a property points to libjvm.so. Also we should find/define the meaning of the properties and use them cosistently accross all linux distributions. I hoped that you have contact to the author of gcj who might know ;-) PS: It is getting beffer. For example, the unversioned libjvm.so is nice win in the last gcj version. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=303904 User rguenther@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=303904#c10 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #10 from Richard Guenther <rguenther@novell.com> 2008-10-13 09:55:44 MDT --- GCC with the ajdusted java.home was just checked in. So, as "PS: It is getting beffer. For example, the unversioned libjvm.so is nice win in the last gcj version." and I don't know either what the "right" setting is or what the purposes of the properties are - can we close this bug as fixed? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=303904 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=303904#c11 --- Comment #11 from Petr Mladek <pmladek@novell.com> 2008-10-13 12:44:22 MDT --- I do not have any better idea. Feel free to close it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=303904 User rguenther@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=303904#c12 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |Future/Later --- Comment #12 from Richard Guenther <rguenther@novell.com> 2008-10-14 02:49:35 MDT --- Fixed for openSUSE 11.1, Beta3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com