emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make bootstrap fails with wrong number of args for getpgrp


From: Kai Großjohann
Subject: make bootstrap fails with wrong number of args for getpgrp
Date: Thu, 28 Nov 2002 12:44:36 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

Here is the tail of the output of my usual build script (which starts
with distclean and then bootstraps):  (The full build script is
attached below my signature.)

/----
| gcc -c -D_BSD_SOURCE     -Demacs -DHAVE_CONFIG_H -DUSE_LUCID  -I. 
-I/export/home/kai/work/gnu/emacs/src   -D_BSD_SOURCE    -I/usr/X11R6/include   
     -g -O2  xsmfns.c
| gcc -c -D_BSD_SOURCE     -Demacs -DHAVE_CONFIG_H -DUSE_LUCID  -I. 
-I/export/home/kai/work/gnu/emacs/src   -D_BSD_SOURCE    -I/usr/X11R6/include   
     -g -O2  emacs.c
| emacs.c: In function `main':
| emacs.c:1068: too many arguments to function `getpgrp'
| emacs.c: In function `shut_down_emacs':
| emacs.c:1969: too many arguments to function `getpgrp'
| make[1]: *** [emacs.o] Error 1
| make[1]: Leaving directory `/export/home/kai/work/gnu/emacs/src'
| make: *** [bootstrap] Error 2
\----

I found out that EMACS_GETPGRP is called here, which is defined based
on GETPGRP_VOID.  I also found out that configure is correctly
auto-detecting this, it seems:

/----[ from config.log ]
| configure:12249: checking whether getpgrp requires zero arguments
| configure:12268: gcc -c -I/usr/X11R6/include  -O2  -I/usr/X11R6/include  
-D_BSD_SOURCE     conftest.c >&5
| configure: In function `main':
| configure:12293: too many arguments to function `getpgrp'
| configure:12271: $? = 1
| configure: failed program was:
| #line 12255 "configure"
| #include "confdefs.h"
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| getpgrp (0);
|   ;
|   return 0;
| }
| configure:12288: result: yes
\----

But still, it fails.  `rgrep' for GETPGRP_VOID shows me that this
symbol is not defined in any file, so maybe configure wasn't using
the result of the check?

-- 
~/.signature is: umop ap!sdn    (Frank Nobis)

Attachment: kai.sh
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]