-----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:lvirden gmail.com > <URL: http://www.purl.org/
NET/lvirden/
>
_______________________________________________
ActiveTcl mailing list
ActiveTcl listserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs
|