I have tried repeatedly to compile Xemacs on a Sun Ultra5 system running Solaris 8.
This is how it errors:
-------------------<snip>---------------------
gcc -g -O3 -Wall -Wno-switch   -L/apps/public/lib -L/usr/local/gnu/lib -L/usr/ucblib -L/usr/ccs/lib -Xlinker -R/usr/ccs/lib:/apps/public/lib:/usr/local/gnu/lib:/usr/ucblib:/usr/dt/lib:/usr/openwin/lib:/usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -L/usr/dt/lib -L/usr/openwin/lib  -o temacs  abbrev.o alloc.o blocktype.o buffer.o bytecode.o callint.o callproc.o casefiddle.o casetab.o chartab.o cmdloop.o cmds.o console.o console-stream.o data.o device.o dired.o doc.o doprnt.o dynarr.o editfns.o elhash.o emacs.o eval.o events.o unexsol2-6.o balloon_help.o balloon-x.o tooltalk.o eldap.o dgif_lib.o gif_io.o menubar.o scrollbar.o dialog.o toolbar.o gui.o menubar-x.o scrollbar-x.o dialog-x.o toolbar-x.o gui-x.o inline.o sunplay.o console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o terminfo.o event-unixoid.o database.o sysdll.o dll.o process-unix.o event-stream.o extents.o faces.o fileio.o  filemode.o floatfns.o fns.o font-lock.o frame.o general.o getloadavg.o glyphs.o glyphs-eimage.o  hash.o imgproc.o indent.o insdel.o intl.o keymap.o  line-number.o lread.o lstream.o macros.o marker.o md5.o minibuf.o objects.o opaque.o print.o process.o profile.o pure.o rangetab.o redisplay.o redisplay-output.o regex.o search.o  signal.o sound.o specifier.o strftime.o symbols.o syntax.o sysdep.o undo.o console-x.o device-x.o event-Xt.o frame-x.o glyphs-x.o objects-x.o redisplay-x.o xgccache.o xselect.o widget.o window.o  lastfile.o gmalloc.o vm-limit.o ralloc.o EmacsFrame.o EmacsShell.o TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o   ../lwlib/liblw.a   -lXm -lpng -ljpeg -lz -lXpm -ltt -lXmu -lXt -lXext -lX11 -lSM -lICE -ldl -lgdbm -lcurses /apps/shared/lib/libaudio.a -lldap -lkvm -lkstat -lm -lsocket -lnsl -lelf -lgen -ldl
EMACSBOOTSTRAPLOADPATH="/local2/gnu/xemacs-21.1.14/src/../lisp/:/local2/gnu/xemacs-21.1.14" ./temacs -batch -l /local2/gnu/xemacs-21.1.14/src/../lisp/update-elc.el
*** Error code 139
make: Fatal error: Command failed for target `update-elc.stamp'
Current working directory /local2/gnu/xemacs-21.1.14/src
*** Error code 1
make: Fatal error: Command failed for target `src'
-------------------<snip>---------------------
Can you supply any assistance?  We are at a standstill.
We have compiled Xemacs-21.1.11 under Solaris 7 correctly.
Attached also is the configure.log.
--
      Dennis Carlson
  Unix OS Support     USH-4A3L    281-282-2791  
  United Space Alliance       Fax 281-282-4922  
  dcarlson@sunlab.unitedspacealliance.com - or -   
   Dennis.H.Carlson@USAHQ.UnitedSpaceAlliance.com  
   "The comments and opinions expressed are my own and
   do not represent the views of United Space Alliance"
   (per USA Info.Tech. Policy D-02 9/16/96)