Re: [tcljava-user] make install - 'Testing installed program' fails
Brought to you by:
mdejong
From: <Fra...@ti...> - 2008-11-14 13:42:19
|
Hi! Sorry but we can't get it work. As far as we can see is all JAVA parameters set and point on our JAVA 1.6 installation. Parts of settings in the TclBlend and the TclThread Makefile: JAVA = /local/tclblend/jdk/bin/java JAVA_G = /local/tclblend/jdk/bin/java JAVAC = /local/tclblend/jdk/bin/javac JAVAH = /local/tclblend/jdk/bin/javah JAR = /local/tclblend/jdk/bin/jar JAVA_CLASSPATH = /local/tclblend/lib/tcljava/tcljava.jar:/local/tclblend/lib/tcljava/tclb lend.jar JAVA_INCLUDE_FLAGS = -I/local/tclblend/jdk/include -I/local/tclblend/jdk/include/linux JAVA_LIB_FLAGS = -L/local/tclblend/jdk/jre/lib/i386 -ljava -lverify -L/local/tclblend/jdk/jre/lib/i386/client -ljvm -L/local/tclblend/jdk/jre/lib/i386/native_threads -lhpi JAVA_LIB_RUNTIME_PATH = /local/tclblend/jdk/jre/lib/i386:/local/tclblend/jdk/jre/lib/i386/client :/local/tclblend/jdk/jre/lib/i386/native_threads By adding debug into the Tcl code it is possible to see that the CLASSPATH is correctly set when the tclblend.so file is loaded (short before the core dump): env(CLASSPATH) = /local/tclblend/lib/tcljava/tcljava.jar:/local/tclblend/lib/tcljava/tclb lend.jar Coredump with some debug lines added (may be some slight line missmatch). Core was generated by `/local/tclblend/bin/tclsh8.5'. Program terminated with signal 6, Aborted. #0 0xffffe410 in __kernel_vsyscall () (gdb) where #0 0xffffe410 in __kernel_vsyscall () #1 0xb7d588d0 in raise () from /lib/libc.so.6 #2 0xb7d59ff3 in abort () from /lib/libc.so.6 #3 0x0630ca7b in os::abort () from /local/tclblend/jdk/jre/lib/i386/client/libjvm.so #4 0x063cc541 in VMError::report_and_die () from /local/tclblend/jdk/jre/lib/i386/client/libjvm.so #5 0x06311d19 in JVM_handle_linux_signal () from /local/tclblend/jdk/jre/lib/i386/client/libjvm.so #6 0x0630e848 in signalHandler () from /local/tclblend/jdk/jre/lib/i386/client/libjvm.so #7 <signal handler called> #8 0xb7f6cae5 in Tcl_FindCommand (interp=0x8119000, name=0x8165b20 "java::new", contextNsPtr=0x0, flags=0) at /tmp/tclblend/tcl8.5.5/unix/../generic/tclNamesp.c:2388 #9 0xb7ed667b in Tcl_GetCommandInfo (interp=0x8119000, cmdName=0x8165b20 "java::new", infoPtr=0xbfda2b2c) at /tmp/tclblend/tcl8.5.5/unix/../generic/tclBasic.c:2522 #10 0xb7ea965e in Java_tcl_lang_Interp_getCommand () from /local/tclblend/lib/tcljava/libtclblend.so #11 0xb549ff4d in ?? () #12 0x08119114 in ?? () #13 0xbfda2bb0 in ?? () #14 0xbfda2bac in ?? () #15 0xbfda2b78 in ?? () #16 0x08119000 in ?? () #17 0x08119000 in ?? () #18 0x8c121fd8 in ?? () #19 0xbfda2b7c in ?? () #20 0x900d7304 in ?? () #21 0xbfda2bb0 in ?? () #22 0x900dd4b8 in ?? () #23 0x00000000 in ?? () (gdb) Additional information can be found in the attached dump file. Any suggestion how to move forward? BR Frank -----Original Message----- From: Mo DeJong [mailto:mo...@mo...] Sent: den 11 november 2008 22:41 To: A list for users of tcljava Subject: Re: [tcljava-user] make install - 'Testing installed program' fails Fra...@ti... wrote: > Hi! > > Tried to install the TclBlend on Linux (sled10). > > I come this far, now I'm thankful for some advice to how come around > this problem. I'm not an java expert so be open-minded in case I miss > some basic stuff. > I have included the following parts into the .cshrc file (maybe > something that is missing or maybe not needed): Hi Frank Well, I am not sure why you would put this stuff in .cshrc. This path related stuff goes in the jtclsh startup script. The point where you install fails is right after jtclsh is installed. The problems people always have with Tcl Blend are related to the PATH settings, you just need to make sure the path found by the script actually matches the library locations in your JDK install and it should work. The most likely cause of this problem is that your JDK 6.0 library has some path locations that differ from the ones that configure script knows about, so they are not getting detected correctly. I would suggest you run "make shell" from the build directory and see if you can load Tcl Blend (via "package require java") from the build directory. If you can't get it to load in the build directory then the paths in the Makefile can be updated to try to get it working. Mo DeJong ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user |