/usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divsi3' (669 Views)
Reply
Regular Advisor
GnanaShekar
Posts: 210
Registered: ‎01-04-2006
Message 1 of 5 (669 Views)

/usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divsi3'

Hi,

I am unable to run python on HPUX IA64. Please suggest.

$ which python
/usr/local/bin/python

$ ldd /usr/local/bin/python
libnsl.so.1 => /usr/lib/hpux32/libnsl.so.1
librt.so.1 => /usr/lib/hpux32/librt.so.1
libdl.so.1 => /usr/lib/hpux32/libdl.so.1
libdb.so => /usr/local/lib/hpux32/libdb.so
libstdc++.so => /usr/local/lib/libstdc++.so
libunwind.so.1 => /usr/lib/hpux32/libunwind.so.1
libm.so.1 => /usr/lib/hpux32/libm.so.1
libpthread.so.1 => /usr/lib/hpux32/libpthread.so.1
libc.so.1 => /usr/lib/hpux32/libc.so.1
libxti.so.1 => /usr/lib/hpux32/libxti.so.1
libpthread.so.1 => /usr/lib/hpux32/libpthread.so.1
libc.so.1 => /usr/lib/hpux32/libc.so.1
libc.so.1 => /usr/lib/hpux32/libc.so.1
libuca.so.1 => /usr/lib/hpux32/libuca.so.1

$ ldd -r /usr/local/bin/python
libnsl.so.1 => /usr/lib/hpux32/libnsl.so.1
librt.so.1 => /usr/lib/hpux32/librt.so.1
libdl.so.1 => /usr/lib/hpux32/libdl.so.1
libdb.so => /usr/local/lib/hpux32/libdb.so
libstdc++.so => /usr/local/lib/libstdc++.so
libunwind.so.1 => /usr/lib/hpux32/libunwind.so.1
libm.so.1 => /usr/lib/hpux32/libm.so.1
libpthread.so.1 => /usr/lib/hpux32/libpthread.so.1
libc.so.1 => /usr/lib/hpux32/libc.so.1
libxti.so.1 => /usr/lib/hpux32/libxti.so.1
libpthread.so.1 => /usr/lib/hpux32/libpthread.so.1
libc.so.1 => /usr/lib/hpux32/libc.so.1
libc.so.1 => /usr/lib/hpux32/libc.so.1
libuca.so.1 => /usr/lib/hpux32/libuca.so.1
symbol not found: __udivsi3 (/usr/local/bin/python)
symbol not found: __divsi3 (/usr/local/bin/python)
symbol not found: __udivsi3 (/usr/local/lib/libstdc++.so)
symbol not found: __divsi3 (/usr/local/lib/libstdc++.so)

$ python
/usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divsi3' in load module '/usr/local/bin/python'.
Killed

Please suggest,
Thanks & Regards,
Regular Advisor
GnanaShekar
Posts: 210
Registered: ‎01-04-2006
Message 2 of 5 (669 Views)

Re: /usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divsi3'

Hi,

Python seems to be working fine on another HPUX IA64 though.

# ldd /usr/bin/python
libxnet.so.1 => /usr/lib/hpux64/libxnet.so.1
libnsl.so.1 => /usr/lib/hpux64/libnsl.so.1
librt.so.1 => /usr/lib/hpux64/librt.so.1
libdl.so.1 => /usr/lib/hpux64/libdl.so.1
libpthread.so.1 => /usr/lib/hpux64/libpthread.so.1
libm.so.1 => /usr/lib/hpux64/libm.so.1
libstd_v2.so.1 => /usr/lib/hpux64/libstd_v2.so.1
libCsup.so.1 => /usr/lib/hpux64/libCsup.so.1
libunwind.so.1 => /usr/lib/hpux64/libunwind.so.1
libc.so.1 => /usr/lib/hpux64/libc.so.1
libxti.so.1 => /usr/lib/hpux64/libxti.so.1
libxti.so.1 => /usr/lib/hpux64/libxti.so.1
libuca.so.1 => /usr/lib/hpux64/libuca.so.1

