Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!im4u!swrinde!petro!tness1!mechjgh From: mechjgh@tness1.UUCP Newsgroups: comp.emacs Subject: GNUemacs on NCR Tower XP Message-ID: <222@tness1.UUCP> Date: Fri, 28-Aug-87 16:03:17 EDT Article-I.D.: tness1.222 Posted: Fri Aug 28 16:03:17 1987 Date-Received: Sun, 30-Aug-87 18:40:56 EDT Organization: Southwestern Bell, Texas Lines: 43 Keywords: it works We got GNU Emacs version 18.41 working on an NCR Tower XP after help from Chet Murthy (murthy@svax.cs.cornell.edu).... use: s-usg5-2.h m-tower32.h replace src/crt0.c with the following file. --------< src/crt0.c >------ int data_start = 0; char **environ; _start () { start1 (); } start1 (argc, xargv) int argc; char *xargv; { register char **argv = &xargv; environ = argv + argc + 1; if ((char *)environ == xargv) environ--; exit (main (argc, argv, environ)); } -------< eof >-------- This hack also works with version 17. I think the problem in the crt0.c file has to do with kludged #ifdef statements related to m68000 processors. The start1(argc, xargv) statement ends up with 4 args passed to it instead of the 2. -- Greg Hackney Southwestern Bell One Bell Plaza, Room 1825 Dallas, Texas mechjgh@tness1.UUCP ihnp4!tness1!mechjgh