From xemacs-m  Sun Mar 16 13:48:09 1997
Received: from burdell.cc.gatech.edu (root@burdell.cc.gatech.edu [130.207.3.207])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id NAA04600
	for <xemacs-beta@xemacs.org>; Sun, 16 Mar 1997 13:48:08 -0600 (CST)
Received: from swift.cc.gatech.edu (swift.cc.gatech.edu [130.207.119.42]) by burdell.cc.gatech.edu (8.8.4/8.6.9) with ESMTP id OAA01154; Sun, 16 Mar 1997 14:48:10 -0500 (EST)
Received: (from kooper@localhost) by swift.cc.gatech.edu (8.8.4/8.6.9) id OAA05830; Sun, 16 Mar 1997 14:48:09 -0500 (EST)
Date: Sun, 16 Mar 1997 14:48:09 -0500 (EST)
Message-Id: <199703161948.OAA05830@swift.cc.gatech.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: kooper@cc.gatech.edu (Rob Kooper)
To: "Tomasz J. Cholewo" <tjchol01@mecca.spd.louisville.edu>
Cc: XEmacs-Beta Mailing List <xemacs-beta@xemacs.org>
Subject: Re: 20.1-b7 mips-sgi-irix6.2 build: mule success, nomule failure
In-Reply-To: <199703161534.PAA08403@mecca.spd.louisville.edu>
References: <199703161534.PAA08403@mecca.spd.louisville.edu>
X-Face: 21js&=eUcCS/(H'uGMcOkhv'my%#h|j,Gj$}gqnNTRDmZqZPJu*1UXX&cf"#J:'wBqhdEPM 
 "f]=d`)7)q%iSr.vY!S6ri9F,&EM1Hir@*L:IMyDNR,@FZ>r~Y9?V\Kue&?6k-J$gxEYC_aUdbOZSX
 X7W$9^K~WN{bXeGD\orxum$}3spb6t:gU%xe99@r2LeW&\8c9:q!a'*\@EP63D$HB*o0_0F]grT'/a
 QV]`Ak%wX-N)A3Q0[?TV^w7bx;l^}=~_-nv'\bar2\ 

I used the following line to configure XEmacs and it works fine under
6.2 even when sending an jpeg image to myself

./configure --prefix=/net/hg74/kooper/xemacs-20 --with-gcc=no --cflags=-O2 --err or-checking=none --debug=no --site-includes=/net/hg42/kooper/include --site-libraries=/net/hg42/kooper/lib/sgi

Configured for `mips-sgi-irix6.2'.

  Where should the build process find the source code?    /tmp/xemacs-20.1-b7
  What installation prefix should install use?            /net/hg74/kooper/xemacs-20
  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?              cc -O2
  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:                                /net/hg42/kooper/include
  Additional libraries:                                   /net/hg42/kooper/lib/sgi
  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.

I'll let you know what happens if you install it in the right place, I'm running out of the source directory right now.

Rob

Ps Looking at your setup it looks like the difference is the gcc compiler.


--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.
-- 
Rob Kooper
kooper@cc.gatech.edu
http://www.cc.gatech.edu/gvu/people/student/Rob.Kooper/

