On 05 Jan 2000, Hrvoje Niksic <hniksic(a)iskon.hr> wrote:
Daniel Pittman <daniel(a)danann.net> writes:
> > Otherwise, it seems that the XE_DIE check doesn't get called. Do
> > you think it's a bug?
>
> The check should trigger if it finds a *compile time*
> mismatch. Sadly, this does not seem to follow quite the same rules
> as ld.so. :(
>
> What does ldd(1) say about your XEmacs?
$ ldd src/xemacs
libXaw.so.6 => /usr/X11R6/lib/Xaw3d/libXaw.so.6 (0x40018000)
This is the /wonderful/ Debian thing. At compile time, with flat Xaw, we
pick up /usr/X11R6/lib/libXaw.* -- but at runtime the ld.so.conf puts
the Xam3d library as 'libXaw.so' in the path first.
This can't be found through any method short of dynamic-linking of an
executable at configure time and looking in the output on STDERR for the
cursed `consider relinking' thing.
The quick fix[1] is to edit /etc/ld.so.conf and move the entry for
/usr/X11R6/lib/ before the entry for /usr/X11R6/lib/Xaw3d/.
That will pick up the correct flat Athena.
Building with `--with-athena=3d' will also work.
I don't know if we /can/ do anything much about the issue otherwise.
It's not actually fixable easily (thanks, Debian) as far as I can see.
LD_PRELOADing the correct Athena library would also work....
Daniel
Footnotes:
[1] which makes everything else use flat Athena unfortunately
--
There are two major products that come out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence.
-- Jeremy S. Anderson