- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- expect, tcl, oratcl problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 12:51 AM
тАО05-30-2007 12:51 AM
I installed tcltk-8.4.14 from http://hpux.cs.utah.edu on hp-ux 11.23 (Itanium). I also installed oratcl4.4 and expect 5.43. The problem is when we try to run our scripts it give the error:
/usr/lib/hpux32/dld.so: Unable to find library '/u01/app/oracle/product/9.2.0/client_1/lib/libclntsh.sl'.
Oratcl_Init(): Failed to load /u01/app/oracle/product/9.2.0/client_1/lib/libclntsh.sl with error
while executing
"load /usr/local/lib/Oratcl4.4/libOratcl4.4.sl"
("package ifneeded" script)
invoked from within
"package require Oratcl"
(file "/opt/omd/bin/execsql" line 2)
Ok there is no librray called "libclntsh.sl" , actually this must be libclntsh.so. Any ssuggestions?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 01:02 AM
тАО05-30-2007 01:02 AM
Re: expect, tcl, oratcl problem
http://hpux.cs.utah.edu/hppd/hpux/Tcl/expect-5.43/
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 01:40 AM
тАО05-30-2007 01:40 AM
Re: expect, tcl, oratcl problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 02:45 AM
тАО05-30-2007 02:45 AM
Re: expect, tcl, oratcl problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 05:55 AM
тАО05-30-2007 05:55 AM
Re: expect, tcl, oratcl problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 06:50 PM
тАО05-30-2007 06:50 PM
Re: expect, tcl, oratcl problem
You may have to rebuild but you could try setting up a symlink from .sl to .so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 10:59 PM
тАО05-30-2007 10:59 PM
Re: expect, tcl, oratcl problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 11:21 PM
тАО05-30-2007 11:21 PM
Re: expect, tcl, oratcl problem
This message indicates you are using IPF.
>i already tried the symbolic link but it is not succesful
What does file(1) say about /u01/app/oracle/product/9.2.0/client_1/lib/libclntsh.sl
(Or where you put that symlink.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2007 04:08 AM
тАО05-31-2007 04:08 AM
Re: expect, tcl, oratcl problem
But expect scripts still gives error. When i call tcl from an expect script such as:
#!/usr/local/bin/expect
package require Oratcl
it gives the error:
tel1t1:/tmp#./testt.exp
/usr/lib/hpux32/dld.so: Cannot dlopen load module '/usr/lib/hpux32/libpthread.so.1' because it contains thread specific data.
Oratcl_Init(): Failed to load /u01/app/oracle/product/9.2.0/client_1/lib32/libclntsh.so with error
Oratcl_Init(): ORACLE_LIBRARY = /u01/app/oracle/product/9.2.0/client_1/lib32/libclntsh.so : file not found.
Any suggestions about this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2007 08:32 AM
- Tags:
- TLS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2007 08:33 AM
тАО05-31-2007 08:33 AM
Re: expect, tcl, oratcl problem
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2007 08:34 PM
тАО05-31-2007 08:34 PM
Re: expect, tcl, oratcl problem
cc -O -I../unix -L/usr/local/lib/hpux32 -Wl,-E -o expect exp_main_exp.o libexpect.a -L/usr/local/lib/hpux32 -ltcl -ldld -lpthread -lxnet -lm -Wl,+s,+b,/usr/local/lib/hpux32:/usr/local/lib:.
ld: Unsatisfied symbol "expStateAnyIs" in file libexpect.a[expect.o]
ld: Unsatisfied symbol "expStateCheck" in file libexpect.a[expect.o]
ld: Unsatisfied symbol "exp_forked" in file libexpect.a[exp_main_sub.o]
ld: Unsatisfied symbol "expDevttyGet" in file libexpect.a[expect.o]
ld: Unsatisfied symbol "expect_key" in file libexpect.a[exp_main_sub.o]
ld: Unsatisfied symbol "exp_trap_on" in file libexpect.a[exp_tty.o]
ld: Unsatisfied symbol "exp_new_state" in file libexpect.a[expect.o]
ld: Unsatisfied symbol "expStateFromChannelName" in file libexpect.a[expect.o]
ld: Unsatisfied symbol "exp_flageq_code" in file libexpect.a[expect.o]
ld: Unsatisfied symbol "exp_error" in file libexpect.a[exp_main_sub.o]
ld: Unsatisfied symbol "expCloseOnExec" in file libexpect.a[exp_main_sub.o]
ld: Unsatisfied symbol "exp_free_state_single" in file libexpect.a[expect.o]
ld: Unsatisfied symbol "exp_init_spawn_ids" in file libexpect.a[exp_main_sub.o]
ld: Unsatisfied symbol "exp_i_update" in file libexpect.a[expect.o]
ld: Unsatisfied symbol "exp_configure_count" in file libexpect.a[exp_event.o]
ld: Unsatisfied symbol "exp_new_i_complex" in file libexpect.a[expect.o]
ld: Unsatisfied symbol "exp_init_spawn_id_vars" in file libexpect.a[exp_main_sub.o]
ld: Unsatisfied symbol "exp_init_unit_random" in file libexpect.a[exp_main_sub.o]
ld: Unsatisfied symbol "expStdinoutGet" in file libexpect.a[exp_main_sub.o]
ld: Unsatisfied symbol "exp_new_i_simple" in file libexpect.a[expect.o]
ld: Unsatisfied symbol "exp_close" in file libexpect.a[exp_chan.o]
ld: Unsatisfied symbol "exp_free_i" in file libexpect.a[expect.o]
ld: Unsatisfied symbol "exp_onexit_action" in file libexpect.a[exp_main_sub.o]
ld: Unsatisfied symbol "exp_create_commands" in file libexpect.a[exp_main_sub.o]
ld: Unsatisfied symbol "exp_init_most_cmds" in file libexpect.a[exp_main_sub.o]
ld: Unsatisfied symbol "exp_trap_off" in file libexpect.a[exp_tty.o]
ld: Unsatisfied symbol "expDevttyIs" in file libexpect.a[exp_inter.o]
ld: Unsatisfied symbol "expStdinoutIs" in file libexpect.a[exp_inter.o]
ld: Unsatisfied symbol "exp_free_state" in file libexpect.a[expect.o]
ld: Unsatisfied symbol "expStateCurrent" in file libexpect.a[expect.o]
30 errors.
*** Error exit code 1
Stop.
How can compile expect with the option -lpthread ?
Thanks...
- Tags:
- unsat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2007 09:51 PM
тАО05-31-2007 09:51 PM
Re: expect, tcl, oratcl problem
You can search your libs and objects with:
$ nm -pxAN libs ... objs | fgrep -e expStateAnyIs -e expStateCheck ...
(Upper case would be definitions.)
If you don't know how to fiddle with the build system, you could always use: LDOPTS=-lpthread
Or going back to your initial version, if you use:
$ LD_PRELOAD=/usr/lib/hpux32/libpthread.so.1 ./testt.exp
- Tags:
- LD_PRELOAD
- nm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2007 11:16 PM
тАО05-31-2007 11:16 PM
Re: expect, tcl, oratcl problem
Thanks, Dennis...