[comp.sys.next] Building Unix Kermit 4E

mic@ut-emx.UUCP (Mic (... K[a-z]+) Kaczmarczik) (06/01/89)

I think I've gotten Unix Kermit 4E(070) to compile and run on a NeXT
0.9 system.  Some context diffs for the very minor changes I made are
enclosed below. 

The patches to the C source files remove some extraneous backslashes that
most C compilers evidently swallow without comment.  The -fwritable-strings
option on the cc command line tells GCC to put character string constants
into the data space of the program, so code that modifies the data in these
constants won't catch a segmentation fault.

Mic Kaczmarczik
User Services Unix Support Group
UT Austin Computation Center
mic@emx.utexas.edu

-----------------------------------------------------------------------
*** Makefile.dist	Tue May 30 14:30:25 1989
--- Makefile	Tue May 30 15:04:51 1989
***************
*** 29,34 ****
--- 29,35 ----
  # for Interactive Sys III on other systems, "make is3"
  # for Masscomp variation on Sys III, "make rtu"
  # for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" (but see below)
+ # for NeXT Mach 0.9, "make next"
  # for NCR Tower 1632, OS 1.02, "make tower1"
  # for NCR Tower 1632 with System V, "make sys3"
  # for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
***************
*** 348,353 ****
--- 349,358 ----
  #CDC VX/VE 5.2.1
  vxve:
  	make wermit "CFLAGS = -DUXIII -DVXVE -i -O" "LNKFLAGS = -i"
+ 
+ #NeXT Mach 0.9
+ next:
+ 	make wermit "CFLAGS=-fwritable-strings -DBSD4 -DDEBUG -DTLOG"
  
  #Clean up intermediate and object files
  clean:
*** ckuus2.c.dist	Tue May 30 14:02:41 1989
--- ckuus2.c	Tue May 30 14:02:42 1989
***************
*** 172,178 ****
  "" } ;
  
   
! static char *hmxyf[] = { "\set file: names, type, warning, display.\n\n",
  "'names' are normally 'converted', which means file names are converted\n",
  "to 'common form' during transmission; 'literal' means use filenames\n",
  "literally (useful between like systems).\n\n",
--- 172,179 ----
  "" } ;
  
   
! static char *hmxyf[] = { "\
! set file: names, type, warning, display.\n\n",
  "'names' are normally 'converted', which means file names are converted\n",
  "to 'common form' during transmission; 'literal' means use filenames\n",
  "literally (useful between like systems).\n\n",
*** ckwart.c.dist	Tue May 30 14:03:43 1989
--- ckwart.c	Tue May 30 14:03:16 1989
***************
*** 87,93 ****
  
  /* this program's output goes here, followed by final text... */
  
! char *txt3 = "\n	    }\n    }\n\}\n\n";
  
  
  /*
--- 87,93 ----
  
  /* this program's output goes here, followed by final text... */
  
! char *txt3 = "\n	    }\n    }\n}\n\n";
  
  
  /*
-- 
Mic Kaczmarczik			If you drink, don't drill.
UT Austin Computation Center			-- Matt Groening
mic@emx.utexas.edu	
MIC@UTAIVC.BITNET