It looks like due to something in HP's JDK 1.2.2. is using 
something with threads (not too surprising), loading tclblend
on HP is hosed.  Specifically, I get the following:

/usr/lib/dld.sl: Can't shl_load() a library containing 
        Thread Local Storage: /usr/lib/libcl.2 
/usr/lib/dld.sl: Exec format error
couldn't load file "libtclblend.sl": exec format error

This only happens if I directly load the shared lib, but not
if I do a package require.  In that case, I get:

/usr/lib/dld.sl: Can't open shared library: libtclblend.sl
/usr/lib/dld.sl: No such file or directory
"load libtclblend.sl" failed:
 couldn't load file "libtclblend.sl": no such file or directory

Slightly different...but almost definitely caused by the
first problem.

Reading HP's documentation, loading shared libraries at
runtime using shl_load() does not work if the shared lib
uses Thread Local Storage (TLS).  In fact, the only way
you can load the .sl is if the executable is linked
directly to the .sl.  This is not an option for us.

Using the (64bit only) dlopen() function will work, 
but that's not doesn't work in 32bit mode.

This is on HP-UX 11.0 (a 64bit OS, but building against
the 32bit compiler/libraries).  I'm building TclBlend 1.2.5+
using some changes we've made to the configure scripts
(which are publicly visible) using Tcl 8.3.2.

Since HP was listed in the configure script already, I was
wondering who got it to work, and if this problem was
visible, and if so how did you get around it?

-- Scott

________________________________________________________________

Scott Redman                    mailto:[EMAIL PROTECTED] 
Software Engineering Manager
Ajuba Solutions                 http://www.ajubasolutions.com
(formerly Scriptics Corp.)

----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
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]'. 
An archive is available at http://www.mail-archive.com/tcljava@scriptics.com

Reply via email to