* Dynamic linking question: neXtaw, Xaw, and Xaw3d
@ 1996-10-15 17:26 Matthew X. Economou
1996-10-15 19:58 ` Richard Henderson
1996-10-15 21:22 ` David R. McGown
0 siblings, 2 replies; 3+ messages in thread
From: Matthew X. Economou @ 1996-10-15 17:26 UTC (permalink / raw)
-----BEGIN PGP SIGNED MESSAGE-----
I've downloaded and compiled libneXtaw, a replacement for Athena
widgets that provides widgets that look like NeXT widgets. *whew*
Anyway, I compiled the static and shared libraries, copied them to
/usr/X11R6/lib/, made the relevant symbolic links (and moved the links
to Xaw and Xaw3d to neXtaw), and rand ghostview to see the NeXT user
interface in all it's glory.
It didn't work.
I did some checking. Emacs, xgopher, xterm, &c. weren't making use of
the replacement library either. So I did a file and a ldd on the
various executables and got something similar to the following:
file: /usr/bin/emacs: sticky ELF 64-bit LSB executable, version 1, stripped
ldd: libXaw3d.so.6 => /usr/X11R6/lib/libXaw3d.so.6 (0x0000015555556000)
(What does "sticky" mean?)
file: /usr/X11R6/bin/ghostview: ELF 64-bit LSB executable, version 1, stripped
ldd: libXaw.so.6 => /usr/X11R6/lib/libXaw.so.6.0 (0x0000015555558000)
I started checking around, and it turns out that ALL of the
dynamically linked ELF executables I looked at have what appears to be
a memory address trailing the library they're linked against.
What's that hex number trailing the library mean?
Why isn't the replacement library for Xaw and Xaw3d working?
Is there any way to have the X programs use neXtaw (which provides the
same API as Xaw and Xaw3d) automatically, that is, without having to
recompile all these programs?
I'm confused...
-----BEGIN PGP SIGNATURE-----
Version: 2.6
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface
iQCVAwUBMmPJICjh7SVEyfhxAQEqoAP/aUlTHyaDbCHtuAzOHG4m4uasagwfgAQ6
e8QAun5GcRYdVJ3Da/qE5E7DGvQNuHJ/B0+F3UjPQD8DuSFOWFAUKKH59ErpthNB
6GBah0S+T4BJSYLAW6jLtU9e7CgjmQU7yXQAEg3sink9OQQcPXBQ8XewUym1vU8v
scu7pauBHvM=
=8J5G
-----END PGP SIGNATURE-----
--
Matthew X. Economou - Finger/WWW for public key. - Geek of Computer Science(!)
econommx@rose-hulman.edu - http://www.rose-hulman.edu/~econommx - Random quote:
"Interestingly, most Unix utilities have a command line option which will cause
the system to rip the user's legs off and beat them to death with the soggy
ends. This is often the default behaviour." -- Bruce Murphy
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Dynamic linking question: neXtaw, Xaw, and Xaw3d
1996-10-15 17:26 Dynamic linking question: neXtaw, Xaw, and Xaw3d Matthew X. Economou
@ 1996-10-15 19:58 ` Richard Henderson
1996-10-15 21:22 ` David R. McGown
1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 1996-10-15 19:58 UTC (permalink / raw)
> It didn't work.
Rerun ldconfig; it caches the mappings from SONAME ("libXaw3d.so.6")
to filename ("/usr/X11R6/lib/Xaw3d.so.6.0").
> (What does "sticky" mean?)
On traditional unices, it meant to attempt to keep the executable's
pages in memory even after the program exits, allowing it to be
restarted quicker. It means nothing to Linux.
> I started checking around, and it turns out that ALL of the
> dynamically linked ELF executables I looked at have what appears to be
> a memory address trailing the library they're linked against.
>
> What's that hex number trailing the library mean?
It is, as you suspected, a memory address. Specifically, the address
the library happened to be loaded in the context of that application.
r~
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Dynamic linking question: neXtaw, Xaw, and Xaw3d
1996-10-15 17:26 Dynamic linking question: neXtaw, Xaw, and Xaw3d Matthew X. Economou
1996-10-15 19:58 ` Richard Henderson
@ 1996-10-15 21:22 ` David R. McGown
1 sibling, 0 replies; 3+ messages in thread
From: David R. McGown @ 1996-10-15 21:22 UTC (permalink / raw)
On Tue, 15 Oct 1996, Matthew X. Economou wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
>
> I've downloaded and compiled libneXtaw, a replacement for Athena
> widgets that provides widgets that look like NeXT widgets. *whew*
> Anyway, I compiled the static and shared libraries, copied them to
> /usr/X11R6/lib/, made the relevant symbolic links (and moved the links
> to Xaw and Xaw3d to neXtaw), and rand ghostview to see the NeXT user
> interface in all it's glory.
>
> It didn't work.
>
> I did some checking. Emacs, xgopher, xterm, &c. weren't making use of
> the replacement library either. So I did a file and a ldd on the
> various executables and got something similar to the following:
>
I compiled and am using a similar libXaw replacement, libXaw95 (no groans
please), and had no problems with linking to existing libXaw programs
without recompiling, except for color-xterm. Therefore, I suspect that
there is something wrong cropping up in neXtaw.
You can rename the library in the Makefile to libXaw and recompile. Some
programs check the internally listed name of the library, not just the
library filename. I believe many of the "drop-in" replacement Xaw
libraries are compiled as Xaw, instead of Xaw3d, to avoid linking
problems with existing applications.
David
dmcgown@access.digex.net David R. McGown
dmcgown@va.gibbscox.com -o-O-o- LINUX INSIDE!
Home: (703)683-1599 206 Adams Ave ALPHA GENERATION!
Work: (703)416-1240 Alexandria, VA 22301
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-10-15 21:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-15 17:26 Dynamic linking question: neXtaw, Xaw, and Xaw3d Matthew X. Economou
1996-10-15 19:58 ` Richard Henderson
1996-10-15 21:22 ` David R. McGown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox