From xemacs-m  Fri May  9 18:56:21 1997
Received: from jupiter.scs.Ryerson.CA (root@jupiter.scs.Ryerson.CA [141.117.18.31])
	by xemacs.org (8.8.5/8.8.5) with SMTP id SAA12739
	for <xemacs-beta@xemacs.org>; Fri, 9 May 1997 18:56:20 -0500 (CDT)
Received: by jupiter.scs.Ryerson.CA id <10925(2)>; Fri, 9 May 1997 19:57:17 -0400
From: Dave Mason <dmason@scs.Ryerson.CA>
To: xemacs-beta@xemacs.org
Subject: problems building xemacs-19.15 Linux Alpha
X-Face: %Q_F^9R-:'3MM7eZ6@E.x@f\*bgatzGv-8d%I~L[p^.F)3QF{kq\UTsu|e#?)3FPwJNvPPB
 !s*He|-*M^p*~bh"Nywm5NLL\\Rl3r(hWHY*F:$/RdKV*bS";n&#\Ov@*=]mu\}6tP<lkW*7FT|:Dm
 9ejO^{)GHJdPQaa"C\<Ak`K27?328'V(u*|jAEZR9-z!o\^j:Cb&*tx_9\KbXD*2
Message-Id: <97May9.195717edt.10925(2)@jupiter.scs.Ryerson.CA>
Date: 	Fri, 9 May 1997 19:57:15 -0400

I'm trying to build 19.15 on a Linux on an Alpha.

$ gcc -v :	gcc version 2.7.2.1
$ uname -a :	Linux queer.scs.ryerson.ca 2.0.27 #1 Sun Dec 22 01:14:45 EST 1996 alpha

I had to make the following changes (the first two are arbitrary
hacks, and the second one was just to prevent compiler whining, I
don't know yet that it's the correct unexec):

[dmason@queer xemacs-19.15]$ diff -c src/m/alpha.h~ src/m/alpha.h 
*** src/m/alpha.h~      Tue Dec 17 22:39:06 1996
--- src/m/alpha.h       Fri May  9 18:17:46 1997
***************
*** 229,235 ****
--- 229,239 ----
  #ifdef linux
  #define COFF
  #define TEXT_END ({ extern int _etext; &_etext; })
+ #if 0
  #define DATA_END ({ extern int _EDATA; &_EDATA; })
+ #else
+ #define DATA_END ({ extern int _edata; &_edata; })
+ #endif
  #endif /* linux */
  
  /* XEmacs: The Dec CC compiler (but apparently not GCC, which uses different

[dmason@queer xemacs-19.15]$ diff -c src/s/linux.h~ src/s/linux.h 
*** src/s/linux.h~      Tue Mar 25 23:34:49 1997
--- src/s/linux.h       Fri May  9 17:10:23 1997
***************
*** 190,196 ****
--- 190,198 ----
  #define HAVE_RINT 1
  
  #ifdef __ELF__
+ #if 0
  #define UNEXEC unexelf.o
+ #endif
  #define UNEXEC_USE_MAP_PRIVATE
  #endif
  

[dmason@queer xemacs-19.15]$ diff -c src/gmalloc.c~ src/gmalloc.c 
*** src/gmalloc.c~      Sat Mar  1 22:44:23 1997
--- src/gmalloc.c       Fri May  9 17:52:41 1997
***************
*** 1299,1305 ****
  #ifdef __GNU_LIBRARY__
  /* It is best not to declare this and cast its result on foreign operating
     systems with potentially hostile include files.  */
! #if !(defined(linux) && defined(sparc))
  extern __ptr_t __sbrk __P ((int increment));
  #endif
  #endif
--- 1299,1305 ----
  #ifdef __GNU_LIBRARY__
  /* It is best not to declare this and cast its result on foreign operating
     systems with potentially hostile include files.  */
! #if !(defined(linux) && (defined(sparc)||defined(__alpha__)))
  extern __ptr_t __sbrk __P ((int increment));
  #endif
  #endif



When it tries to make the xemacs, I get:

