1752801 Members
5478 Online
108789 Solutions
New Discussion юеВ

Re: Expect problem...

 
piyush mathiya
Trusted Contributor

Expect problem...

Hi Gurus,
I am facing problem while using expect. I checked so many threads similar to my problem, but not working.

I installed, expect-5.43-ia64-11.23.depot & tcltk-8.5.7-ia64-11.23.depot successfully.

Also configure the variable "LD_LIBRARY_PATH"

Softlink also created in /usr/local/lib.
ln -s libtcl8.4.sl libtcl.sl

Still not working, getting below error.
# /usr/local/bin/expect
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'Tcl_Release' in load module '/usr/local/lib/hpux32/libexpect.so'.
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'Tcl_ErrnoMsg' in load module '/usr/local/lib/hpux32/libexpect.so'.
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'Tcl_NotifyChannel' in load module '/usr/local/lib/hpux32/libexpect.so'.
Killed
# uname -a
HP-UX host1 B.11.23 U ia64 2106583522 unlimited-user license

Your suggestions will be highly appreciated...!

Thanks & Regards,
Piyush Mathiya

7 REPLIES 7
R.K. #
Honored Contributor

Re: Expect problem...

Hi Piyush,

Check for this patch:
PHSS_39821 : s700_800 11.23 linker + fdp cumulative patch

This has libraries like /usr/lib/hpux32/dld.so
May be this can help....just a guess !

Regds,
R.K.
Don't fix what ain't broke
Steven Schweda
Honored Contributor

Re: Expect problem...

> /usr/lib/hpux32/dld.so: Unsatisfied code
> symbol 'Tcl_Release' in load module
> '/usr/local/lib/hpux32/libexpect.so'.

> This has libraries like
> /usr/lib/hpux32/dld.so

/usr/lib/hpux32/dld.so is the one who is
complaining about the missing libraries.
It's not the thing which is missing.

> Also configure the variable
> "LD_LIBRARY_PATH"

And if I were psychic, so I might know what
you meant by "configure the variable", then
I might know if you did it right. But I'm
not, so I don't. As usual, showing actual
commands can be more helpful than vague
descriptions.
R.K. #
Honored Contributor

Re: Expect problem...

Acknowledged the same Steven..Thanks !
Don't fix what ain't broke
Dennis Handly
Acclaimed Contributor

Re: Expect problem...

Whatever the problem is, it keeps happening over and over. (I would say this isn't how to design software. ;-)

About the only way this can fail is that there are two versions of the same shlib and either the wrong version is installed or LD_LIBRARY_PATH is pointing to the wrong one.
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=941420
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1246647
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1345216

From the last one, it appears that there is an evil one in: /usr/obam/lib/
zkjian517
Occasional Advisor

Re: Expect problem...

/usr/lib/hpux32/dld.so found that the module
'/usr/local/lib/hpux32/libexpect.so' refered these symbols, but it couldn't find the C header file which defined those symbols, it's clear that one file of the tcltk defined these symbols, so you should find out the file which defined those symbols and point the var "LD_LIBARAR_PATH" to the directory where the file exists.
hope to be helpful...
Dennis Handly
Acclaimed Contributor

Re: Expect problem...

>zkjian517: it couldn't find the C header file which defined those symbols

Headers declare variables, objects or load modules define them.

>so you should find out the file which defined those symbols and point the var "LD_LIBARARY_PATH" to the directory

ldd(1) can be used to show which shlibs are being used. It shouldn't be in /usr/obam/.
piyush mathiya
Trusted Contributor

Re: Expect problem...

Thanks Guys fot the reply.

I didn't check yet on the server, I will check & put the status here