<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 42: tclblend on aix 5.2</title><link>https://sourceforge.net/p/tcljava/bugs/42/</link><description>Recent changes to 42: tclblend on aix 5.2</description><atom:link href="https://sourceforge.net/p/tcljava/bugs/42/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 01 Nov 2006 22:08:45 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/tcljava/bugs/42/feed.rss" rel="self" type="application/rss+xml"/><item><title>tclblend on aix 5.2</title><link>https://sourceforge.net/p/tcljava/bugs/42/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;configure doesn't figure out how to link to &lt;br /&gt;
libjava.a. It tries to link to libjava.so.&lt;br /&gt;
I linked libjava.a -&amp;gt; libjava.so to get it to compile.&lt;/p&gt;
&lt;p&gt;AIX uses LIBPATH instead of LD_LIBRARY_PATH to &lt;br /&gt;
execute dynamic linking.&lt;br /&gt;
I changed Makefile.in and added a LIBPATH lind under &lt;br /&gt;
the LD_LIBRARY_PATH line in the shell_tclblend target.&lt;/p&gt;
&lt;p&gt;LIBPATH="$(BUILD_DIR):$(TCL_BIN_DIR):$(THREAD_BIN_DIR)&lt;br /&gt;
:$(JAVA_LIB_RUNTIME_PATH):$(LD_LIBRARY_PATH)" \&lt;/p&gt;
&lt;p&gt;java14 that is before SR6 has a bug in &lt;br /&gt;
JNI_GetCreatedJavaVMs, which causes it to return 1.&lt;br /&gt;
if that function has a nonzero status, it jumps to &lt;br /&gt;
error:&lt;br /&gt;
error will try and free 'options[0].optionString', &lt;br /&gt;
and 'options' which haven't been set yet (causing a &lt;br /&gt;
core dump).&lt;/p&gt;
&lt;p&gt;i set options to null at the top of JavaInitEnv where &lt;br /&gt;
it is declared. (I can't remember if it always takes &lt;br /&gt;
a zero value by default).&lt;br /&gt;
JavaVMOption *options=NULL;&lt;/p&gt;
&lt;p&gt;and in the error handler make sure it's set.&lt;/p&gt;
&lt;p&gt;#ifdef JDK1_2&lt;br /&gt;
if (options != NULL)&lt;br /&gt;
{&lt;br /&gt;
ckfree((char *) options[0].optionString);&lt;br /&gt;
ckfree((char *) options);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;In order to fix the problem with &lt;br /&gt;
JNI_GetCreatedJavaVMs, you have to upgrade your java &lt;br /&gt;
version. (I know that SR6 works).&lt;br /&gt;
you can download it from here.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www-" rel="nofollow"&gt;http://www-&lt;/a&gt;&lt;br /&gt;
128.ibm.com/developerworks/java/jdk/aix/service.html&lt;/p&gt;
&lt;p&gt;last but not least, after installiing the new java &lt;br /&gt;
you will get this error:&lt;/p&gt;
&lt;p&gt;% package require java&lt;br /&gt;
TclBLendTrace: Entrypoint Tclblend_Init&lt;br /&gt;
JVMCI200 - ERROR: User register saving is not &lt;br /&gt;
enabled, Garbage Collection could be incorrect.&lt;br /&gt;
JVMCI200 - ERROR: because of this the JVM library is &lt;br /&gt;
explicitly aborting the process&lt;br /&gt;
JVMCI200 - ERROR: You must either rebuild the &lt;br /&gt;
executable using "-bM:UR"&lt;br /&gt;
JVMCI200 - ERROR: or run with "export &lt;br /&gt;
LDR_CNTRL=USERREGS"&lt;br /&gt;
make: *** [shell_tclblend] IOT/Abort trap (core &lt;br /&gt;
dumped)&lt;/p&gt;
&lt;p&gt;after doing some research on the IBM site, it appears &lt;br /&gt;
that there are no problems with following those &lt;br /&gt;
instructions and setting the env variable &lt;br /&gt;
LDR_CNTRL=USERREGS.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 01 Nov 2006 22:08:45 -0000</pubDate><guid>https://sourceforge.net5ab7c26ee9f1a5761fadbbd6a8f6c52b7039f91d</guid></item></channel></rss>