[tcljava-user] loading .so in Tcl that is created from Java
Brought to you by:
mdejong
From: Scott S. <ss...@am...> - 2006-03-24 00:30:23
|
Hello Tcl Blenders, We are able to use TclBlend to create a (real, not Jacl) Tcl interpreter from Java. We have LD_LIBRARY_PATH set. We eval a 'load foo.so' in Tcl. This works, but foo.so is supposed to automatically load bar.so... it doesn't. We are using Linux with Sun JDK 1.5.0_06. My cube-mate read that in general Java didn't use the standard link loader. It even goes on to say that automatic secondary loading might or might not happen. In short... Tcl starting the JVM, Tcl "load foo.so" also loads "bar.so" for us. JVM starting the Tcl Interpreter, Tcl "load foo.so" succeeds but fails to load bar.so and has un resolved dependencies. Any ideas of how to solve this? We thought about combining our dozen or so *.so files into one... We can't figure out how to do this after the fact, pretending we can't do this at compile time by combining the .o files. Reason is: 1. vendor doesn't support this. 2. the build is a complex mess that builds .o files in a bazillion directories.... who knows which ones we need and if we can do it right. Anyone have this problem? Anyone fix it? Thanks! Scott |