Operating System - HP-UX
1833355 Members
3832 Online
110051 Solutions
New Discussion

/usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divdi3' in load module '/shashi/Python-2.4.2/buil

 
SOLVED
Go to solution
shashikala K.H
Occasional Advisor

/usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divdi3' in load module '/shashi/Python-2.4.2/buil


Hi all,
This is shashikala. I built Python on 11.23IA, the built was successful. while gmake tests iam getting above error.Please help to resolve this error.

Thanks ,
shashikala
9 REPLIES 9
PeterWolfe
Respected Contributor
Solution

Re: /usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divdi3' in load module '/shashi/Python-2.4.2/buil

Easy answer:

Just download a pre-built version from
HP-UX Porting and Archive Center:

http://hpux.connect.org.uk/hppd/cgi-bin/search?package=on&description=on&term=python

Hard answer:

The missing symbol is from gcc's
libgcc.a. I've seen this compilation
issue for several open source packages
and am not quite sure what causes
it. It's fixed if you explicitly include
libgcc.a on the link line. Try a
configure CC="gcc -static-libgcc" to
alternatively, configure LDFLAGS=-Lto dir containing libgcc.a>
libgcc.a is in the gcc installation directory which
can vary depending on where you got gcc
from. The gcc that HP distributes
installs to /opt/hp-gcc and libgcc.a is
located in:

/opt/hp-gcc/lib/gcc/ia64-hp-hpux11.23/3.4.5/libgcc.a

(and that path obviously varies
depending on your UX version and gcc
version).
Senthil Prabu.S_1
Trusted Contributor

Re: /usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divdi3' in load module '/shashi/Python-2.4.2/buil

Hi Shashikala,
The problem is that the .so files get linked without mentioning libgcc.a, and apparently this platform won't resolve the references to link to the same routines in the backend.

One simple work around is use the Makefile.shlib for build.


HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Arunvijai_4
Honored Contributor

Re: /usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divdi3' in load module '/shashi/Python-2.4.2/buil

Hi Shashikala,

I hope you and Ambika are working in HP,India as part of Internet express team. You are trying to build variuos IE products in 11.11, 11.23 IA-64 and 11.23 PA. I am sure, you will face many issues while compiling, testing. You can always post issues here, but try to assign points to people who responded to your questions.

I have assigned points to 0 of 10 responses to my questions.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Senthil Prabu.S_1
Trusted Contributor

Re: /usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divdi3' in load module '/shashi/Python-2.4.2/buil

Hi,
It's nice to hear you people are working on Internet Express..:-).

The simple solution is, set your LDFLAGS pointing to the place where the static gcc library is present.

Or edit your make file, so that only static version of gcc is used.


HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
PeterWolfe
Respected Contributor

Re: /usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divdi3' in load module '/shashi/Python-2.4.2/buil

Arun's post just reminded me
of the other easy answer I
neglected. Assuming you are
not on the Internet Express team,
the other source for pre-built software
is Internet Express which is available
for Tru64 and HP-UX. The HP-UX
version is here:

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1123

and includes python 2.4.2
Muthukumar_5
Honored Contributor

Re: /usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divdi3' in load module '/shashi/Python-2.4.2/buil

prabhu and arun.... The time which you involved in IExpress was over... ;) (Good to avoid this private conversation as well).

Regarding to the problem,

Try to export LD_LIB_PATH (64 bit) or SHLIB_PATH (32 bit ) with the library location. It will solve the problem.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: /usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divdi3' in load module '/shashi/Python-2.4.2/buil

Hi Shashikala,

You need to export SHLIB_PATH=$SHLIB_PATH:/usr/local/lib/libgcc.a (or, it depends on where you have libgcc.a)

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
shashikala K.H
Occasional Advisor

Re: /usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divdi3' in load module '/shashi/Python-2.4.2/buil

Hi All,
Thanks for your response. It's a great help for me.
My rating is 8.

Thanks and Regards,
shashikala

Senthil Prabu.S_1
Trusted Contributor

Re: /usr/lib/hpux32/dld.so: Unsatisfied code symbol '__divdi3' in load module '/shashi/Python-2.4.2/buil

Hi,
Assigning points is done in different way :-). That is whyen you, the author opens your post, for all replies you get, there is a compo box on the top right most, there you can click it to open and assign points.


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