1753349 Members
4854 Online
108792 Solutions
New Discussion юеВ

Errors running expect

 
SOLVED
Go to solution

Errors running expect

I have just installed expect on one of our servers and I get the following errors when I try to run it:

host1:/home/root >/usr/local/bin/expect
/usr/lib/dld.sl: Unresolved symbol: Tcl_Release (plabel) from /usr/local/lib/libexpect.sl
/usr/lib/dld.sl: Unresolved symbol: Tcl_ErrnoMsg (plabel) from /usr/local/lib/libexpect.sl
Abort(coredump)

I am using the latest versions of expect, tcltk, etc. from the HP-UX Porting Centre and I have installed all the runtime dependencies that are listed.

I would be grateful for any suggestions

The following may or may not be useful....

host1:/home/root >ldd /usr/local/lib/libexpect.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/local/lib/libtcl.sl => /usr/obam/lib/libtcl.sl
host1:/home/root >nm /usr/local/lib/libexpect.sl|egrep 'Tcl_ErrnoMsg|Tcl_Release'
Tcl_ErrnoMsg | |undef |code |
Tcl_ErrnoMsg | 58000|uext |stub |
Tcl_ErrnoMsg | 141184|static|entry |$CODE$
Tcl_ErrnoMsg | 141208|static|entry |$CODE$
Tcl_Release | -4|uext |stub |
Tcl_Release | |undef |code |
8 REPLIES 8

Re: Errors running expect

I suppose it might be helpful if I mentioned some versions ...

HP-UX 11.11
Expect 5.43
Tcltk 8.5.7
libXft 2.1.13
Dennis Handly
Acclaimed Contributor
Solution

Re: Errors running expect

Where should these symbols be defined?
Can you use nm on usr/local/bin/expect and /usr/obam/lib/libtcl.sl. Is the latter the right one, since not in /usr/local/lib?

Re: Errors running expect


host1:/home/root >nm /usr/local/bin/expect


Symbols from /usr/local/bin/expect:

Name Value Scope Type Subspace

$$dyncall | 7676|extern|milli |$MILLICODE$
$$dyncall_external | 7708|extern|milli |$MILLICODE$
$$dyncall_external_20| 7732|extern|milli |$MILLICODE$
$ARGV |1073745920|extern|data |$PFA_COUNTER$
$PFA_C_END |1073745928|extern|data |$PFA_COUNTER_END$
$PFA_C_START |1073745928|extern|data |$PFA_COUNTER$
$RECOVER_END | 15024|extern|data |$RECOVER_END$
$RECOVER_START | 15024|extern|data |$RECOVER_START$
$START$ | 7752|extern|priprog|
$START$ | 7832|extern|code |$CODE$
$UNWIND_END | 14976|extern|data |$UNWIND_END$
$UNWIND_START | 14176|extern|data |$UNWIND_START$
$global$ |1073746232|extern|data |$GLOBAL$
$real_mcount_ptr_null| 8252|static|code |$CODE$
BS$maptsd |1073746232|static|data |$BSS$
C$10 | 14056|static|data |$LIT$
C$16 | 13848|static|data |$LIT$
C$29 | 14120|static|data |$LIT$
C$43$__map_dld | 13784|static|data |$LIT$
Expect_Init | |undef |code |
Expect_Init | 13312|uext |stub |
L$0001 | 8068|static|code |$CODE$
L$0002 | 7964|static|code |$CODE$
L$0004 | 7996|static|code |$CODE$
L$0005 | 8120|static|code |$CODE$
L$0007 | 8120|static|code |$CODE$
L$0008 | 8192|static|code |$CODE$
L$plab_start |1073746016|static|data |$DATA$
M$42$__map_dld |1073745952|static|data |$DATA$
S$12DD$itoa | 14040|static|data |$LIT$
S$18DD$itoa | 13768|static|data |$LIT$
Tcl_CreateInterp | |undef |code |
Tcl_CreateInterp | 13264|uext |stub |
Tcl_Eval | |undef |code |
Tcl_Eval | 13376|uext |stub |
Tcl_FindExecutable | |undef |code |
Tcl_FindExecutable | 13280|uext |stub |
Tcl_Init | |undef |code |
Tcl_Init | 13296|uext |stub |
_CPU_KEYBITS_1 |1073745940|extern|data |$DATA$
_CPU_REVISION |1073745936|extern|data |$DATA$
_FPU_MODEL |1073745932|extern|data |$DATA$
_FPU_REVISION |1073745934|extern|data |$DATA$
_SYSTEM_ID |1073745928|extern|data |$DATA$
__SYSTEM_ID | 532|extern|abs |$BSS$
___fini_len |1073746024|extern|data |$SHORTDATA$
___fini_start |1073746032|extern|data |$SHORTDATA$
___init_len |1073746028|extern|data |$SHORTDATA$
___init_start |1073746036|extern|data |$SHORTDATA$
___stack_zero | 8192|extern|abs |$SHLIB_INFO$
__cxperf_dld_hook |1073746288|undef |common |$BSS$
__d_trap | 7768|extern|entry |
__d_trap | 8300|extern|code |$CODE$
__d_trap_fptr |1073745948|extern|data |$DATA$
__data_start |1073745920|extern|data |$DATA_START$
__dld_flags |1073746224|extern|data |$GLOBAL$
__dld_hook |1073746220|extern|data |$GLOBAL$
__dld_list |1073746216|extern|data |$GLOBAL$
__dld_loc |1073746264|undef |common |$BSS$
__dld_path |1073746284|undef |common |$BSS$
__do_thread_init | 12816|static|entry |$CODE$
__errno | |undef |code |
__errno | 11000|uext |stub |
__exit | 11160|static|entry |$CODE$
__fini_len |1073746024|extern|data |$SHORTDATA$
__fini_start |1073746032|extern|data |$SHORTDATA$
__get_tp | 13256|static|entry |$CODE$
__init_len |1073746028|extern|data |$SHORTDATA$
__init_start |1073746036|extern|data |$SHORTDATA$
__iob | |undef |data |
__islwp |1073746256|undef |common |$BSS$
__ismt |1073746276|undef |common |$BSS$
__map_dld | 9288|static|entry |$CODE$
__profil_size | 16|extern|abs |$BSS$
__set_tp | 13248|static|entry |$CODE$
__sys_atexit | |undef |code |
__sys_atexit | 11016|uext |stub |
__tdata_addr |1073746260|undef |common |$BSS$
__tdata_sz |1073746280|undef |common |$BSS$
__tdsize | 0|extern|abs |$BSS$
__text_start | 4096|extern|data |$SHLIB_INFO$
__tls_init |1073746296|undef |common |$BSS$
__tls_prealloc_dtv |1073746292|undef |common |$BSS$
__tool_init |1073746312|undef |common |$BSS$
_clear_counters | 7784|extern|entry |
_clear_counters | 8264|extern|code |$CODE$
_crt_close | 11128|static|entry |$CODE$
_crt_errno |1073746040|static|data |$SHORTDATA$
_crt_mmap | 11096|static|entry |$CODE$
_crt_open | 11032|static|entry |$CODE$
_crt_read | 11064|static|entry |$CODE$
_crt_sysconf | 11352|static|entry |$CODE$
_crt_syserror | 11576|static|code |$CODE$
_crt_utssys | 11384|static|entry |$CODE$
_edata |1073746232|extern|data |$BSS$
_end |1073746316|extern|data |$BSS$
_environ |1073745944|extern|data |$DATA$
_etext | 15028|extern|data |$RECOVER_END$
_fp_status | 0|extern|abs |$BSS$
_ktepv |1073746300|undef |common |$BSS$
_mcount | 7800|extern|entry |
_mcount | 8216|extern|code |$CODE$
_real_mcount_ptr |1073746304|undef |common |$BSS$
_sr4export | 8272|extern|code |$CODE$
_start | |undef |code |
_start | 7816|uext |stub |
_tepv |1073746308|undef |common |$BSS$
_thread_init |1073746268|undef |common |$BSS$
_utssys | 11512|static|entry |$CODE$
close | 11224|static|entry |$CODE$
edata |1073746232|extern|data |$BSS$
end |1073746316|extern|data |$BSS$
environ |1073745944|extern|data |$DATA$
error | 8308|static|entry |$CODE$
error | 11604|static|entry |$CODE$
etext | 15028|extern|data |$RECOVER_END$
exit | |undef |code |
exit | 13408|uext |stub |
exp_cmdfile | |undef |data |
exp_cmdfilename | |undef |data |
exp_interactive | |undef |data |
exp_interpret_cmdfile| |undef |code |
exp_interpret_cmdfile| 13424|uext |stub |
exp_interpret_cmdfilename| |undef |code |
exp_interpret_cmdfilename| 13440|uext |stub |
exp_interpreter | |undef |code |
exp_interpreter | 13344|uext |stub |
exp_parse_argv | |undef |code |
exp_parse_argv | 13328|uext |stub |
fprintf | |undef |code |
fprintf | 13392|uext |stub |
invoke_fini | 10984|static|entry |$CODE$
invoke_fini | 12788|static|entry |$CODE$
invoke_init_fini | 12584|static|entry |$CODE$
itoa | 8580|static|entry |$CODE$
itoa | 11876|static|entry |$CODE$
lseek | 11320|static|entry |$CODE$
lwp_getprivate | 11448|static|entry |$CODE$
lwp_getprivate | 13216|extern|entry |
lwp_getprivate | 13256|extern|code |$CODE$
lwp_setprivate | 11416|static|entry |$CODE$
lwp_setprivate | 13232|extern|entry |
lwp_setprivate | 13248|extern|code |$CODE$
main | 13456|extern|code |$CODE$
main | 13456|extern|entry |
memcpy | 9148|static|entry |$CODE$
memcpy | 12444|static|entry |$CODE$
mmap | 11480|static|entry |$CODE$
noshlibs | 7692|static|code |$MILLICODE$
open | 11192|static|entry |$CODE$
read | 11256|static|entry |$CODE$
sprintf | |undef |code |
sprintf | 13360|uext |stub |
strlen | 8532|static|entry |$CODE$
strlen | 11828|static|entry |$CODE$
syserror | 11544|static|code |$CODE$
taddr |1073746272|undef |common |$BSS$
write | 11288|static|entry |$CODE$


host1:/home/root >nm /usr/obam/lib/libtcl.sl
nm: /usr/obam/lib/libtcl.sl: no symbols
Dennis Handly
Acclaimed Contributor

Re: Errors running expect

>nm /usr/local/bin/expect

(I only needed to see those two missing symbols.)

>nm /usr/obam/lib/libtcl.sl
>nm: /usr/obam/lib/libtcl.sl: no symbols

The proper tool for shlibs is odump:
odump -slimp -slexp /usr/obam/lib/libtcl.sl |
grep -e Tcl_ErrnoMsg -e Tcl_Release

Re: Errors running expect

Thanks for the response, I get no matches when I run that command

Re: Errors running expect

Fixed it ... the SHLIB_PATH was wrong, it should have been /usr/local/lib as you suggested ... points assigned, many thanks
Dennis Handly
Acclaimed Contributor

Re: Errors running expect

>points assigned, many thanks

Please read the following about assigning points. (You need to push the submit button.)
http://forums.itrc.hp.com/service/forums/helptips.do?#33

Re: Errors running expect

Sorry, had a bit of a 'Friday' moment ...