Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Dynamic linking runtime problem on OSF/1 (gcc/xdvi)
@ 1994-02-01  4:04 Jon Peatfield
  1994-02-01 14:18 ` Bob Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Peatfield @ 1994-02-01  4:04 UTC (permalink / 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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Dynamic linking runtime problem on OSF/1 (gcc/xdvi)
  1994-02-01  4:04 Dynamic linking runtime problem on OSF/1 (gcc/xdvi) Jon Peatfield
@ 1994-02-01 14:18 ` Bob Williams
  1994-02-06  8:00   ` Jon Peatfield
  0 siblings, 1 reply; 3+ messages in thread
From: Bob Williams @ 1994-02-01 14:18 UTC (permalink / raw)



Where can we get the new web2c-6.0 distribution?
Have you had any problems building this version on your Alpha osf1?
We would be interested in hearing about solutions to making xdvik
on the Alpha.

Bob Williams


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Dynamic linking runtime problem on OSF/1 (gcc/xdvi)
  1994-02-01 14:18 ` Bob Williams
@ 1994-02-06  8:00   ` Jon Peatfield
  0 siblings, 0 replies; 3+ messages in thread
From: Jon Peatfield @ 1994-02-06  8:00 UTC (permalink / raw)


> Where can we get the new web2c-6.0 distribution?
> Have you had any problems building this version on your Alpha osf1?
> We would be interested in hearing about solutions to making xdvik
> on the Alpha.

Try the CTAN TeX archive sites:

  Please use the host nearest you: 

    Host                        Internet address        TeX root dir
    ----                        ----------------        ------------
    ftp.shsu.edu                192.92.115.10           tex-archive
    ftp.tex.ac.uk               134.151.44.19           tex-archive
    ftp.dante.de                128.69.1.12             tex-archive


Web2c-6.1 (now) is in tex-archive/systems/web2c/ and xdvik and dvipsk
are in tex-archive/dviware/{dvipsk,xdvik} etc.

The xdvik from the 6.0 stuff works fine for me, except for some minor
problems with the ghostscript support... (gs coredumps etc...)

My problem with linkage seems to have been related to some of the
files being compiled with gcc-2.5.4, this problem doesn't happen if I
compile just the X stuff with cc, and it doesn't affect those using
gcc-2.5.7.

-- Jon

--
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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1994-02-06  8:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-01  4:04 Dynamic linking runtime problem on OSF/1 (gcc/xdvi) Jon Peatfield
1994-02-01 14:18 ` Bob Williams
1994-02-06  8:00   ` Jon Peatfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox