List Info

Thread: HP-UX 11.11 and Oratcl




HP-UX 11.11 and Oratcl
country flaguser name
Greece
2007-10-03 07:14:22
Hello everybody.
I have problem to load Oratcl under HP-UX.
I get the following error:
# tclsh
%package require Oratcl
/usr/lib/dld.sl: Bad magic number for shared library: 
/opt/oracle/product/9.2.0/lib/libclntsh.sl
/usr/lib/dld.sl: Exec format error
Oratcl_Init(): Failed to load
/opt/oracle/product/9.2.0/lib/libclntsh.sl 
with error

%

First of all I've searched the Oratcl forum and found an
advice that we 
have to set the ORACLE_LIBRARY
variable. So I added this variable to my .profile
export
ORACLE_LIBRARY=/opt/oracle/product/9.2.0/lib32/libclntsh.sl

The file exists, but now I get a different error:
# tclsh
%package require Oratcl
/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
/opt/oracle/product/9.2.0/lib/libclntsh.sl 
with error
Oratcl_Init(): 
ORACLE_LIBRARY=/opt/oracle/product/9.2.0/lib32/libclntsh.sl
: file not found

%


My system is a PA-8500 CPU with HP-UX 11.11U.

Can anyone help me on this?

I saw also some advices for remaking Oratcl.
I can compile Oratcl again, but I need my application to run
on 
different HP-UX servers. Do I have then to
compile it for each one separate?

Thanks in advance,
Georgios
_______________________________________________
ActiveTcl mailing list
ActiveTcllistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

Re: HP-UX 11.11 and Oratcl
country flaguser name
United States
2007-10-03 08:12:22
 

-----Original Message-----
From: Georgios Kasapoglou

> I get the following error:
> # tclsh
> %package require Oratcl
> /usr/lib/dld.sl: Bad magic number for shared library: 
> /opt/oracle/product/9.2.0/lib/libclntsh.sl
> /usr/lib/dld.sl: Exec format error
> Oratcl_Init(): Failed to load
/opt/oracle/product/9.2.0/lib/libclntsh.sl
> with error

Okay, it's been too many years since I used HPUX, so I can
only provide
supposition. To get facts, you probably will need to work
with an HPUX
forum, or at least someone who has more recent knowledge of
HPUX than I.

That said, here's how I would start. I'd try web searching
for some of
these errors. The first error - bad magic number - sounds to
me as if
Oratcl was attempting to load a file that was not a
dynamically loadable
library. I have no idea why.


> The file exists, but now I get a different error:
> # tclsh
> %package require Oratcl
> /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
/opt/oracle/product/9.2.0/lib/libclntsh.sl
> with error
> Oratcl_Init(): 
>
ORACLE_LIBRARY=/opt/oracle/product/9.2.0/lib32/libclntsh.sl
: file not
found


Next up - the first error says that it attempted to load a
file, but
that file contained something called "Thread
Local". Perhaps the version
of oracle expects to run in threads, but your Tcl wasn't
built to
support threads?

If the ORACLE_LIBRARY file really exists, then I suspect
that last "file
not found" is merely a ripple error from the earlier
inability to load
it - because it didn't get loaded, someone's code assumed
the reason was
that it wasn't found.



> I saw also some advices for remaking Oratcl.
> I can compile Oratcl again, but I need my application
to run on 
> different HP-UX servers. Do I have then to
> compile it for each one separate?


What do you mean when you say "different HP-UX
servers". Do you mean
"same type of hardware, same operating system, same
version, different
names" or do you mean "various kinds of hardware,
same operating system,
different versions"?

A new version of oratcl probably should be built each time
you have to
change install path, operating system, incompatible
hardware, differing
versions of Oracle, differing versions of operating systems.
 That's a
general rule that may not be necessary depending on the
vendor's attempt
to provide compatibility.


-- 
<URL: http://wiki.tcl.tk/ >
Even if explicitly stated to the contrary, nothing in this
posting
should be construed as representing my employer's opinions.
<URL: mailto:lvirdengmail.com > <URL: http://www.purl.org/
NET/lvirden/
>
 
_______________________________________________
ActiveTcl mailing list
ActiveTcllistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

Re: HP-UX 11.11 and Oratcl
user name
2007-10-04 14:45:19
Georgios Kasapoglou wrote:
> I have problem to load Oratcl under HP-UX.
	...
> The file exists, but now I get a different error:
> # tclsh
> %package require Oratcl
> /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
/opt/oracle/product/9.2.0/lib/libclntsh.sl 
> with error
> Oratcl_Init(): 
>
ORACLE_LIBRARY=/opt/oracle/product/9.2.0/lib32/libclntsh.sl
: file not found
> %
> 
> My system is a PA-8500 CPU with HP-UX 11.11U.
> 
> Can anyone help me on this?
> 
> I saw also some advices for remaking Oratcl.
> I can compile Oratcl again, but I need my application
to run on 
> different HP-UX servers. Do I have then to
> compile it for each one separate?

Please see http://groups.google.ca/group/comp.lang.tcl/msg
/4ca741132e32b2f4.

Jeff
_______________________________________________
ActiveTcl mailing list
ActiveTcllistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )