On Wed, 11 Aug 1999, rob ratcliff wrote:

> 
> > I was able to compile and run Tcl Blend on an IRIX 6.2 box. I was
> > using the egcs compiler with the 32 bit libs (gcc kind of works
> > in 64 bit mode but it was a bit of a hack).

I was using "new 32". Old 32 does not seem to work at all. I think
I even got it to compile using 64 bit mode, and the 64 bit Java
libs, but I can not remember exactly how. I know there were some
crazy flags I have to pass to the compiler and the linker.

> I'll try egcs. I was using the SGI 7.2.1 compilers.
> Were you using the "new 32",n32, or 
> the old 32 bit libraries?
> 
> 
> > 
> > The Tcl Blend code did not even compile? I have had problems
> > loading libtclblend.so but it always compiled.
> 
> It compiled fine, its just the load that fails.
> 
> > Oh, it looks like you are using Tcl 8.1. I have only tried it on
> > IRIX with Tcl 8.0. These "definition preempts ..." warnings did
> > not seem to break anything when I ran the code.
> 
> I tried it with TCL/TK 8.0.5 too, and got the same load error.
> 
> Here's part of the output from make test:


Did you try to set LD_PRELOAD to include the libpthread.so and
libjava.so libs when the process starts up? I would try that
next. You can also try the "make custom" rule. It will compile
a single executable that statically links in the Tcl, Tcl Blend,
and Java libs. Also what is the SHLIB_LD_LIBS variable set to
in the Tcl tclConfig.sh script? This script should be located in
the directory where Tcl was configured. Could you also save the
output of the make command and post the link (the command that
creates libtclblend.so).

later
mo

> Attempting to figure out why "load libtclblend.so" failed currently
> LD_LIBRARY_PATH is set to
> 
>"/home/rrr6399/tk/tcl8.0.5/tclBlend1.2.4/unix:/home/rrr6399/tk/tcl8.0.5/tcl8.0.5/unix:/usr/local/java/java2/usr/java/lib32/sgi:/usr/local/java/java2/usr/java/lib32/sgi/native_threads:/usr/local/java/java2/usr/java/lib32/sgi/classic:/usr/lib32"
> 
> found libtclblend.so on LD_LIBRARY_PATH at
> "/home/rrr6399/tk/tcl8.0.5/tclBlend1.2.4/unix/libtclblend.so".  found
> libjava.so on LD_LIBRARY_PATH at
> "/usr/local/java/java2/usr/java/lib32/sgi/libjava.so".  found libpthread.so
> on LD_LIBRARY_PATH at "/usr/lib32/libpthread.so".  Unable to find the java
> package. Skipping entire test.:  "load libtclblend.so" failed: 
>  JNI_CreateJavaVM failed
>     while executing "error "\"load $tclblend_shlib\" failed:\n $errMsg"" 
>     (procedure "loadtclblend" line 356)
>     invoked from within "loadtclblend
> /usr3/people/rrr6399/tk/tcl8.0.5/tclBlend1.2.4/unix" 
>     ("package ifneeded" script)
>     invoked from within "package require java" 
> 
> It appears that it found all the .so files, it just seems
> to fail when loading the the library. I've loaded 
> other libraries in the past, so I'm pretty sure
> that it should work. 
> 
> 
> Thanks,
> 
> Rob
> 
> 

----------------------------------------------------------------
The TclJava mailing list is sponsored by WebNet Technologies.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 
A list archive is at: http://www.findmail.com/listsaver/tcldallas/

Reply via email to