From xemacs-m  Sun Mar 16 09:34:26 1997
Received: from mecca.spd.louisville.edu (mecca.spd.louisville.edu [136.165.40.148])
	by xemacs.org (8.8.5/8.8.5) with SMTP id JAA02984
	for <xemacs-beta@xemacs.org>; Sun, 16 Mar 1997 09:34:25 -0600 (CST)
Received: (from tjchol01@localhost) by mecca.spd.louisville.edu (950413.SGI.8.6.12/8.6.12) id PAA08403; Sun, 16 Mar 1997 15:34:31 GMT
Date: Sun, 16 Mar 1997 15:34:31 GMT
Message-Id: <199703161534.PAA08403@mecca.spd.louisville.edu>
From: "Tomasz J. Cholewo" <tjchol01@mecca.spd.louisville.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: XEmacs-Beta Mailing List <xemacs-beta@xemacs.org>
Subject: 20.1-b7 mips-sgi-irix6.2 build: mule success, nomule failure

--with-mule compiles and works OK.  Non-mule xemacs dumps core right
after start (temacs and lisp dumping process look just fine):

#0  ifl_create_buffer () at iflFormatLex.c++:1417
#1  0x3ff6e8bc in ifllex () at iflFormatLex.c++:662
#2  0x3ff70330 in parse__11iflFormatDBSFv () at bison.simple:354
#3  0x3ff71918 in getDictionary__11iflFormatDBSFv () at #iflFormatDB.c++:48
#4  0x3ff6a7d0 in findByFormatName__11iflDatabaseSFPCc () at #iflDatabase.c++:42
#5  0x3ff6e67c in iflFormat::__ct () at iflFormat.c++:10
#6  0x3fe15754 in __sti__11fc0_318487f7 () at iflPNGFile.c++:121
#7  0x3fe15658 in _main () at ../patch/c++init.c++:59

The problem is probably in the startup code of the Image Format Library
(IFL) distributed with Irix 6.2 which gets linked in through sneaky links:

/usr/lib:
lrwxr-xr-x   1 root           13 Jul 19  1996 libjpeg.so -> libiflJFIF.so
lrwxr-xr-x   1 root           12 Jul 19  1996 libpng.so -> libiflPNG.so

Adding --with-png=no --with-jpeg=no to the configure line "solves" the
problem as probably would using different library implementations.
Switching off the optimization with --cflags='-g' does not.  

It is interesting why this problem started to show up just in this
particular case (20-b7, nomule).  Any ideas?  Is it possible that
unexelfsgi can be at fault?

Tom
======================
./configure --prefix=/usr/contrib/stow/xemacs-beta --with-gnu-make \
 --with-xface --site-includes=/usr/contrib/include \
 --site-libraries=/usr/contrib/lib --cflags='-g -O4' #  --with-mule

Configured for `mips-sgi-irix6.2'.
  Where should the build process find the source code?
  /usr2/src/xemacs-20.1-b7
  What installation prefix should install use?
  /usr/contrib/stow/xemacs-beta
  What operating system and machine description files should XEmacs use?
        `s/irix6-0.h' and `m/iris4d.h'
  What compiler should XEmacs be built with?              gcc -g -O4
  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
  Additional header files:
  /usr/contrib/include
  Additional libraries:
  /usr/contrib/lib
  Finding WNN includes with:
  Loading WNN libs with:
  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 DBM.
  Using the Lucid menubar.
  Using the Lucid scrollbar.
  Using the Motif dialog boxes.
  Compiling in extra code for debugging.
  Compiling in code for checking XEmacs memory usage.