-------------
[dmason@queer xemacs-19.15]$ make
Producing `src/paths.h' from `src/paths.h.in'.
rm -f src/paths.h.tmp
chmod 0644 src/paths.h.tmp
src/paths.h is unchanged
cd lib-src; make all  \
        CC='gcc' CFLAGS='-g -O ' MAKE='make'
make[1]: Entering directory `/home/software/xemacs/xemacs-19.15/lib-src'
make[1]: Leaving directory `/home/software/xemacs/xemacs-19.15/lib-src'
cd lwlib; make all  \
        CC='gcc' CFLAGS='-g -O ' MAKE='make'
make[1]: Entering directory `/home/software/xemacs/xemacs-19.15/lwlib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/software/xemacs/xemacs-19.15/lwlib'
cd dynodump; make all  \
        CC='gcc' CFLAGS='-g -O ' MAKE='make'
make[1]: Entering directory `/home/software/xemacs/xemacs-19.15/dynodump'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/software/xemacs/xemacs-19.15/dynodump'
cd src; make all  \
        CC='gcc' CFLAGS='-g -O ' MAKE='make'
make[1]: Entering directory `/home/software/xemacs/xemacs-19.15/src'
cd ../lwlib; make -w
make[2]: Entering directory `/home/software/xemacs/xemacs-19.15/lwlib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/software/xemacs/xemacs-19.15/lwlib'
gcc -nostdlib `./prefix-args -Xlinker -L/usr/X11R6/lib -L. -L../lwlib ` -o temacs pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o abbrev.o alloc.o blocktype.o buffer.o bytecode.o callint.o callproc.o casefiddle.o casetab.o cmdloop.o cmds.o console.o console-stream.o data.o database.o device.o dialog.o dired.o doc.o doprnt.o dynarr.o editfns.o elhash.o emacs.o eval.o events.o event-stream.o event-unixoid.o extents.o faces.o fileio.o filelock.o filemode.o floatfns.o fns.o font-lock.o frame.o general.o getloadavg.o dgif_lib.o gif_err.o gifalloc.o glyphs.o gui.o hash.o indent.o inline.o insdel.o intl.o keymap.o lread.o lstream.o macros.o marker.o md5.o menubar.o minibuf.o objects.o opaque.o print.o process.o profile.o pure.o rangetab.o realpath.o redisplay.o redisplay-output.o regex.o scrollbar.o search.o signal.o sound.o specifier.o strftime.o symbols.o syntax.o sysdep.o toolbar.o console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o undo.o unexalpha.o console-x.o device-x.o dialog-x.o event-Xt.o frame-x.o glyphs-x.o gui-x.o menubar-x.o objects-x.o redisplay-x.o scrollbar-x.o toolbar-x.o xgccache.o xselect.o window.o terminfo.o lastfile.o gmalloc.o vm-limit.o ralloc.o EmacsFrame.o EmacsShell.o TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o -llw -lXaw -lXpm -lcompface -ljpeg -lXmu -lXt -lSM -lICE -lXext -lX11 -lncurses -lgdbm -ldb -lm -lgcc -lc -lgcc /usr/lib/crtn.o
buffer.o: In function `init_buffer':
/home/software/xemacs/xemacs-19.15/src/buffer.c:2753: the `getwd' function is dangerous and should not be used.
../lwlib/liblw.a(lwlib.o): In function `lw_internal_update_other_instances':
/home/software/xemacs/xemacs-19.15/lwlib/lwlib.c:1220: relocation truncated to fit: LITERAL XtWidgetBeingDestroyedP
../lwlib/liblw.a(lwlib.o): In function `lw_set_keyboard_focus':
/home/software/xemacs/xemacs-19.15/lwlib/lwlib.c:1261: relocation truncated to fit: LITERAL XtSetKeyboardFocus
-------------

and then about a billion more of these ``relocation truncated to fit''
messages.  I looked at man ld and man gcc, but couldn't find any
switches that might be applicable.

Any ideas?

Please email directly, I'm swamped at the moment and have temporarily
had myself removed from the list.  I'll be back in September, and then
happy to be a real beta tester again.

Thanks for any ideas.

../Dave

