unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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

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 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).