* Re: Problem Building Emacs
2002-11-20 18:53 Problem Building Emacs Alan McConnell
@ 2002-11-20 18:32 ` Eli Zaretskii
2012-09-20 19:36 ` bug#12480: " Sam
1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2002-11-20 18:32 UTC (permalink / raw)
Cc: bug-gnu-emacs
> From: Alan McConnell <alan@patriot.net>
> Date: Wed, 20 Nov 2002 13:53:12 -0500
>
> emacs 19.34(source downloaded from ftp.gnu.org): I can run ./configure
> without a problem. When I then type "make" the compile quickly exits
> with a complaint about /usr/include/unistd.h: at line 568 "parse error
> before '('", "parse error before __pgrp" and then,
> at emacs.c 657 "too few arguments to function get pgrp"
>
> emacs 20.6(source downloaded from ftp.gnu.org): I can run ./configure
> without a problem. When I then type "make" the complie quickly exits
> with a complaint about /usr/include/unistd.h: at line 562, "macro 'setpgrp'
> requires 2 arguments, but only one given."
Get a later version of Emacs (the latest one is 21.2), I believe this
problem is solved there. The problem appeared due to an incompatible
change in system headers on GNU/Linux systems, so versions of Emacs
released before that change are unlikely to have the solution.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Problem Building Emacs
@ 2002-11-20 18:53 Alan McConnell
2002-11-20 18:32 ` Eli Zaretskii
2012-09-20 19:36 ` bug#12480: " Sam
0 siblings, 2 replies; 6+ messages in thread
From: Alan McConnell @ 2002-11-20 18:53 UTC (permalink / raw)
I have had similar problems in building GNU/Emacs in two different
versions:
emacs 19.34(source downloaded from ftp.gnu.org): I can run ./configure
without a problem. When I then type "make" the compile quickly exits
with a complaint about /usr/include/unistd.h: at line 568 "parse error
before '('", "parse error before __pgrp" and then,
at emacs.c 657 "too few arguments to function get pgrp"
emacs 20.6(source downloaded from ftp.gnu.org): I can run ./configure
without a problem. When I then type "make" the complie quickly exits
with a complaint about /usr/include/unistd.h: at line 562, "macro 'setpgrp'
requires 2 arguments, but only one given."
Needless to say, I am anxious about my /usr/include/unistd.h. I am running
Mandrake 8.2, and maybe they have given me a corrupt unistd.h? But I had
a friend send me his unistd.h, and "diff" on them reveals no difference.
As mentioned, I am running Mandrake 8.2, with gcc 2.96. I give you, just
below, lines 547 to 576 of my /usr/include/unistd.h.
The tips about submitting bugs tell us that we shouldn't speculate about
the cause of difficulties, and so I won't.
I shall be very grateful to you for any help that you can give with this
problem.
Best wishes,
Alan McConnell
(start)--------------------------------------
#if defined __USE_SVID || defined __USE_BSD || defined __USE_XOPEN_EXTENDED
/* Both System V and BSD have `setpgrp' functions, but with different
calling conventions. The BSD function is the same as POSIX.1 `setpgid'
(above). The System V function takes no arguments and puts the calling
process in its on group like `setpgid (0, 0)'.
New programs should always use `setpgid' instead.
The default in GNU is to provide the System V function. The BSD
function is available under -D_BSD_SOURCE. */
# ifndef __FAVOR_BSD
/* Set the process group ID of the calling process to its own PID.
This is exactly the same as `setpgid (0, 0)'. */
extern int setpgrp (void) __THROW;
#else
/* Another name for `setpgid' (above). */
# ifdef __REDIRECT
extern int __REDIRECT (setpgrp, (__pid_t __pid, __pid_t __pgrp) __THROW,
setpgid);
# else
# define setpgrp setpgid
# endif
# endif /* Favor BSD. */
#endif /* Use SVID or BSD. */
-------------------------------------(finish)
--
Alan McConnell : http://patriot.net/users/alan
We do not know one millionth of one percent about anything.(Edison)
Education cuts don't heal.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#12480: Problem Building Emacs
2002-11-20 18:53 Problem Building Emacs Alan McConnell
2002-11-20 18:32 ` Eli Zaretskii
@ 2012-09-20 19:36 ` Sam
2012-09-21 6:54 ` Andreas Schwab
2012-09-24 0:54 ` Glenn Morris
1 sibling, 2 replies; 6+ messages in thread
From: Sam @ 2012-09-20 19:36 UTC (permalink / raw)
To: 12480
I have this exact problem with emacs 24.2, i was under the impression it was
fixed after 21.x version? Any ideas how to solve?
Thanks
/usr/include/unistd.h:667:25: error: macro "setpgrp" requires 2 arguments, but
only 1 given
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#12480: Problem Building Emacs
2012-09-20 19:36 ` bug#12480: " Sam
@ 2012-09-21 6:54 ` Andreas Schwab
2012-09-24 0:54 ` Glenn Morris
1 sibling, 0 replies; 6+ messages in thread
From: Andreas Schwab @ 2012-09-21 6:54 UTC (permalink / raw)
To: Sam; +Cc: 12480
Sam <samp@shaw.ca> writes:
> /usr/include/unistd.h:667:25: error: macro "setpgrp" requires 2 arguments, but
> only 1 given
This is strange. There is no use of setpgrp in the emacs sources that
pass a single argument, only zero or two arguments.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#12480: Problem Building Emacs
2012-09-20 19:36 ` bug#12480: " Sam
2012-09-21 6:54 ` Andreas Schwab
@ 2012-09-24 0:54 ` Glenn Morris
2012-10-02 19:35 ` Glenn Morris
1 sibling, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2012-09-24 0:54 UTC (permalink / raw)
To: Sam; +Cc: 12480
Sam wrote:
> /usr/include/unistd.h:667:25: error: macro "setpgrp" requires 2 arguments, but
> only 1 given
Please give details. What kind of system is this? Can you send the
complete config.log and build log as (compressed) attachments?
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#12480: Problem Building Emacs
2012-09-24 0:54 ` Glenn Morris
@ 2012-10-02 19:35 ` Glenn Morris
0 siblings, 0 replies; 6+ messages in thread
From: Glenn Morris @ 2012-10-02 19:35 UTC (permalink / raw)
To: 12480-done
tags 12480 unreproducible wontfix
stop
>> /usr/include/unistd.h:667:25: error: macro "setpgrp" requires 2 arguments, but
>> only 1 given
>
> Please give details. What kind of system is this? Can you send the
> complete config.log and build log as (compressed) attachments?
Without this information nothing can be done, so I am closing this.
If you respond with the requested information it can be reopened if
needed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-10-02 19:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-20 18:53 Problem Building Emacs Alan McConnell
2002-11-20 18:32 ` Eli Zaretskii
2012-09-20 19:36 ` bug#12480: " Sam
2012-09-21 6:54 ` Andreas Schwab
2012-09-24 0:54 ` Glenn Morris
2012-10-02 19:35 ` Glenn Morris
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.