Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: alex@samwise.dccs.upenn.edu (Alex Garthwaite)
Subject: Re: emacs 19.27 dies (patched, using gcc 2.6.0)
Date: 20 Sep 1994 20:53:51 GMT	[thread overview]
Message-ID: <35ni4v$iqr@netnews.upenn.edu> (raw)
In-Reply-To: 35naep$fgn@spruce.cic.net

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


      parent reply	other threads:[~1994-09-20 20:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-09-20 18:42 emacs 19.27 dies (patched, using gcc 2.6.0) Paul Southworth
1994-09-20 20:31 ` Bjorn Wennberg
1994-09-20 20:53 ` Alex Garthwaite [this message]
read-only archive

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