Operating System - Linux
1830227 Members
2603 Online
109999 Solutions
New Discussion

oratcl 4.4 Install Problems;

 
Michael Resnick
Advisor

oratcl 4.4 Install Problems;

Hi all-

my sysadmin has TclTk 8.4.12 installed on our hp-ux 11.11 box. The DBA has Oracle9i installed on the same machine. I'm trying to help get oratcl4.4 installed but am having issues.

I've tried making oratcl in both shared and not-shared mode but that doesn't seem to help.

Here's what happens when I try to use the make test command:

usr/local/bin" TCLLIBPATH="." tclsh `echo ./tests/all.tcl`
/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
Oratcl_Init(): Failed to load /disc/app/oracle/product/9.2.0/lib/libclntsh.sl with error


while executing
"load ./libOratcl4.4.sl"
("package ifneeded" script)
invoked from within
"package require -exact Oratcl 4.4"
(file "./tests/defs.tcl" line 15)
invoked from within
"source [file join [file dirname [info script]] defs.tcl]"
(file "./tests/all.tcl" line 13)
*** Error exit code 1

Something is a mismatch somewhere - I just can't see it. Does anyone have a clue?

Thanks,

mike
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: oratcl 4.4 Install problems

If you want to dynamically load something that depends on libpthread or libcl, you must link libpthread or libcl into your executable. If you can't relink, you can use LD_PRELOAD:
This is for sh/ksh:
LD_PRELOAD=/usr/lib/libcl.2 executable ...