From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <9704041044.AA01959@alpha3> Date: 04 Apr 1997 13:11:17 +0200 From: Markus Dickebohm Subject: XEmacs 19.15 on Linux Alpha Just in case someone is interested in gettings XEmacs-19.15 to work on Linux Alpha, here are the results of my attempts: I tried to compile XEmacs 19.15 on a DEC Alpha running Linux (2.0.29) and have the following problems: Linux Alpha don't seem to be a supported platform, that why I had to change src/m/alpha.h and src/s/linux.h in the following way: from: to: #define UNEXEC unexalpha.o #define UNEXEC unexelf1.o #define LINUX_SBRK_BUG #undef LINUX_SBRK_BUG #define ECOFF #define ELF #define DATA_END \ /* #define DATA_END \ ({ extern int _EDATA; &_EDATA; }) ({ extern int _edata; &_edata; }) */ The "unexelf1.c"-file is "stolen" from the FSF Emacs 19.34 release. Because UNEXEC is defined in s/linux.h too, I commented that line out. With these little changes and ./configure --run-in-place everything compiles quite cleanly (even with -Wall I don't get many warnings) until it comes to "gmalloc.c". To get this file compiled I had to comment out line 1303: extern __ptr_t __sbrk __P ((int increment)); because it is inconsistent with "/usr/include/unistd.h": extern __ptr_t __sbrk __P ((ptrdiff_t __delta)); Now, XEmacs compiles without an error. Unfortunately the "ld" I'm using at the moment (ld version 2.7 (with BFD 2.7.0.2)) has a bug in respect to create big binaries. That's why Richard Henderson adviced me to build shared libraries from the static ones. I did this for a) libcompface.a b) liblw.a with: gcc -shared -o src/libcompface.so \ -Wl,--whole-archive /usr/lib/libcompface.a \ -Wl,--no-whole-archive Now XEmacs even links without a problem. But the resulting "temacs" segfaults: (gdb) file temacs Reading symbols from temacs...run done. (gdb) run Starting program: /usr/local/src/emacs/xemacs-19.15/src/temacs Program received signal SIGSEGV, Segmentation fault. 0x12006d1d4 in emacs_doprnt_string_va () at doprnt.c:736 736 { I'm quite sure that the problem is in gmalloc.c (the backtrace shows an infinite loop). Brady Montz (bradym@cs.arizona.edu) explained in comp.emacs.xemacs that he has had similar problems getting 19.14 to run. He send patches to comp.emacs.xemacs, but they don't solve the problem. It would be so nice to have a running native XEmacs on Linux Alpha (unfortunately the Digital Unix version is far from being stable on Linux), maybe someone has suggestions where to investigate further. Thanks, Markus -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com