From: Alan McConnell <alan@patriot.net>
Subject: Problem Building Emacs
Date: Wed, 20 Nov 2002 13:53:12 -0500 [thread overview]
Message-ID: <20021120185312.GA6295@alanmcc.localdomain> (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.
next reply other threads:[~2002-11-20 18:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-20 18:53 Alan McConnell [this message]
2002-11-20 18:32 ` Problem Building Emacs 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021120185312.GA6295@alanmcc.localdomain \
--to=alan@patriot.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).