From: Jan Wielemaker (jan@swi.psy.uva.nl)
Date: 07/07/93


From: jan@swi.psy.uva.nl (Jan Wielemaker)
Subject: libX11 broken using libc-4.4 (uname)
Date: Wed, 7 Jul 1993 08:10:10 GMT

Hi,

Recently I upgraded to gcc-2.4.3, libc-4.4, kernel 99pl10 and net-2.
With some help from the net (thanks!) I managed to install the latter
too.

Then I tried to recompile XPCE/SWI-Prolog, but it kept on craching
when opening the X-display connection. The trouble appeared to be in
XGetHostname() from XlibInt.o. I downloaded XlibInt.c and some .h
files from the stock mit X11R5 distribution. I appeared to use
`uname' to find the hostname ... I recompiled this module and replaced
it in /usr/lib/libX11.a, after which XPCE/SWI-Prolog ran as ever.

For those with the same trouble, my fixed XlibInt.o available from
swi.psy.uva.nl (pub/linux/X11).

Now that I just discovered that I can use dynamic linking together
with saved program states in Linux I'm very sad to have to switch back
to static linking :-( When will there be a new version?

COMPATIBILITY QUESTION.

Related, I'm considering a new distribution of XPCE/SWI-Prolog. So,

        1) Would a statically linked binary created on the above
           configuration run with say the 99pl[789] kernel?
           (It's broken on 99pl6 due to a bug in mmap()).

        2) If I distribute a dynamically linked version (after the
           library is fixed), I assume it only runs if people upgrade
           to libc-4.4?

        3) If I distribute just the .o files, with which systems is
           it likely to link and run thereafter?

        Thanks --- Jan