# ldd -r /usr/bin/python
libxnet.so.1 => /usr/lib/hpux64/libxnet.so.1
libnsl.so.1 => /usr/lib/hpux64/libnsl.so.1
librt.so.1 => /usr/lib/hpux64/librt.so.1
libdl.so.1 => /usr/lib/hpux64/libdl.so.1
libpthread.so.1 => /usr/lib/hpux64/libpthread.so.1
libm.so.1 => /usr/lib/hpux64/libm.so.1
libstd_v2.so.1 => /usr/lib/hpux64/libstd_v2.so.1
libCsup.so.1 => /usr/lib/hpux64/libCsup.so.1
libunwind.so.1 => /usr/lib/hpux64/libunwind.so.1
libc.so.1 => /usr/lib/hpux64/libc.so.1
libxti.so.1 => /usr/lib/hpux64/libxti.so.1
libxti.so.1 => /usr/lib/hpux64/libxti.so.1
libuca.so.1 => /usr/lib/hpux64/libuca.so.1

# python
Python 2.4.3 (#2, Jun 12 2006, 18:08:18) [C] on hp-ux11
Type "help", "copyright", "credits" or "license" for more information.
>>>

Please suggest,
Thanks & Regards,
Acclaimed Contributor
Dennis Handly
Posts: 25,283
Registered: ‎03-06-2006
Message 3 of 5 (669 Views)

Re: /usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divsi3'

>dld.so: Unsatisfied code symbol '__divsi3' in load module '/usr/local/bin/python

This indicates your executable is linked incorrectly. It shouldn't have unsats and it shouldn't expect those symbols to be in another shlib.

>Python seems to be working fine on another HPUX IA64 though.

This python seems to be compiled with HP's aC++ compiler.
Respected Contributor
peter wolfe
Posts: 174
Registered: ‎06-11-2002
Message 4 of 5 (669 Views)

Re: /usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divsi3'

This error implies that you did
not link with libgcc.a (part
of a standard gcc installation).

I'm not sure what causes this since
I thought gcc knew to include this
in the link. Specifying it explicitly
should fix the problem.

Did you build python yourself?
A possibly simpler alternative is to
download/install Python from
Internet Express. Search for it
on software.hp.com. It's also
available from the Porting and Archving
Center:

http://hpux.cs.utah.edu/hppd/hpux/Languages/python-2.4.3/
Regular Advisor
GnanaShekar
Posts: 210
Registered: ‎01-04-2006
Message 5 of 5 (669 Views)

Re: /usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divsi3'

Hi,

Thanks,

I did not build python. I have downloaded it from Porting and Center for HP Unix url
http://hpux.connect.org.uk/hppd/hpux/Languages/python-2.4.3/

I see python has a lot of Run-time dependencies and they are not present in the system.

bash-3.2$ swlist | grep -ie ImageMagick -ie Mesa -ie ORBit -ie WindowMaker -ie atk -ie bison -ie bzip2 -ie db -ie expat -ie flex -ie fontconfig -ie freetype -ie gd -ie gdbm -ie gettext -ie ghostscript -ie glib -ie glib2 -ie jbigkit -ie jpeg -ie lcms -ie libXft -ie libXrender -ie libgcc -ie libiconv -ie libpng -ie libtool -ie libungif -ie libwmf -ie libxml2 -ie m4 -ie make -ie ncurses -ie openssl -ie pango -ie perl -ie tiff -ie xpm -ie zlib -ie gcc
perl D.5.8.8.A 5.8.8 Perl Programming Language
db 4.5.20 db
gcc 4.1.1 gcc
gettext 0.16.1 gettext
libgcc 4.1.1 libgcc
libiconv 1.11 libiconv
libxml2 2.6.26 libxml2
openssl 0.9.8d openssl
zlib 1.2.3 zlib
bash-3.2$

There is a HP Unix system where python works fine. All these run-time dependencies are also found there. I donot know if anybody installed each of them one by one.

I am new to HP Unix. I am working on HP Unix servers that somebody else has setup.

In sun / linux there is group for development related packages. Is there anything similar to that in HP Unix, which I can install?

Please suggest,
Thanks & Regards,

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.