From xemacs-m  Sat Mar 22 02:45:50 1997
Received: from frobnitz.wustl.edu (daniel@shep13.wustl.edu [128.252.104.13])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id CAA27571
	for <xemacs-beta@xemacs.org>; Sat, 22 Mar 1997 02:45:50 -0600 (CST)
Received: (from daniel@localhost)
	by frobnitz.wustl.edu (8.8.5/8.8.5) id CAA05870;
	Sat, 22 Mar 1997 02:45:45 -0600
To: xemacs-beta@xemacs.org
Subject: xemacs-19.15-b103 Linux-2.1 build, problems
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: multipart/mixed;
 boundary="Multipart_Sat_Mar_22_02:45:44_1997-1"
Content-Transfer-Encoding: 7bit
From: Daniel Schepler <daniel@shep13.wustl.edu>
Date: 22 Mar 1997 02:45:44 -0600
Message-ID: <m3lo7g1fif.fsf@frobnitz.wustl.edu>
Lines: 116
X-Mailer: Gnus v5.4.33/XEmacs 19.15(beta103)

--Multipart_Sat_Mar_22_02:45:44_1997-1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Configured for `i586-unknown-linux'.

  Where should the build process find the source code?    /usr/src/xemacs-19.15-beta
  What installation prefix should install use?            /usr
  What operating system and machine description files should XEmacs use?
        `s/linux.h' and `m/intel386.h'
  What compiler should XEmacs be built with?              gcc -g -O2 -m486 -malign-loops=2 -malign-functions=2 -malign-jumps=2
  Should XEmacs use the GNU version of malloc?            yes
  Should XEmacs use the relocating allocator for buffers? yes
  What window system should XEmacs use?                   x11
  Where do we find X Windows header files?                /usr/X11R6/include
  Where do we find X Windows libraries?                   /usr/X11R6/lib
  Compiling in support for XAUTH.
  Compiling in support for XPM.
  Compiling in support for X-Face headers.
  Compiling in support for GIF image conversion.
  Compiling in support for JPEG image conversion.
  Compiling in support for PNG image conversion.
  Compiling in native sound support.
  Compiling in support for Berkeley DB.
  Compiling in support for GNU DBM.
  Using the Lucid menubar.
  Using the Lucid scrollbar.
  Using the Motif dialog boxes.
  Compiling in extra code for debugging.

This was after I modified lib-src/emacsclient.c slightly, so that
<sys/socket.h> is included before <sys/un.h>, which seems to be
necessary at least on Linux 2.1.29.  A patch is included below.

However, I've noticed a couple problems with this version, which have
been bugging me since XEmacs 19.14.  First, gray bars appear on the
sides of my XEmacs frames very frequently.  (An easy way to reproduce
this: partially obscure the XEmacs window, then raise it.)  C-l turns
the entire border back to the background of the default font.
Removing all X resources (expect the default font color attributes),
and invoking xemacs -q -no-site-init, doesn't correct this.  A screen
capture of what I mean is available on
<URL:http://frobnitz.wustl.edu/~daniel/xemacs-motif.gif>.

Also, when I use (make-frame-on-display ...), the frames on the
secondary display all have blank menus displayed, though the items
still exist and can even be selected, bringing up blank submenus
(expect for the triangles signifying cascading submenus and the
checkboxes).  The tty XEmacs was started on displays numerous errors
like:

xemacs: X Error of failed request:  BadGC (invalid GC parameter)
  Major opcode of failed request:  74 (X_PolyText8)
  Resource id in failed request:  0x400015
  Serial number of failed request:  5191
  Current serial number in output stream:  5199

xemacs: X Error of failed request:  BadGC (invalid GC parameter)
  Major opcode of failed request:  69 (X_FillPoly)
  Resource id in failed request:  0x400014
  Serial number of failed request:  5192
  Current serial number in output stream:  5199

presumably when the menus are being displayed (it certainly happens
when displaying submenus).

On XEmacs 19.14, both these behaviors disappeared if I compiled using
Athena dialogs instead of Motif, but I haven't been able to see if
this is the case with the 19.15 betas.
-- 
Daniel Schepler                      There is no backward flow of ideas any
daniel@frobnitz.wustl.edu            more than of rivers.
http://frobnitz.wustl.edu/~daniel/      -- Victor Hugo, _Les Misrables_


--Multipart_Sat_Mar_22_02:45:44_1997-1
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: attachment; filename="emacsserver.patch"
Content-Transfer-Encoding: 8bit

*** xemacs-19.15-betaold/lib-src/emacsserver.c	Sat Mar 22 00:26:56 1997
--- xemacs-19.15-beta/lib-src/emacsserver.c	Sat Mar 22 01:31:04 1997
***************
*** 59,71 ****
  #if ! defined (HAVE_SYSVIPC)
  /* BSD code is very different from SYSV IPC code */
  
- #include <sys/types.h>
- #include <sys/file.h>
- #include <sys/signal.h>
- #include <sys/stat.h> /* Needed for chmod, at least on Linux */
- #include <sys/un.h>
- #include <stdio.h>
- #include <errno.h>
  #include "../src/sysproc.h" /* Needed for select */
  #ifndef SOCK_STREAM
  /* this is normally included by src/sysproc.h.  might be safe to omit
--- 59,64 ----
***************
*** 73,78 ****
--- 66,78 ----
   * twice, so we can't include unconditionally.  */
  #include <sys/socket.h>
  #endif
+ #include <sys/types.h>
+ #include <sys/file.h>
+ #include <sys/signal.h>
+ #include <sys/stat.h> /* Needed for chmod, at least on Linux */
+ #include <sys/un.h>
+ #include <stdio.h>
+ #include <errno.h>
  
  void
  main ()

--Multipart_Sat_Mar_22_02:45:44_1997-1--

