ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcljava-user
tcljava-user
[tcljava-user] loading .so in Tcl that is created from Java
by Scott Serr other posts by this author
Mar 23 2006 4:31PM messages near this date
[tcljava-user] Re: tcljava-user digest, Vol 1 #365 - 6 msgs | Re: [tcljava-user] loading .so in Tcl that is created from Java
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



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
tcljava-user mailing list
tcljava-user@[...].net
https://lists.sourceforge.net/lists/listinfo/tcljava-user
Thread:
Scott Serr
Mo DeJong
Scott Serr

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved