* emacs 19.27 dies (patched, using gcc 2.6.0)
@ 1994-09-20 18:42 Paul Southworth
1994-09-20 20:31 ` Bjorn Wennberg
1994-09-20 20:53 ` Alex Garthwaite
0 siblings, 2 replies; 3+ messages in thread
From: Paul Southworth @ 1994-09-20 18:42 UTC (permalink / raw)
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?
--
Paul Southworth
CICNet Systems Support
pauls@cic.net
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: emacs 19.27 dies (patched, using gcc 2.6.0)
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
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Wennberg @ 1994-09-20 20:31 UTC (permalink / raw)
In article <35naep$fgn@spruce.cic.net> pauls@locust.cic.net (Paul Southworth) writes:
I have some patches that fixes up this and other things. This patch is
and extent of the patches I found at gatekeeper.dec.com
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?
--
Paul Southworth
CICNet Systems Support
pauls@cic.net
--
-----------------------------------------------------------------------------
bjornw@edb.tih.no - Trondheim College of Engeneering
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: emacs 19.27 dies (patched, using gcc 2.6.0)
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
1 sibling, 0 replies; 3+ messages in thread
From: Alex Garthwaite @ 1994-09-20 20:53 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1994-09-20 20:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox