From: jp107@amtp.cam.ac.uk (Jon Peatfield)
Subject: Dynamic linking runtime problem on OSF/1 (gcc/xdvi)
Date: Tue, 1 Feb 1994 04:04:49 GMT [thread overview]
Message-ID: <JP107.94Feb1040450@kronos.amtp.cam.ac.uk> (raw)
Hi, I'm currently trying to build TeX using the new web2c-6.0
distribution, and all is well with that. However I have a weird
problem with xdvik-1.5, which causes a run time link error in
libXt.so for the symbol _XtInherit.
First some info:
uname -a:
OSF1 spock.amtp.cam.ac.uk V1.3 111 alpha
This machine is an AXP 3000/300L but I get the same results on a
3000/400 and a couple of other 3000/300Ls as well. All were installed
from the 1.3 CD set which we were shipped in November last year.
Gcc at version 2.5.4 (yes I know 2.5.8 was released...)
the link line for xdvik is:
gcc-2.5.4 -g -o xdvi xdvi.o dvi_init.o dvi_draw.o epsf.o \
font-open.o fontfmts.o tpic.o util.o vf.o alloca.o \
../kpathsea/kpathsea.a -lXaw -lXmu -lXt -lXext -lX11 -lm -ldnet_stub
I've also tried linking just using ld as in (by observing gcc -v 's libs):
ld -G 8 -O1 -call_shared -o xdvi /usr/lib/cmplrs/cc/crt0.o \
-L/server1/gcc/gcc-254/alpha/alpha//lib/gcc-lib/alpha-DEC-osf1/2.5.4 \
-L/usr/lib/cmplrs/cc -L/server1/gcc/gcc-254/alpha/alpha//lib \
xdvi.o dvi_init.o dvi_draw.o epsf.o font-open.o fontfmts.o \
tpic.o util.o vf.o alloca.o ../kpathsea/kpathsea.a -lXaw \
-lXmu -lXt -lXext -lX11 -lm -ldnet_stub -lgcc -lc -lgcc
and get a version which behaves the same. If I use static linking the
problem goes away.
Further if I use dynamic linking but link in libXt.a rather than the
dynamic version I don't see the problem, e.g.
gcc-2.5.4 -v -g -o xdvi.three xdvi.o dvi_init.o dvi_draw.o epsf.o \
font-open.o fontfmts.o tpic.o util.o vf.o alloca.o \
../kpathsea/kpathsea.a -lXaw -lXmu /usr/lib/libXt.a \
-lXext -lX11 -lm -ldnet_stub
I don't think it is a gcc problem but if anyone knows better I'd be
glad to hear from them.
The problem is that /sbin/loader gives the error:
10885:./xdvi: /sbin/loader: Fatal Error: search_for_undefineds: \
symbol _XtInherit should not have any relocation entry
Setting the magic env variable _RLD_ARGS to "-trace" gives the output:
10890:./xdvi: [loader] Entering RLD through MAIN
10890:./xdvi: [loader] mapped Main at 0x120000000
10890:./xdvi: [loader] mapped /usr/shlib/libXt.so at 0x3ff80360000
10890:./xdvi: [loader] mapped /usr/shlib/libXaw.so at 0x3ff803e0000
10890:./xdvi: [loader] mapped /usr/shlib/libXmu.so at 0x3ff803c0000
10890:./xdvi: [loader] mapped /usr/shlib/libXext.so at 0x3ff80310000
10890:./xdvi: [loader] mapped /usr/shlib/libX11.so at 0x3ff80280000
10890:./xdvi: [loader] mapped /usr/shlib/libm.so at 0x3ff807c0000
10890:./xdvi: [loader] mapped /usr/shlib/libdnet_stub.so at 0x3ff80800000
10890:./xdvi: [loader] mapped /usr/shlib/libc.so at 0x3ff80080000
10890:./xdvi: [loader] found widgetClassRec in /usr/shlib/libXt.so \
for Main at 0x3ffc0212540
10890:./xdvi: [loader] found commandWidgetClass in /usr/shlib/libXaw.so \
for Main at 0x3ffc0242730
10890:./xdvi: [loader] found _XtInheritTranslations in /usr/shlib/libXt.so \
for Main at 0x3ffc0212538
10890:./xdvi: [loader] found compositeWidgetClass in \
/usr/shlib/libXt.so for Main at 0x3ffc02103e0
10890:./xdvi: [loader] found _iob in /usr/shlib/libc.so for \
Main at 0x3ffc008b820
10890:./xdvi: [loader] found widgetClass in /usr/shlib/libXt.so \
for Main at 0x3ffc0212938
10890:./xdvi: [loader] found XtShellStrings in /usr/shlib/libXt.so \
for Main at 0x3ffc0217050
10890:./xdvi: [loader] found formWidgetClass in /usr/shlib/libXaw.so \
for Main at 0x3ffc0242d70
10890:./xdvi: [loader] found XtStrings in /usr/shlib/libXt.so for \
Main at 0x3ffc0216850
10890:./xdvi: [loader] found viewportWidgetClass in /usr/shlib/libXaw.so \
for Main at 0x3ffc024b2b0
10890:./xdvi: [loader] found errno in /usr/shlib/libc.so for \
./xdvi at 0x3ffc00a5760
10890:./xdvi: [loader] found environ in /usr/shlib/libc.so for \
./xdvi at 0x3ffc009fd80
10890:./xdvi: /sbin/loader: Fatal Error: search_for_undefineds: \
symbol _XtInherit should not have any relocation entry
Which is longer but no more helpful. Firstly it appears that the
symbol is found in /usr/shlib/libXt.so, (nm says it is there), and
adding -prompt or -ignore_unresolved to _RLD_ARGS gives no other info.
I assume that this message is telling me that there is something
broken about the shared library (or libraries) but I can't guess what.
Looking in /sbin shows that there are 3 versions of the loader dynamic
linker, /sbin/loader, /sbin/loader.120 and /sbin/loader.130. I assume
that the last two refer to V1.2 and V1.3 of OSF/1 so has the install
process messed up and not installed the V1.3 version or does
/sbin/loader call the correct version depending on other info it has?
What should I do now, I've exhausted all the things I can think of and
got nowhere? I'm happy with a static linked program for a while, but
really want to nail the problem with the linker.
Please reply by mail (so I see it faster) and I'll summarise if there
is much interest.
-- Jon Peatfield (DAMTP unix network admin)
--
Jon Peatfield, Computer Officer, the DAMTP, University of Cambridge
Telephone: (+44 223) 3-37852 Mail: J.S.Peatfield@amtp.cam.ac.uk
Friends don't let friends use PP. PP: Just say NO.
next reply other threads:[~1994-02-01 4:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-02-01 4:04 Jon Peatfield [this message]
1994-02-01 14:18 ` Dynamic linking runtime problem on OSF/1 (gcc/xdvi) Bob Williams
1994-02-06 8:00 ` Jon Peatfield
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox