Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: XEmacs 19.15 success (was: XEmacs 19.15 on Linux Alpha)
@ 1997-04-04 16:27 Markus Dickebohm
  0 siblings, 0 replies; 2+ messages in thread
From: Markus Dickebohm @ 1997-04-04 16:27 UTC (permalink / raw)


>> Brady Montz schrieb am Fri, 4 Apr 1997 08:57:12 -0700:

> I'm not on the axp-list, so I've only been following this from the
> xemacs newsgroups, so I've probably missed some stuff.

I don't think, that you really missed something. It's just that I
wrote the message to the axp-list also.

> If you could tell me what stuff you did besides the patch, I'll try
> to put a patch together and send it in again. I'll also stick it on
> my website.  As far as I can remember, it's only adding some stuff
> to make some files dynamically linked and getting the unexec code
> from emacs.

Yes, I think this is it primarily: in my posting to comp.emacs.xemacs
I already wrote which additional patches were necessary. I add the
diff's against XEmacs-19.15 at the end of this message.

Just to be sure that I don't forget anything I will enumerate the
additional requirements here:
	o steal unexelf1.c from FSF Emacs
        o make shared libraries from liblw.a and libcompface.a (this
          is why I thought that patches are a bit useless...)
        o add "-rpath=/usr/libexec/xemacs-19.15/alpha-linux" to
          ldflags in src/Makefile
        o place the two shared libaries in the directory mentioned
          above  

Many thanks again for your help in getting XEmacs-19.15 to run on
Linux Alpha again. I'm really happy about this.

Have a nice weekend,
Markus

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

diff -u -r xemacs-19.15/src/gmalloc.c xemacs-19.15-new/src/gmalloc.c
--- xemacs-19.15/src/gmalloc.c	Sun Mar  2 04:44:23 1997
+++ xemacs-19.15-new/src/gmalloc.c	Fri Apr  4 15:38:48 1997
@@ -1299,8 +1299,8 @@
 #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));
+#ifndef linux
+ extern __ptr_t __sbrk __P ((int increment)); 
 #endif
 #endif
 #endif
diff -u -r xemacs-19.15/src/m/alpha.h xemacs-19.15-new/src/m/alpha.h
--- xemacs-19.15/src/m/alpha.h	Wed Dec 18 04:39:06 1996
+++ xemacs-19.15-new/src/m/alpha.h	Fri Apr  4 15:07:06 1997
@@ -25,7 +25,7 @@
    USUAL-OPSYS="note"
 
 NOTE-START
-Use -opsystem=osf1
+Use -opsystem=linux
 NOTE-END
 
 */
@@ -106,7 +106,14 @@
    Define neither one if an assembler-language alloca
    in the file alloca.s should be used.  */
 
+/* If compiling with GCC, let GCC implement alloca.  */
+#if defined(__GNUC__) && !defined(alloca)
+#define alloca(n) __builtin_alloca(n)
 #define HAVE_ALLOCA
+#else
+#define HAVE_ALLOCA
+#endif
+
 
 /* GNU malloc and the relocating allocator do not work together
    with X.   [Who wrote that?]  */
@@ -149,8 +156,10 @@
 
 /* Describe layout of the address space in an executing process.  */
 
+#ifndef __ELF__
 #define TEXT_START    0x120000000
 #define DATA_START    0x140000000
+#endif
 
 #if 0 /* #### XEmacs: see below */
 /* This is necessary for mem-limits.h, so that start_of_data gives
@@ -181,17 +190,17 @@
 #ifdef OSF1
 #define LIBS_DEBUG
 #define START_FILES pre-crt0.o 
+#define UNEXEC unexalpha.o
 #endif /* OSF1 */
 
 #ifdef LINUX
 /* This controls a conditional in main.  */
-#define LINUX_SBRK_BUG
+#define UNEXEC unexelf1.o
+#undef LINUX_SBRK_BUG
 #endif /* LINUX */
 
 /* The program to be used for unexec. */
 
-#define UNEXEC unexalpha.o
-
 #define PNTR_COMPARISON_TYPE unsigned long
 
 #if 0
@@ -226,10 +235,10 @@
   while (0)
 #endif /* OSF1 */
 
-#ifdef linux
+#ifndef linux
 #define COFF
 #define TEXT_END ({ extern int _etext; &_etext; })
-#define DATA_END ({ extern int _EDATA; &_EDATA; })
+#define DATA_END ({ extern int _EDATA; &_EDATA; }) */
 #endif /* linux */
 
 /* XEmacs: The Dec CC compiler (but apparently not GCC, which uses different
diff -u -r xemacs-19.15/src/s/linux.h xemacs-19.15-new/src/s/linux.h
--- xemacs-19.15/src/s/linux.h	Wed Mar 26 05:34:49 1997
+++ xemacs-19.15-new/src/s/linux.h	Thu Apr  3 12:51:03 1997
@@ -190,8 +190,8 @@
 #define HAVE_RINT 1
 
 #ifdef __ELF__
-#define UNEXEC unexelf.o
-#define UNEXEC_USE_MAP_PRIVATE
+/* #define UNEXEC unexelf.o
+#define UNEXEC_USE_MAP_PRIVATE */
 #endif
 
 #ifdef LINUX_QMAGIC

--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread
* XEmacs 19.15 success (was: XEmacs 19.15 on Linux Alpha)
@ 1997-04-04 14:54 Markus Dickebohm
  0 siblings, 0 replies; 2+ messages in thread
From: Markus Dickebohm @ 1997-04-04 14:54 UTC (permalink / raw)


Sorry to follow up my own post, but I thought this it worth it.

> 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.

I was way to impatient und after looking a little more closely at the
patches, and applying them correctly, XEmacs-19.15 is running fine now
on my AlphaStation 200 4/166 (running Red Hat 4.1 with all updates
installed). Many thanks to Brady for supplying this valuable
information.

Since there were those things mentioned earlier that I did manually
besides Brady's patches, I don't think that I can provide *valuable*
patches. Maybe a binary is interesting for anyone? I could place it on
a ftp site. Please email me, if there is interest.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-04-04 16:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-04 16:27 XEmacs 19.15 success (was: XEmacs 19.15 on Linux Alpha) Markus Dickebohm
  -- strict thread matches above, loose matches on Subject: below --
1997-04-04 14:54 Markus Dickebohm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox