From: darrylo@hpnmxx.sr.hp.com (Darryl Okahata)
Subject: Re: HP-UX 8.0
Organization: Source only  Discussion and requests in gnu.emacs.help.
Distribution: gnu
Date: Fri, 28 Aug 1992 12:52:13 GMT

> I need HP-UX 8.0 GNu Emacs. I cannot get 18.57 to run, temacs dumps the
> corewhen execute temacs -batch -l inc-vers (or something like that)
>
> Anyway, the HPUX version at ee.utah.edu it too large for me to get. It
> appears the person tarred all the .o files! The file is 15MEG! 

     Actually, there are *NO* .o files in that compressed tarball.  You
can think of it as as "value-added" Emacs, which includes much of the
(old) emacs-lisp files from the osu-cis archives, and many other bells
and whistles.  It also includes hundreds of pages of laserjet-ready
documentation (you don't need TeX to print it out).

     The current site for the "unofficial HP GNU Emacs" is
iworks.ecn.uiowa.edu [128.255.18.10] (in /comp.hp/GNUEmacs.tar.Z).  The
ee.utah.edu has an old version.

     As eighteen megabytes is too large a file for you, I've included
the patches that supposedly make plain vanilla V18.57 (not V18.59) work
under HP-UX 8.0.  I haven't tested them, but I've heard that they work.

     -- Darryl Okahata
	Internet: darrylo@sr.hp.com

DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion or policy of Hewlett-Packard or of the
little green men that have been following him all day.


===============================================================================
From: simon@liasun6.epfl.ch (Simon Leinen)
Date: Wed, 11 Dec 1991 09:45:05 GMT
Subject: Re: Need updates to 18.57 to compile with HPUX 8.0
Organization: DI-LIA -- Ecole Polytechnique Federale de Lausanne
Newsgroups: comp.sys.hp,gnu.emacs.help
X-Md4-Signature: 81a6a17a68ed39b3f8916a8144981a01

In article <1991Dec10.123019.8760@resonex.com> michael@resonex.com
(Michael Bryan) writes:

   This is becoming a bona-fide FAQ, but I have unfortunately not
   saved any previous responses to this plea for help, so I have to
   ask for myself.  Can somebody send me, or point me to, updates
   needed for compiling Emacs 18.57 under HP-UX 8.0?  The hardware in
   question is a 385, *not* a 700 series machine...

I post the patch because it is short.  It can also be FTPed from
liasun3.epfl.ch, /pub/gnu/emcs1857HPUX8p.  If you have any problems,
please send me a note.
-- 
Simon Leinen.
Laboratoire d'Intelligence Artificielle
Ecole Polytechnique Federale de Lausanne
MA-Ecublens
CH-1015 Lausanne
Tel.: ++41-21-693-5277

	HP-UX 8.0.5 Patches for GNU Emacs 18.57
	Simon Leinen <simon@liasun6.epfl.ch>
	28 August 1991

	This is a set of patches that made GNU Emacs 18.57 run on a HP
	9000/720 running HP-UX A.B8.05.  With slight modifications,
	the patch can probably applied to older versions of Emacs 18.

	INSTALLATION:

      *	Go to the src/ subdirectory of your GNU Emacs 18.57
	distribution and apply the patch using Larry Wall's patch
	program:

		patch -p0 < WhateverYouCalledTheFileYouAreJustReading

	This changes the files fileio.c and unexhp9k800.c and creates
	a new one, s-hpux8.h

      *	If there is no config.h,

		cp config.h-dist config.h

      *	Edit config.h to include s-hpux8.h as the OS-dependent
	configuration file and m-hp9000s800.h as the machine-dependent
	file.  It works for series 700 machines, too.  I strongly
	recommend enabling X support by removing the comment brackets
	around the lines saying "#define HAVE_X_WINDOWS" and "#define
	X11", respectively.

      *	If you want to compile Emacs with optimization and without
	debugging symbols, edit the CFLAGS definition in `ymakefile'
	to use C_OPTIMIZE_SWITCH rather than C_DEBUG_SWITCH.  You can
	also change the definition of C_OPTIMIZE_SWITCH from -O to +O3
	if you want full optimization.

      *	Build Emacs according to the normal installation instructions,
	i.e. using the build-install script in the top-level
	directory, or simply using make.

*** old/fileio.c	Wed Aug 28 16:51:01 1991
--- fileio.c	Wed Aug 28 16:29:42 1991
***************
*** 68,74 ****
--- 68,76 ----
  
  #ifdef HPUX
  #include <netio.h>
+ #ifndef __hpux8
  #include <errnet.h>
+ #endif
  #endif
  
  #ifndef O_WRONLY
*** old/unexhp9k800.c	Wed Aug 31 17:36:43 1988
--- unexhp9k800.c	Wed Aug 28 16:33:49 1991
***************
*** 81,87 ****
    
    /* Decide how large the new and old data areas are */
    old_size = auxhdr.exec_dsize;
!   new_size = sbrk(0) - auxhdr.exec_dmem;
    
    /* Copy the old file to the new, up to the data space */
    lseek(old, 0, 0);
--- 81,87 ----
    
    /* Decide how large the new and old data areas are */
    old_size = auxhdr.exec_dsize;
!   new_size = (char *) sbrk(0) - auxhdr.exec_dmem;
    
    /* Copy the old file to the new, up to the data space */
    lseek(old, 0, 0);
*** /dev/null	Wed Aug 28 16:39:38 1991
--- s-hpux8.h	Wed Aug 28 16:29:06 1991
***************
*** 0 ****
--- 1,27 ----
+ /* Definitions file for GNU Emacs running on HPUX release 8.0.
+    Copyright (C) 1991 Free Software Foundation, Inc.
+    Author: Simon Leinen <simon@liasun6.epfl.ch>
+ 
+ This file is part of GNU Emacs.
+ 
+ GNU Emacs is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 1, or (at your option)
+ any later version.
+ 
+ GNU Emacs is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ 
+ You should have received a copy of the GNU General Public License
+ along with GNU Emacs; see the file COPYING.  If not, write to
+ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+ 
+ #include "s-hpux.h"
+ 
+ #define LD_SWITCH_SYSTEM -L/usr/lib/X11R4 -a archive
+ 
+ #define C_SWITCH_MACHINE -I/usr/include/X11R4
+ 
+ #define __hpux8


Newsgroups: gnu.emacs.sources