[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem Building Emacs
From: |
Alan McConnell |
Subject: |
Problem Building Emacs |
Date: |
Wed, 20 Nov 2002 13:53:12 -0500 |
User-agent: |
Mutt/1.3.27i |
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.
- Problem Building Emacs,
Alan McConnell <=