Operating System - HP-UX
1826419 Members
3384 Online
109692 Solutions
New Discussion

Re: bash + unresolved symbols

 
VAS_1
Frequent Advisor

bash + unresolved symbols

Ever had one of those days? Today I am trying to install bash (V 3.1.16 or 3.00.16) which I got from the porting centre at hpux.cs.utah.edu I have previously done this successfully on 6 machines (all Integrity with 11.23).

I did install the dependent libraries gettext and libiconv.

I have unresolved symbols:

$ ldd -r `which bash`
[...]
symbol not found: __udivsi3 (/usr/local/bin/bash)
symbol not found: __umodsi3 (/usr/local/bin/bash)

Some kind of integer/arithmetic library? I have not run into this before, and am not sure what might have effected this change.

Ideas?

Regards,

Victoria

7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: bash + unresolved symbols

Shalom Victoria,

Its not unknown to get software from the porting centre that does not work.

As I recall one of those two releases worked for me on PA-RISC 11i v1.

So you might want to see if the download went wrong or check the swlog.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeff_Traigle
Honored Contributor

Re: bash + unresolved symbols

Hmmm... you said you installed the gettext and libiconv packages... did you install the libgcc package also? That is also a run-time dependency for bash according to the Porting Center page and may have already been installed on the other systems, but not on this one. Just a guess.
--
Jeff Traigle
VAS_1
Frequent Advisor

Re: bash + unresolved symbols

I have installed the 3.00.16 version on five or six boxes. So I tried it and the newer version.

I did install gettext and libiconv prior to installing either bash.

I did install libgcc today, although I do not have and have not had that on my systems prior to installing it on the one system today.

Oh I also re-downloaded the depot and tried again, just for grins.

Senthil Prabu.S_1
Trusted Contributor

Re: bash + unresolved symbols

Hi,
The pbm is because of gcc. So, install it correctly. And check libgcc.so is present. Also, look for the __udivsi3 in libgcc.so. you can do this by

strings libgcc.so | grep -i __udivsi3

This should show that symbol is there or not.
If not, reinstall GCC again. This should solve your pbm.

HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
VAS_1
Frequent Advisor

Re: bash + unresolved symbols

Installing gcc is not an option at this time, unfortunately. If it were, then the TC-OpenSource package has worked for me on other servers. I just wanted the bash executable. If I find a patch that stepped on my prior installation I'll reopen.
HM Li
Advisor

Re: bash + unresolved symbols

I have just installed the bash3.2 and vim7.0 on HP-UX hprx01 B.11.23 U ia64 which downloaded from http://hpux.connect.org.uk/


bash-3.2-ia64-11.23.depot.gz
gtk+-1.2.10-ia64-11.23.depot.gz
ncurses-5.5-ia64-11.23.depot.gz
gcc-4.1.1-ia64-11.23.depot.gz
libgcc-4.1.1-ia64-11.23.depot.gz
vim-7.0-ia64-11.23.depot.gz
gettext-0.16-ia64-11.23.depot.gz
libiconv-1.11-ia64-11.23.depot.gz
xpm-3.4k-ia64-11.23.depot.gz
glib-1.2.10-ia64-11.22.depot.gz
make-3.81-ia64-11.23.depot.gz

, the sample problem happened.
# bash
/usr/lib/hpux32/dld.so: Unsatisfied code symbol '__udivsi3' in load module '/usr/local/bin/bash'.
Killed

and where is libgcc.so? I can not find it.
Thank you.
GCMorris
New Member

Re: bash + unresolved symbols

This thread was closed some time ago. I hit a similar problem today. I was using different versions of software, but the results were similar.

We have a build process that requires several GNU modules including :-

gcc-4.1.1-ia64-11.23.depot
gettext-0.15-ia64-11.23.depot
libiconv-1.11-ia64-11.23.depot
bash-3.1.17-ia64-11.23.depot

The error we were getting on just one server is listed below. Loads of others worked fine.

hiptc058 # bash
/usr/lib/hpux32/dld.so: Unsatisfied code symbol '__udivsi3' in load module '/usr/local/bin/bash'.
Killed

I removed bash and gcc, then installed them, but bash still failed.

The lively cause of our problem was that we had incompatible versions of GNU modules.

root@hiptc058# swlist | grep -i gcc
gcc 4.1.1 gcc
libgcc 4.1.2 libgcc

I removed libgcc, but this did not fix the problem. I removed gcc, gettext, libiconv, bash then installed them again. This fixed the problem!