Operating System - Linux
1752660 Members
5708 Online
108788 Solutions
New Discussion юеВ

Re: expect, tcl, oratcl problem

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: expect, tcl, oratcl problem

You have not assigned any points yet. Please read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
Turgay Cavdar
Honored Contributor

Re: expect, tcl, oratcl problem

I installed expect from the depot with the command swinstall -s /file.depot. And it is successfully but when i try to compile from binary with the command ./configure --enable-threads --enable-shared --with-tcl=/usr/local/lib/tcltk --with-tk=/usr/local/lib/tcltk and run make i failed.It stops with the fallowing error:
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...
Dennis Handly
Acclaimed Contributor

Re: expect, tcl, oratcl problem

How did you add -lpthread to the link line? Did you remove an existing lib or change the order? Do you know what lib has those exp* symbols? expStateAnyIs ...

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
Turgay Cavdar
Honored Contributor

Re: expect, tcl, oratcl problem

As you said when i export LD_PRELOAD then expect works fine.

Thanks, Dennis...