<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 52: tclBlend configure script - jvm lib location on Solaris/HPUX</title><link href="https://sourceforge.net/p/tcljava/bugs/52/" rel="alternate"/><link href="https://sourceforge.net/p/tcljava/bugs/52/feed.atom" rel="self"/><id>https://sourceforge.net/p/tcljava/bugs/52/</id><updated>2010-02-05T14:04:02Z</updated><subtitle>Recent changes to 52: tclBlend configure script - jvm lib location on Solaris/HPUX</subtitle><entry><title>tclBlend configure script - jvm lib location on Solaris/HPUX</title><link href="https://sourceforge.net/p/tcljava/bugs/52/" rel="alternate"/><published>2010-02-05T14:04:02Z</published><updated>2010-02-05T14:04:02Z</updated><author><name>Tony Borthwick</name><uri>https://sourceforge.net/u/aborthwi/</uri></author><id>https://sourceforge.net416823afe87519c6b9cf9908ca54f03eccff0d19</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;tclBlend configure script doesn't find the jvm libraies for Solaris 9/10 or HPUX 11 (parisc or ia64).  For HP parisc  there is the additional problem that libjvm can not be dynamically loaded using shl_load() because it contains thread local storage. Unless the executable is linked with libjvm the only way to load it is using LD_PRELOAD. I'm not sure about autoconf, so I hacked the configure script directly. The following extract is the changes I've made and appear to work on Solaris 9/10 (sparc) and HPUX 11 (parisc &amp;amp; ia64)&lt;/p&gt;
&lt;p&gt;# Find out where the JNI native thread libraries live&lt;/p&gt;
&lt;p&gt;machine=`uname -m`&lt;br /&gt;
shlibext=".so"&lt;br /&gt;
jretype="client"&lt;br /&gt;
case "$machine" in&lt;br /&gt;
i?86)&lt;br /&gt;
machine=i386&lt;br /&gt;
;;&lt;br /&gt;
sun4u)&lt;br /&gt;
machine="sparc"&lt;br /&gt;
;;&lt;br /&gt;
sun4v)&lt;br /&gt;
machine="sparc"&lt;br /&gt;
;;&lt;br /&gt;
9000/800)&lt;br /&gt;
machine="PA_RISC2.0"&lt;br /&gt;
shlibext=".sl"&lt;br /&gt;
jretype="server"&lt;br /&gt;
ac_java_jvm_ld_preload="libjvm${shlibext}"&lt;br /&gt;
;;&lt;br /&gt;
ia64)&lt;br /&gt;
machine="IA64N"&lt;br /&gt;
jretype="server"&lt;br /&gt;
;;&lt;br /&gt;
esac&lt;/p&gt;
&lt;p&gt;# Check for known JDK installation layouts&lt;/p&gt;
&lt;p&gt;if test "$ac_java_jvm_name" = "jdk"; then&lt;/p&gt;
&lt;p&gt;# Sun/Blackdown 1.4 for Linux (client JVM)&lt;/p&gt;
&lt;p&gt;F=jre/lib/$machine/libjava${shlibext}&lt;br /&gt;
if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then&lt;/p&gt;
&lt;p&gt;echo Looking for $ac_java_jvm_dir/$F &amp;gt;&amp;amp;5&lt;/p&gt;
&lt;p&gt;if test -f $ac_java_jvm_dir/$F ; then&lt;/p&gt;
&lt;p&gt;echo Found $ac_java_jvm_dir/$F &amp;gt;&amp;amp;5&lt;/p&gt;
&lt;p&gt;D=`dirname $ac_java_jvm_dir/$F`&lt;br /&gt;
ac_java_jvm_jni_lib_runtime_path=$D&lt;br /&gt;
ac_java_jvm_jni_lib_flags="-L$D -ljava -lverify"&lt;br /&gt;
D=$ac_java_jvm_dir/jre/lib/$machine/${jretype}&lt;br /&gt;
ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"&lt;br /&gt;
ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"&lt;br /&gt;
D=$ac_java_jvm_dir/jre/lib/$machine/native_threads&lt;br /&gt;
ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"&lt;br /&gt;
ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -lhpi"&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>