From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,89037c904edf2fc5 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-09-21 19:12:35 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!news-feed-1.peachnet.edu!news.duke.edu!zombie.ncsc.mil!gmi!msuinfo!netnews.upenn.edu!samwise.dccs.upenn.edu!alex From: alex@samwise.dccs.upenn.edu (Alex Garthwaite) Newsgroups: comp.unix.osf.osf1 Subject: Re: emacs 19.27 dies (patched, using gcc 2.6.0) Date: 20 Sep 1994 20:53:51 GMT Organization: University of Pennsylvania Message-ID: <35ni4v$iqr@netnews.upenn.edu> References: <35naep$fgn@spruce.cic.net> NNTP-Posting-Host: samwise.dccs.upenn.edu X-Newsreader: TIN [version 1.2 PL2-upenn1.1] Paul Southworth (pauls@locust.cic.net) wrote: : I'm working on building emacs 19.27, patched with the patchfile found : in the FSF archives. Using gcc 2.6.0, configured with : "configure alpha-dec-osf --with-x11" under OSF/1 2.0. : I get the following error: : gcc -c -Demacs -DHAVE_CONFIG_H -I. \ : -I/usr/local/src/GNU/emacs-19.27/src -D_BSD \ : -DDONT_CATCH_SIGNALS -g -O process.c : process.c: In function `create_process': : process.c:1364: too many arguments to function `setpgrp' : *** Exit 1 : Stop. : *** Exit 1 : Stop. : Any clues? Apply the following patch to fix the problem: *** process.c.orig Tue Sep 20 16:42:38 1994 --- process.c Tue Sep 20 16:43:15 1994 *************** *** 1361,1367 **** --- 1361,1371 ---- /* In order to get a controlling terminal on some versions of BSD, it is necessary to put the process in pgrp 0 before it opens the terminal. */ + #if defined (__osf__) && (defined (__alpha) || defined (__alpha__)) + setpgid (0, 0); + #else setpgrp (0, 0); + #endif #endif } #endif /* TIOCNOTTY */ This fixed it for me. If you look at the man page for setpgid/setpgrp, setpgrp is being phased out. Under OSF1 V2.0, the man page says: The setpgrp() function is supported by OSF/1 for binary compatibility only. What the man page doesn't say is that the setpgrp() procedure takes no arguments (a la System V). The section of code where this call is assumes that one is on a BSD-like system where setpgrp() takes two arguments. Hence the need to change the call from setpgrp to setpgid. -- Alex Garthwaite Internet: alex@dccs.upenn.edu Network Engineering Data Communications and Computing Services University of Pennsylvania (215) 898-0918