summaryrefslogtreecommitdiff
path: root/developers/mailarchive/2006-October/002100.html
blob: 11f8a8aa1a4b7bd3a78e79703d1723aa37a7bd60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Open Office] JRE register fails when	building	2.0.4	on	Mandriva 2007 x86_64
   </TITLE>
   <LINK REL="Index" HREF="http://lists.ximian.com/pipermail/openoffice/2006-October/index.html" >
   <LINK REL="made" HREF="mailto:openoffice%40lists.ximian.com?Subject=%5BOpen%20Office%5D%20JRE%20register%20fails%0A%20when%09building%092.0.4%09on%09Mandriva%202007%20x86_64&In-Reply-To=1161857551.3392.25.camel%40soulcrusher.caolan.org">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="002099.html">
   <LINK REL="Next"  HREF="002102.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Open Office] JRE register fails when	building	2.0.4	on	Mandriva 2007 x86_64</H1>
    <B>Atle Nissestad</B> 
    <A HREF="mailto:openoffice%40lists.ximian.com?Subject=%5BOpen%20Office%5D%20JRE%20register%20fails%0A%20when%09building%092.0.4%09on%09Mandriva%202007%20x86_64&In-Reply-To=1161857551.3392.25.camel%40soulcrusher.caolan.org"
       TITLE="[Open Office] JRE register fails when	building	2.0.4	on	Mandriva 2007 x86_64">atle.nissestad at norbit.no
       </A><BR>
    <I>Thu Oct 26 16:22:41 EDT 2006</I>
    <P><UL>
        <LI>Previous message: <A HREF="002099.html">[Open Office] JRE register fails when	building	2.0.4	on	Mandriva 2007 x86_64
</A></li>
        <LI>Next message: <A HREF="002102.html">[Open Office] JRE register	fails	when	building	2.0.4	on	Mandriva 2007 x86_64
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#2100">[ date ]</a>
              <a href="thread.html#2100">[ thread ]</a>
              <a href="subject.html#2100">[ subject ]</a>
              <a href="author.html#2100">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Caolan McNamara wrote:
&gt;<i>
</I>&gt;<i>
</I>&gt;<i> yeah, maybe it is. If all else fails and we're built for x86_64 give one
</I>&gt;<i> final go if m_sHome != &quot;<A HREF="file:///usr/lib64&quot;">file:///usr/lib64&quot;</A> and try a m_sHome value
</I>&gt;<i> of /usr/lib64. 
</I>&gt;<i>
</I>&gt;<i> gcj is sort of in a transition period at the moment I guess, I'd expect
</I>&gt;<i> that next iteration of gcj for nearly everyone will move to a standalone
</I>&gt;<i> libjvm.so in which case the java.home value becomes reliable to find the
</I>&gt;<i> jvm providing library and everyone marches along quite happily. In the
</I>&gt;<i> meantime though an additional fallback can't hurt.
</I>&gt;<i>
</I>&gt;<i> There *might* be an argument that mandriva's 64bit gij's java.home
</I>&gt;<i> should be /usr/lib64 not /usr/lib (like I bet it says) but
</I>&gt;<i> <A HREF="http://gcc.gnu.org/onlinedocs/gcj/GNU-Classpath-Properties.html">http://gcc.gnu.org/onlinedocs/gcj/GNU-Classpath-Properties.html</A> doesn't
</I>&gt;<i> really give any guarantee that it points above the libgcj.so dir, it
</I>&gt;<i> probably just so happens to do so for me and a few others.
</I>&gt;<i>
</I>&gt;<i> C.
</I>&gt;<i>
</I>&gt;<i>   
</I>You're right, this is the output of gij findhome:

/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
<A HREF="file:///usr/lib">file:///usr/lib</A>

Kind of stupid I guess...
Anyway, the patch below fixes the build for me:

--- jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx.bak 2006-10-19
00:23:07.000000000 +0200
+++ jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx 2006-10-26
21:45:13.000000000 +0200
@@ -196,6 +196,27 @@
}
}
}
+
+#ifdef X86_64
+ if (!bRt)
+ {
+ m_sHome = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(&quot;<A HREF="file:///usr/lib64&quot;">file:///usr/lib64&quot;</A>));
+ for(i_path ip = libpaths.begin(); ip != libpaths.end(); ip++)
+ {
+ //Construct an absolute path to the possible runtime
+ OUString usRt= m_sHome + *ip;
+ DirectoryItem item;
+ if(DirectoryItem::get(usRt, item) == File::E_None)
+ {
+ //found runtime lib
+ m_sRuntimeLibrary = usRt;
+ bRt = true;
+ break;
+ }
+ }
+ }
+#endif
+
if (!bRt)
return false;

Atle
</PRE>


<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="002099.html">[Open Office] JRE register fails when	building	2.0.4	on	Mandriva 2007 x86_64
</A></li>
	<LI>Next message: <A HREF="002102.html">[Open Office] JRE register	fails	when	building	2.0.4	on	Mandriva 2007 x86_64
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#2100">[ date ]</a>
              <a href="thread.html#2100">[ thread ]</a>
              <a href="subject.html#2100">[ subject ]</a>
              <a href="author.html#2100">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="http://lists.ximian.com/mailman/listinfo/openoffice">More information about the Openoffice
mailing list</a><br>
</body></html>